Bug 1452549 (CVE-2017-9048) - CVE-2017-9048 libxml2: Stack-based buffer overflow in function xmlSnprintfElementContent
Summary: CVE-2017-9048 libxml2: Stack-based buffer overflow in function xmlSnprintfEle...
Keywords:
Status: CLOSED WONTFIX
Alias: CVE-2017-9048
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 1452550 1452551 1548942 1695415
Blocks: 1452558
TreeView+ depends on / blocked
 
Reported: 2017-05-19 07:54 UTC by Andrej Nemec
Modified: 2023-09-26 13:23 UTC (History)
21 users (show)

Fixed In Version: libxml2 2.9.5
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-02-26 05:10:17 UTC
Embargoed:


Attachments (Terms of Use)

Description Andrej Nemec 2017-05-19 07:54:30 UTC
libxml2 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 to crash. 

References:

http://seclists.org/oss-sec/2017/q2/258

Comment 1 Andrej Nemec 2017-05-19 07:55:03 UTC
Created libxml2 tracking bugs for this issue:

Affects: fedora-all [bug 1452550]


Created mingw-libxml2 tracking bugs for this issue:

Affects: fedora-all [bug 1452551]

Comment 3 Doran Moppert 2018-02-26 04:48:53 UTC
Statement:

This vulnerability exists in the DTD validation functionality of libxml2.  Applications that do not attempt to validate untrusted documents are not impacted.

Comment 7 Doran Moppert 2019-04-03 03:04:50 UTC
Upstream patch:

https://gitlab.gnome.org/GNOME/libxml2/commit/932cc9896ab


Note You need to log in before you can comment on or make changes to this bug.