CVE catalog

CVE-2022-40303

libxml2: CVE-2022-40303

[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
Published
Source
[NVD] · [CVE record]
EPSS
41.37% · Oct 25, 2026

An issue was discovered in libxml2 before 2.10.3. When parsing a multi-gigabyte XML document with the XML_PARSE_HUGE parser option enabled, several integer counters can overflow. This results in an attempt to access an array at a negative 2GB offset, typically leading to a segmentation fault.

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 reported2.10.3fixed
Cpeactive_iq_unified_managerNot reportedNot reportedunknown
Cpeclustered_data_ontapNot reportedNot reportedunknown
Cpeclustered_data_ontap_antivirus_connectorNot reportedNot reportedunknown
Cpenetapp_manageability_sdkNot reportedNot reportedunknown
Cpeontap_select_deploy_administration_utilityNot reportedNot reportedunknown
CpesnapmanagerNot reportedNot reportedunknown
CpeipadosNot reported15.7.2fixed
Cpeiphone_osNot reported15.7.2fixed
CpemacosNot reported12.6.2fixed
CpetvosNot reported16.2fixed
CpewatchosNot reported9.2fixed
Cpeh300s_firmwareNot reportedNot reportedunknown
Cpeh500s_firmwareNot reportedNot reportedunknown
Cpeh700s_firmwareNot reportedNot reportedunknown
Cpeh410s_firmwareNot reportedNot reportedunknown
Cpeh410c_firmwareNot reportedNot reportedunknown
Androidplatform/external/libxml2Not reported13vulnerable
Androidplatform/external/libxml2Not reported13:2023-03-01fixed
Ubuntulibxml2pro2.9.2+zdfsg1-4vulnerable
Ubuntulibxml2pro2.9.2+zdfsg1-4ubuntu1vulnerable
Ubuntulibxml2pro2.9.2+zdfsg1-4ubuntu2vulnerable
Ubuntulibxml2pro2.9.2+zdfsg1-4ubuntu3vulnerable
Ubuntulibxml2pro2.9.3+dfsg1-1vulnerable
Ubuntulibxml2pro2.9.3+dfsg1-1ubuntu0.1vulnerable
Ubuntulibxml2pro2.9.3+dfsg1-1ubuntu0.2vulnerable
Ubuntulibxml2pro2.9.3+dfsg1-1ubuntu0.3vulnerable
Ubuntulibxml2pro2.9.3+dfsg1-1ubuntu0.4vulnerable
Ubuntulibxml2pro2.9.3+dfsg1-1ubuntu0.5vulnerable
Ubuntulibxml2pro2.9.3+dfsg1-1ubuntu0.6vulnerable
Ubuntulibxml2pro2.9.3+dfsg1-1ubuntu0.7vulnerable
Ubuntulibxml2pro2.9.3+dfsg1-1ubuntu0.7+esm1vulnerable
Ubuntulibxml2pro2.9.3+dfsg1-1ubuntu0.7+esm2vulnerable
Ubuntulibxml2pro2.9.3+dfsg1-1ubuntu0.7+esm3vulnerable
Ubuntulibxml2pro2.9.3+dfsg1-1ubuntu0.7+esm4fixed
Ubuntulibxml2pro2.9.2+zdfsg1-4vulnerable
Ubuntulibxml2pro2.9.2+zdfsg1-4ubuntu1vulnerable
Ubuntulibxml2pro2.9.2+zdfsg1-4ubuntu2vulnerable
Ubuntulibxml2pro2.9.2+zdfsg1-4ubuntu3vulnerable
Ubuntulibxml2pro2.9.3+dfsg1-1vulnerable
Ubuntulibxml2pro2.9.3+dfsg1-1ubuntu0.1vulnerable
Ubuntulibxml2pro2.9.3+dfsg1-1ubuntu0.2vulnerable
Ubuntulibxml2pro2.9.3+dfsg1-1ubuntu0.3vulnerable
Ubuntulibxml2pro2.9.3+dfsg1-1ubuntu0.4vulnerable
Ubuntulibxml2pro2.9.3+dfsg1-1ubuntu0.5vulnerable
Ubuntulibxml2pro2.9.3+dfsg1-1ubuntu0.6vulnerable
Ubuntulibxml2pro2.9.3+dfsg1-1ubuntu0.7vulnerable
Ubuntulibxml2pro2.9.3+dfsg1-1ubuntu0.7+esm1vulnerable
Ubuntulibxml2pro2.9.3+dfsg1-1ubuntu0.7+esm2vulnerable
Ubuntulibxml2pro2.9.3+dfsg1-1ubuntu0.7+esm3vulnerable
Ubuntulibxml2pro2.9.3+dfsg1-1ubuntu0.7+esm4fixed
Ubuntulibxml218.042.9.4+dfsg1-4ubuntu1vulnerable
Ubuntulibxml218.042.9.4+dfsg1-5ubuntu1vulnerable
Ubuntulibxml218.042.9.4+dfsg1-5ubuntu2vulnerable
Ubuntulibxml218.042.9.4+dfsg1-5.1ubuntu1vulnerable
Ubuntulibxml218.042.9.4+dfsg1-5.2ubuntu1vulnerable
Ubuntulibxml218.042.9.4+dfsg1-6.1ubuntu1vulnerable
Ubuntulibxml218.042.9.4+dfsg1-6.1ubuntu1.2vulnerable
Ubuntulibxml218.042.9.4+dfsg1-6.1ubuntu1.3vulnerable
Ubuntulibxml218.042.9.4+dfsg1-6.1ubuntu1.4vulnerable
Ubuntulibxml218.042.9.4+dfsg1-6.1ubuntu1.5vulnerable
Ubuntulibxml218.042.9.4+dfsg1-6.1ubuntu1.6vulnerable
Ubuntulibxml218.042.9.4+dfsg1-6.1ubuntu1.7vulnerable
Ubuntulibxml218.042.9.4+dfsg1-6.1ubuntu1.8fixed
Ubuntulibxml220.042.9.4+dfsg1-7ubuntu3vulnerable
Ubuntulibxml220.042.9.4+dfsg1-7ubuntu5vulnerable
Ubuntulibxml220.042.9.4+dfsg1-8ubuntu1vulnerable
Ubuntulibxml220.042.9.4+dfsg1-8ubuntu2vulnerable
Ubuntulibxml220.042.9.4+dfsg1-8ubuntu3vulnerable
Ubuntulibxml220.042.9.10+dfsg-1ubuntu3vulnerable
Ubuntulibxml220.042.9.10+dfsg-4build1vulnerable
Ubuntulibxml220.042.9.10+dfsg-5vulnerable
Ubuntulibxml220.042.9.10+dfsg-5ubuntu0.20.04.1vulnerable
Ubuntulibxml220.042.9.10+dfsg-5ubuntu0.20.04.2vulnerable
Ubuntulibxml220.042.9.10+dfsg-5ubuntu0.20.04.3vulnerable
Ubuntulibxml220.042.9.10+dfsg-5ubuntu0.20.04.4vulnerable
Ubuntulibxml220.042.9.10+dfsg-5ubuntu0.20.04.5fixed
Ubuntulibxml222.042.9.12+dfsg-4vulnerable
Ubuntulibxml222.042.9.12+dfsg-5vulnerable
Ubuntulibxml222.042.9.12+dfsg-6vulnerable
Ubuntulibxml222.042.9.13+dfsg-1vulnerable
Ubuntulibxml222.042.9.13+dfsg-1build1vulnerable
Ubuntulibxml222.042.9.13+dfsg-1ubuntu0.1vulnerable
Ubuntulibxml222.042.9.13+dfsg-1ubuntu0.2fixed
Opensuselibxml2tumbleweed2.10.3-1.1fixed
Suselibxml2linux enterprise micro 5.32.9.14-150400.5.10.1fixed
Suselibxml2-pythonlinux enterprise micro 5.32.9.14-150400.5.10.1fixed
Suselibxml2linux enterprise module for basesystem 15 sp42.9.14-150400.5.10.1fixed
Suselibxml2-pythonlinux enterprise module for basesystem 15 sp42.9.14-150400.5.10.1fixed
Opensuselibxml2leap 15.42.9.14-150400.5.10.1fixed
Opensuselibxml2-pythonleap 15.42.9.14-150400.5.10.1fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianlibxml2sourcesid2.9.14+dfsg-1.1not yet assignedNot reported[1022224]
Debianlibxml2sourceforky2.9.14+dfsg-1.1not yet assignedNot reported[1022224]
Debianlibxml2sourcetrixie2.9.14+dfsg-1.1not yet assignedNot reported[1022224]
Debianlibxml2sourcebookworm2.9.14+dfsg-1.1not yet assignedNot reported[1022224]
Cpelibxml2cpeNot reported2.10.3Not reportedNVD-CVE-2022-40303Not reported
CpeipadoscpeNot reported15.7.2Not reportedNVD-CVE-2022-40303Not reported
Cpeiphone_oscpeNot reported15.7.2Not reportedNVD-CVE-2022-40303Not reported
CpemacoscpeNot reported12.6.2Not reportedNVD-CVE-2022-40303Not reported
CpetvoscpeNot reported16.2Not reportedNVD-CVE-2022-40303Not reported
CpewatchoscpeNot reported9.2Not reportedNVD-CVE-2022-40303Not reported
Androidplatform/external/libxml2AndroidNot reported13:2023-03-01Not reportedPUB-A-260709824Not reported
Ubuntulibxml2debpro2.9.3+dfsg1-1ubuntu0.7+esm4Not reportedUSN-5760-2Not reported
Ubuntulibxml2debpro2.9.3+dfsg1-1ubuntu0.7+esm4Not reportedUBUNTU-CVE-2022-40303Not reported
Ubuntulibxml2deb18.042.9.4+dfsg1-6.1ubuntu1.8Not reportedUBUNTU-CVE-2022-40303Not reported
Ubuntulibxml2deb20.042.9.10+dfsg-5ubuntu0.20.04.5Not reportedUBUNTU-CVE-2022-40303Not reported
Ubuntulibxml2deb22.042.9.13+dfsg-1ubuntu0.2Not reportedUBUNTU-CVE-2022-40303Not reported
Opensuselibxml2rpmtumbleweed2.10.3-1.1Not reportedOPENSUSE-SU-2024:12419-1Not reported
Suselibxml2rpmlinux enterprise micro 5.32.9.14-150400.5.10.1Not reportedSUSE-SU-2022:3692-1Not reported
Suselibxml2-pythonrpmlinux enterprise micro 5.32.9.14-150400.5.10.1Not reportedSUSE-SU-2022:3692-1Not reported
Suselibxml2rpmlinux enterprise module for basesystem 15 sp42.9.14-150400.5.10.1Not reportedSUSE-SU-2022:3692-1Not reported
Suselibxml2-pythonrpmlinux enterprise module for basesystem 15 sp42.9.14-150400.5.10.1Not reportedSUSE-SU-2022:3692-1Not reported
Opensuselibxml2rpmleap 15.42.9.14-150400.5.10.1Not reportedSUSE-SU-2022:3692-1Not reported
Opensuselibxml2-pythonrpmleap 15.42.9.14-150400.5.10.1Not reportedSUSE-SU-2022:3692-1Not reported

[Debian bug #1022224]

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.14+dfsg-1.1

      dsa · libxml2 · debian · bookworm

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

      Fixed · Fixed: 2.9.14+dfsg-1.1

      dsa · libxml2 · debian · bookworm

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

      Fixed · Fixed: 2.9.14+dfsg-1.1

      dsa · libxml2 · debian · bookworm

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

      Fixed · Fixed: 2.9.14+dfsg-1.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.14+dfsg-1.1

      dsa · libxml2 · debian · bookworm

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

      Fixed · Fixed: 2.9.14+dfsg-1.1

      dsa · libxml2 · debian · bookworm

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

      Fixed · Fixed: 2.9.14+dfsg-1.1

      dsa · libxml2 · debian · bookworm

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

      Fixed · Fixed: 2.9.14+dfsg-1.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.14+dfsg-1.1

      dsa · libxml2 · debian · bookworm

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

      Fixed · Fixed: 2.9.14+dfsg-1.1

      dsa · libxml2 · debian · bookworm

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

      Fixed · Fixed: 2.9.14+dfsg-1.1

      dsa · libxml2 · debian · bookworm

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

      Fixed · Fixed: 2.9.14+dfsg-1.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.14+dfsg-1.1

      dsa · libxml2 · debian · bookworm

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

      Fixed · Fixed: 2.9.14+dfsg-1.1

      dsa · libxml2 · debian · bookworm

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

      Fixed · Fixed: 2.9.14+dfsg-1.1

      dsa · libxml2 · debian · bookworm

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

      Fixed · Fixed: 2.9.14+dfsg-1.1

      dsa · libxml2 · debian · bookworm

  • Source package: [libxml2]

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

      Fixed · Fixed: 2.9.14+dfsg-1.1

      dsa · libxml2 · debian · bookworm

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

      Fixed · Fixed: 2.9.14+dfsg-1.1

      dsa · libxml2 · debian · bookworm

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

      Fixed · Fixed: 2.9.14+dfsg-1.1

      dsa · libxml2 · debian · bookworm

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

      Fixed · Fixed: 2.9.14+dfsg-1.1

      dsa · libxml2 · debian · bookworm

[openSUSE Tumbleweed]

  • [libxml2-16]Unknown

    Source package: [libxml2]

    Details (1)
    • 2.15.3-2.2 · x86_64 · tumbleweed

      Unknown · Fixed: 2.10.3-1.1

      Version impact unknown

      dsa · libxml2 · opensuse · tumbleweed

  • Source package: [libxml2]

    Details (1)
    • 2.15.3-2.2 · x86_64 · tumbleweed

      Unknown · Fixed: 2.10.3-1.1

      Version impact unknown

      dsa · libxml2 · opensuse · tumbleweed

  • [libxml2-devel]Unknown

    Source package: [libxml2]

    Details (1)
    • 2.15.3-2.2 · x86_64 · tumbleweed

      Unknown · Fixed: 2.10.3-1.1

      Version impact unknown

      dsa · libxml2 · opensuse · tumbleweed

  • Source package: [libxml2]

    Details (1)
    • 2.15.3-2.2 · x86_64 · tumbleweed

      Unknown · Fixed: 2.10.3-1.1

      Version impact unknown

      dsa · libxml2 · opensuse · tumbleweed

  • [libxml2-tools]Unknown

    Source package: [libxml2]

    Details (1)
    • 2.15.3-2.2 · x86_64 · tumbleweed

      Unknown · Fixed: 2.10.3-1.1

      Version impact unknown

      dsa · libxml2 · opensuse · tumbleweed

Observed:

References