CVE-2017-9047
Libxml2 Buffer Overflow Vulnerability
Description
A buffer overflow was discovered in libxml2 20904-GITv2.9.4-16-g0741801. The function xmlSnprintfElementContent in valid.c is supposed to recursively dump the element content definition into a char buffer 'buf' of size 'size'. The variable len is assigned strlen(buf). If the content->type is XML_ELEMENT_CONTENT_ELEMENT, then (i) the content->prefix is appended to buf (if it actually fits) whereupon (ii) content->name is written to the buffer. However, the check for whether the content->name actually fits also uses 'len' rather than the updated buffer length strlen(buf). This allows us to write about "size" many bytes beyond the allocated memory. This vulnerability causes programs that use libxml2, such as PHP, to crash.
INFO
Published Date :
May 18, 2017, 6:29 a.m.
Last Modified :
Nov. 7, 2023, 2:50 a.m.
Source :
[email protected]
Remotely Exploitable :
Yes !
Impact Score :
3.6
Exploitability Score :
3.9
Public PoC/Exploit Available at Github
CVE-2017-9047 has a 4 public PoC/Exploit
available at Github.
Go to the Public Exploits
tab to see the list.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2017-9047
.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
source code of paper An Empirical Study on the Distance Metric in Guiding Directed Grey-box Fuzzing (ISSRE24)
Python Shell
Map Vulnerabilities into Different Layers of the Container Image
Python
Safe libc using introspection
Shell C
None
Shell C
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2017-9047
vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2017-9047
vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Modified by [email protected]
May. 14, 2024
Action Type Old Value New Value -
CVE Modified by [email protected]
Nov. 07, 2023
Action Type Old Value New Value Added Reference MITRE https://lists.apache.org/thread.html/rf4c02775860db415b4955778a131c2795223f61cb8c6a450893651e4%40%3Cissues.bookkeeper.apache.org%3E [No types assigned] Added Reference MITRE https://lists.apache.org/thread.html/r58af02e294bd07f487e2c64ffc0a29b837db5600e33b6e698b9d696b%40%3Cissues.bookkeeper.apache.org%3E [No types assigned] Removed Reference MITRE https://lists.apache.org/thread.html/rf4c02775860db415b4955778a131c2795223f61cb8c6a450893651e4@%3Cissues.bookkeeper.apache.org%3E Removed Reference MITRE https://lists.apache.org/thread.html/r58af02e294bd07f487e2c64ffc0a29b837db5600e33b6e698b9d696b@%3Cissues.bookkeeper.apache.org%3E -
CVE Modified by [email protected]
Jun. 29, 2021
Action Type Old Value New Value Added Reference https://lists.apache.org/thread.html/r58af02e294bd07f487e2c64ffc0a29b837db5600e33b6e698b9d696b@%3Cissues.bookkeeper.apache.org%3E [No Types Assigned] -
CVE Modified by [email protected]
Jun. 28, 2021
Action Type Old Value New Value Added Reference https://lists.apache.org/thread.html/rf4c02775860db415b4955778a131c2795223f61cb8c6a450893651e4@%3Cissues.bookkeeper.apache.org%3E [No Types Assigned] -
CVE Modified by [email protected]
Nov. 11, 2017
Action Type Old Value New Value Added Reference https://security.gentoo.org/glsa/201711-01 [No Types Assigned] -
CVE Modified by [email protected]
Nov. 05, 2017
Action Type Old Value New Value Added Reference http://www.debian.org/security/2017/dsa-3952 [No Types Assigned] -
Initial Analysis by [email protected]
May. 26, 2017
Action Type Old Value New Value Added CVSS V2 (AV:N/AC:L/Au:N/C:N/I:N/A:P) Added CVSS V3 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H Changed Reference Type http://www.securityfocus.com/bid/98599 No Types Assigned http://www.securityfocus.com/bid/98599 Third Party Advisory, VDB Entry Changed Reference Type http://www.openwall.com/lists/oss-security/2017/05/15/1 No Types Assigned http://www.openwall.com/lists/oss-security/2017/05/15/1 Exploit, Mailing List, Patch, Third Party Advisory Added CWE CWE-119 Added CPE Configuration OR *cpe:2.3:a:xmlsoft:libxml2:2.9.4:*:*:*:*:*:*:* -
CVE Modified by [email protected]
May. 25, 2017
Action Type Old Value New Value Added Reference http://www.securityfocus.com/bid/98599 [No Types Assigned]
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2017-9047
is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2017-9047
weaknesses.
Exploit Prediction
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.
0.29 }} 0.00%
score
0.64021
percentile