CVE catalog

CVE-2017-9048

libxml2: CVE-2017-9048

[CVE catalog]

Severity
High · CVSS 7.5CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H/E:P/RL:O/RC:C
Published
Source
[NVD] · [CVE record]
EPSS
4.85% · Oct 25, 2026

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.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debianlibxml2sid2.15.4+dfsg-1fixed
Debianlibxml2forky2.15.4+dfsg-1fixed
Debianlibxml2trixie2.12.7+dfsg+really2.9.14-2.1+deb13u3fixed
Debianlibxml2trixie-security2.12.7+dfsg+really2.9.14-2.1+deb13u1fixed
Debianlibxml2bookworm2.9.14+dfsg-1.3~deb12u6fixed
Debianlibxml2bookworm-security2.9.14+dfsg-1.3~deb12u4fixed
Cpelibxml2Not reportedNot reportedunknown
Ubuntulibxml214.042.9.1+dfsg1-3ubuntu2vulnerable
Ubuntulibxml214.042.9.1+dfsg1-3ubuntu3vulnerable
Ubuntulibxml214.042.9.1+dfsg1-3ubuntu4vulnerable
Ubuntulibxml214.042.9.1+dfsg1-3ubuntu4.1vulnerable
Ubuntulibxml214.042.9.1+dfsg1-3ubuntu4.2vulnerable
Ubuntulibxml214.042.9.1+dfsg1-3ubuntu4.3vulnerable
Ubuntulibxml214.042.9.1+dfsg1-3ubuntu4.4vulnerable
Ubuntulibxml214.042.9.1+dfsg1-3ubuntu4.5vulnerable
Ubuntulibxml214.042.9.1+dfsg1-3ubuntu4.6vulnerable
Ubuntulibxml214.042.9.1+dfsg1-3ubuntu4.7vulnerable
Ubuntulibxml214.042.9.1+dfsg1-3ubuntu4.8vulnerable
Ubuntulibxml214.042.9.1+dfsg1-3ubuntu4.9vulnerable
Ubuntulibxml214.042.9.1+dfsg1-3ubuntu4.10fixed
Ubuntulibxml216.042.9.2+zdfsg1-4vulnerable
Ubuntulibxml216.042.9.2+zdfsg1-4ubuntu1vulnerable
Ubuntulibxml216.042.9.2+zdfsg1-4ubuntu2vulnerable
Ubuntulibxml216.042.9.2+zdfsg1-4ubuntu3vulnerable
Ubuntulibxml216.042.9.3+dfsg1-1vulnerable
Ubuntulibxml216.042.9.3+dfsg1-1ubuntu0.1vulnerable
Ubuntulibxml216.042.9.3+dfsg1-1ubuntu0.2vulnerable
Ubuntulibxml216.042.9.3+dfsg1-1ubuntu0.3fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianlibxml2sourcesid2.9.4+dfsg1-3.1not yet assignedNot reported[863021]
Debianlibxml2sourceforky2.9.4+dfsg1-3.1not yet assignedNot reported[863021]
Debianlibxml2sourcetrixie2.9.4+dfsg1-3.1not yet assignedNot reported[863021]
Debianlibxml2sourcebookworm2.9.4+dfsg1-3.1not yet assignedNot reported[863021]
Ubuntulibxml2deb14.042.9.1+dfsg1-3ubuntu4.10Not reportedUBUNTU-CVE-2017-9048Not reported
Ubuntulibxml2deb16.042.9.3+dfsg1-1ubuntu0.3Not reportedUBUNTU-CVE-2017-9048Not reported

[Debian bug #863021]

OpenFactory catalog packages

Matching against OpenFactory catalog package versions is in progress.

[Debian 12 (Bookworm)]

  • [libxml2]Unknown
    Details (4)
    • 2.9.14+dfsg-1.3~deb12u6 · amd64 · bookworm

      Fixed · Fixed: 2.9.4+dfsg1-3.1

      dsa · libxml2 · debian · bookworm

    • 2.9.14+dfsg-1.3~deb12u6 · arm64 · bookworm

      Fixed · Fixed: 2.9.4+dfsg1-3.1

      dsa · libxml2 · debian · bookworm

    • 2.9.14+dfsg-1.3~deb12u4 · amd64 · bookworm-security

      Fixed · Fixed: 2.9.4+dfsg1-3.1

      dsa · libxml2 · debian · bookworm

    • 2.9.14+dfsg-1.3~deb12u4 · arm64 · bookworm-security

      Fixed · Fixed: 2.9.4+dfsg1-3.1

      dsa · libxml2 · debian · bookworm

  • [libxml2-dev]Unknown

    Source package: [libxml2]

    Details (4)
    • 2.9.14+dfsg-1.3~deb12u6 · amd64 · bookworm

      Fixed · Fixed: 2.9.4+dfsg1-3.1

      dsa · libxml2 · debian · bookworm

    • 2.9.14+dfsg-1.3~deb12u6 · arm64 · bookworm

      Fixed · Fixed: 2.9.4+dfsg1-3.1

      dsa · libxml2 · debian · bookworm

    • 2.9.14+dfsg-1.3~deb12u4 · amd64 · bookworm-security

      Fixed · Fixed: 2.9.4+dfsg1-3.1

      dsa · libxml2 · debian · bookworm

    • 2.9.14+dfsg-1.3~deb12u4 · arm64 · bookworm-security

      Fixed · Fixed: 2.9.4+dfsg1-3.1

      dsa · libxml2 · debian · bookworm

  • [libxml2-doc]Unknown

    Source package: [libxml2]

    Details (4)
    • 2.9.14+dfsg-1.3~deb12u6 · all · bookworm

      Fixed · Fixed: 2.9.4+dfsg1-3.1

      dsa · libxml2 · debian · bookworm

    • 2.9.14+dfsg-1.3~deb12u6 · all · bookworm

      Fixed · Fixed: 2.9.4+dfsg1-3.1

      dsa · libxml2 · debian · bookworm

    • 2.9.14+dfsg-1.3~deb12u4 · all · bookworm-security

      Fixed · Fixed: 2.9.4+dfsg1-3.1

      dsa · libxml2 · debian · bookworm

    • 2.9.14+dfsg-1.3~deb12u4 · all · bookworm-security

      Fixed · Fixed: 2.9.4+dfsg1-3.1

      dsa · libxml2 · debian · bookworm

  • [libxml2-utils]Unknown

    Source package: [libxml2]

    Details (4)
    • 2.9.14+dfsg-1.3~deb12u6 · amd64 · bookworm

      Fixed · Fixed: 2.9.4+dfsg1-3.1

      dsa · libxml2 · debian · bookworm

    • 2.9.14+dfsg-1.3~deb12u6 · arm64 · bookworm

      Fixed · Fixed: 2.9.4+dfsg1-3.1

      dsa · libxml2 · debian · bookworm

    • 2.9.14+dfsg-1.3~deb12u4 · amd64 · bookworm-security

      Fixed · Fixed: 2.9.4+dfsg1-3.1

      dsa · libxml2 · debian · bookworm

    • 2.9.14+dfsg-1.3~deb12u4 · arm64 · bookworm-security

      Fixed · Fixed: 2.9.4+dfsg1-3.1

      dsa · libxml2 · debian · bookworm

  • Source package: [libxml2]

    Details (4)
    • 2.9.14+dfsg-1.3~deb12u6 · amd64 · bookworm

      Fixed · Fixed: 2.9.4+dfsg1-3.1

      dsa · libxml2 · debian · bookworm

    • 2.9.14+dfsg-1.3~deb12u6 · arm64 · bookworm

      Fixed · Fixed: 2.9.4+dfsg1-3.1

      dsa · libxml2 · debian · bookworm

    • 2.9.14+dfsg-1.3~deb12u4 · amd64 · bookworm-security

      Fixed · Fixed: 2.9.4+dfsg1-3.1

      dsa · libxml2 · debian · bookworm

    • 2.9.14+dfsg-1.3~deb12u4 · arm64 · bookworm-security

      Fixed · Fixed: 2.9.4+dfsg1-3.1

      dsa · libxml2 · debian · bookworm

Observed:

References