CVE-2017-9048

Source
https://cve.org/CVERecord?id=CVE-2017-9048
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2017-9048.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2017-9048
Downstream
Related
Published
2017-05-18T06:29:00.433Z
Modified
2026-07-08T17:14:57.785786Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
[none]
Details

libxml2 20904-GITv2.9.4-16-g0741801 is vulnerable to a stack-based buffer overflow. The function xmlSnprintfElementContent in valid.c is supposed to recursively dump the element content definition into a char buffer 'buf' of size 'size'. At the end of the routine, the function may strcat two more characters without checking whether the current strlen(buf) + 2 < size. This vulnerability causes programs that use libxml2, such as PHP, to crash.

References

Affected packages

Git / github.com/gnome/libxml2

Affected ranges

Type
GIT
Repo
https://github.com/gnome/libxml2
Events
Database specific
{
    "cpe": "cpe:2.3:a:xmlsoft:libxml2:2.9.4:*:*:*:*:*:*:*",
    "extracted_events": [
        {
            "introduced": "2.9.4"
        },
        {
            "last_affected": "2.9.4"
        }
    ],
    "source": "CPE_STRING"
}

Affected versions

2.*
2.9.4
v2.*
v2.9.4

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2017-9048.json"

Git / gitlab.gnome.org/gnome/libxml2

Affected ranges

Type
GIT
Repo
https://gitlab.gnome.org/gnome/libxml2
Events
Database specific
{
    "cpe": "cpe:2.3:a:xmlsoft:libxml2:2.9.4:*:*:*:*:*:*:*",
    "extracted_events": [
        {
            "introduced": "2.9.4"
        },
        {
            "last_affected": "2.9.4"
        }
    ],
    "source": "CPE_STRING"
}

Affected versions

2.*
2.9.4
v2.*
v2.9.4

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2017-9048.json"