7.5
HIGH CVSS 3.0
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 :

April 20, 2025, 1:37 a.m.

Remotely Exploit :

Yes !
Affected Products

The following products are affected by CVE-2017-9047 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Xmlsoft libxml2
CVSS Scores
The Common Vulnerability Scoring System is a standardized framework for assessing the severity of vulnerabilities in software and systems. We collect and displays CVSS scores from various sources for each CVE.
Score Version Severity Vector Exploitability Score Impact Score Source
CVSS 2.0 MEDIUM [email protected]
CVSS 3.0 HIGH [email protected]
Solution
This vulnerability can be resolved by updating the libxml2 packages or applying a fix.
  • Update the affected libxml2 packages.
  • Apply the appropriate vendor-supplied interim fix.
Public PoC/Exploit Available at Github

CVE-2017-9047 has a 5 public PoC/Exploit available at Github. Go to the Public Exploits tab to see the list.

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:

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).

Buffer Overflow Analysis & Remediation Framework

buffer-overflow development python python-programming blue-team-project

Python C

Updated: 1 month, 3 weeks ago
1 stars 0 fork 0 watcher
Born at : July 14, 2025, 6:11 a.m. This repo has been linked 11 different CVEs too.

source code of paper An Empirical Study on the Distance Metric in Guiding Directed Grey-box Fuzzing (ISSRE24)

Python Shell Makefile C CMake C++ PLpgSQL HTML JavaScript Rich Text Format

Updated: 7 months ago
2 stars 0 fork 0 watcher
Born at : Aug. 21, 2024, 3:06 a.m. This repo has been linked 6 different CVEs too.

Map Vulnerabilities into Different Layers of the Container Image

Python

Updated: 2 years, 8 months ago
1 stars 1 fork 1 watcher
Born at : Oct. 5, 2022, 12:07 p.m. This repo has been linked 1277 different CVEs too.

Safe libc using introspection

Shell C

Updated: 7 years, 4 months ago
0 stars 0 fork 0 watcher
Born at : Jan. 23, 2018, 12:32 p.m. This repo has been linked 3 different CVEs too.

None

Shell C

Updated: 7 years, 8 months ago
0 stars 0 fork 0 watcher
Born at : Dec. 20, 2017, 3:15 p.m. This repo has been linked 3 different CVEs too.

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 af854a3a-2127-422b-91ae-364da2661108

    Nov. 21, 2024

    Action Type Old Value New Value
    Added Reference http://www.debian.org/security/2017/dsa-3952
    Added Reference http://www.openwall.com/lists/oss-security/2017/05/15/1
    Added Reference http://www.securityfocus.com/bid/98599
    Added Reference https://lists.apache.org/thread.html/r58af02e294bd07f487e2c64ffc0a29b837db5600e33b6e698b9d696b%40%3Cissues.bookkeeper.apache.org%3E
    Added Reference https://lists.apache.org/thread.html/rf4c02775860db415b4955778a131c2795223f61cb8c6a450893651e4%40%3Cissues.bookkeeper.apache.org%3E
    Added Reference https://security.gentoo.org/glsa/201711-01
  • 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]
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
Vulnerability Scoring Details
Base CVSS Score: 7.5
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality Impact
Integrity Impact
Availability Impact
Base CVSS Score: 5
Access Vector
Access Complexity
Authentication
Confidentiality Impact
Integrity Impact
Availability Impact
Exploit Prediction

EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.

2.79 }} -0.24%

score

0.85509

percentile