7.5
CWE
119
Advisory Published
Updated

CVE-2017-9048: Buffer Overflow

First published: Thu May 18 2017(Updated: )

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.

Credit: cve@mitre.org

Affected SoftwareAffected VersionHow to fix
debian/libxml2
2.9.4+dfsg1-7+deb10u4
2.9.4+dfsg1-7+deb10u6
2.9.10+dfsg-6.7+deb11u4
2.9.14+dfsg-1.3~deb12u1
2.9.14+dfsg-1.3
debian/libxml2<=2.9.1+dfsg1-5<=2.9.4+dfsg1-2.2
2.9.4+dfsg1-3.1
2.9.4+dfsg1-2.2+deb9u1
2.9.1+dfsg1-5+deb8u5
Xmlsoft Libxml2=2.9.4

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203