CVE-2017-9047
CVSS V2 Medium 5
CVSS V3 High 7.5
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.
Overview
- CVE ID
- CVE-2017-9047
- Assigner
- cve@mitre.org
- Vulnerability Status
- Modified
- Published Version
- 2017-05-18T06:29:00
- Last Modified Date
- 2021-06-29T15:15:13
Weakness Enumerations
CPE Configuration (Product)
CPE | Vulnerable | Operator | Version Start | Version End |
---|---|---|---|---|
cpe:2.3:a:xmlsoft:libxml2:2.9.4:*:*:*:*:*:*:* | 1 | OR |
CVSS Version 2
- Version
- 2.0
- Vector String
- AV:N/AC:L/Au:N/C:N/I:N/A:P
- Access Vector
- NETWORK
- Access Compatibility
- LOW
- Authentication
- NONE
- Confidentiality Impact
- NONE
- Integrity Impact
- NONE
- Availability Impact
- PARTIAL
- Base Score
- 5
- Severity
- MEDIUM
- Exploitability Score
- 10
- Impact Score
- 2.9
CVSS Version 3
- Version
- 3.0
- Vector String
- CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- Attack Vector
- NETWORK
- Attack Compatibility
- LOW
- Privileges Required
- NONE
- User Interaction
- NONE
- Scope
- UNCHANGED
- Confidentiality Impact
- NONE
- Availability Impact
- HIGH
- Base Score
- 7.5
- Base Severity
- HIGH
- Exploitability Score
- 3.9
- Impact Score
- 3.6
References
Reference URL | Reference Tags |
---|---|
http://www.openwall.com/lists/oss-security/2017/05/15/1 | Exploit Mailing List Patch Third Party Advisory |
http://www.securityfocus.com/bid/98599 | Third Party Advisory VDB Entry |
http://www.debian.org/security/2017/dsa-3952 | |
https://security.gentoo.org/glsa/201711-01 | |
https://lists.apache.org/thread.html/rf4c02775860db415b4955778a131c2795223f61cb8c6a450893651e4@%3Cissues.bookkeeper.apache.org%3E | |
https://lists.apache.org/thread.html/r58af02e294bd07f487e2c64ffc0a29b837db5600e33b6e698b9d696b@%3Cissues.bookkeeper.apache.org%3E |
Sources
Source Name | Source URL |
---|---|
NIST | https://nvd.nist.gov/vuln/detail/CVE-2017-9047 |
MITRE | https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2017-9047 |
History
Created | Old Value | New Value | Data Type | Notes |
---|---|---|---|---|
2022-05-10 07:09:31 | Added to TrackCVE | |||
2022-12-02 17:01:14 | 2017-05-18T06:29Z | 2017-05-18T06:29:00 | CVE Published Date | updated |
2022-12-02 17:01:14 | 2021-06-29T15:15:13 | CVE Modified Date | updated | |
2022-12-02 17:01:14 | Modified | Vulnerability Status | updated |