{"id":"CVE-2017-9048","published":"2017-05-18T06:13:00Z","modified":"2026-10-14T06:30:19Z","title":"libxml2 20904-GITv2.9.4-16-g0741801 is vulnerable to a stack-based buffer overflow","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.04848,"percentile":0.92228,"provenance":"source"},"cwes":[{"id":"CWE-119","name":"Improper Restriction of Operations within the Bounds of a Memory Buffer"}],"references":[{"url":"http://www.debian.org/security/2017/dsa-3952","tags":["vendor-advisory","x_refsource_DEBIAN"]},{"url":"https://security.gentoo.org/glsa/201711-01","tags":["vendor-advisory","x_refsource_GENTOO"]},{"url":"http://www.openwall.com/lists/oss-security/2017/05/15/1","tags":["x_refsource_MISC"]},{"url":"http://www.securityfocus.com/bid/98556","tags":["vdb-entry","x_refsource_BID"]},{"url":"https://lists.apache.org/thread.html/rf4c02775860db415b4955778a131c2795223f61cb8c6a450893651e4%40%3Cissues.bookkeeper.apache.org%3E","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://lists.apache.org/thread.html/r58af02e294bd07f487e2c64ffc0a29b837db5600e33b6e698b9d696b%40%3Cissues.bookkeeper.apache.org%3E","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-398330.html","tags":[]}],"priority":{"score":23.7,"factors":[{"name":"EPSS percentile","points":18.45},{"name":"CVSS severity","points":5.25}]},"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2025-12-18T11:40:41.203637Z","from":"CISA ADP","provenance":"source"},"summary":{"text":"The flaw is a stack-based buffer overflow in the xmlSnprintfElementContent function in valid.c of libxml2 (version 20904-GITv2.9.4-16-g0741801), where two characters may be appended to the buffer without checking whether there is room for them. An attacker with network access and no authentication or user interaction could trigger the overflow to crash programs that use libxml2, such as PHP.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T06:39:03Z"},"euvd":{"id":"EUVD-2017-17988","exploited":false,"provenance":"source"}}