CVE catalog

CVE-2022-40304

libxml2: CVE-2022-40304

[CVE catalog]

Severity
High · CVSS 8.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Published
Source
[NVD] · [CVE record]
EPSS
5.81% · Oct 25, 2026

An issue was discovered in libxml2 before 2.10.3. Certain invalid XML entity definitions can corrupt a hash table key, potentially leading to subsequent logic errors. In one case, a double-free can be provoked.

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
Cpemanageability_software_development_kitNot reportedNot reportedunknown
Cpesmi-s_providerNot reportedNot reportedunknown
CpesnapmanagerNot reportedNot reportedunknown
Cpeh300s_firmwareNot reportedNot reportedunknown
Cpeh500s_firmwareNot reportedNot reportedunknown
Cpeh700s_firmwareNot reportedNot reportedunknown
Cpeh410s_firmwareNot reportedNot reportedunknown
Cpeh410c_firmwareNot reportedNot reportedunknown
CpeipadosNot reported15.7.2fixed
Cpeiphone_osNot reported15.7.2fixed
CpemacosNot reported12.6.2fixed
CpetvosNot reported16.2fixed
CpewatchosNot reported9.2fixed
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

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianlibxml2sourcesid2.9.14+dfsg-1.1not yet assignedNot reported[1022225]
Debianlibxml2sourceforky2.9.14+dfsg-1.1not yet assignedNot reported[1022225]
Debianlibxml2sourcetrixie2.9.14+dfsg-1.1not yet assignedNot reported[1022225]
Debianlibxml2sourcebookworm2.9.14+dfsg-1.1not yet assignedNot reported[1022225]
Cpelibxml2cpeNot reported2.10.3Not reportedNVD-CVE-2022-40304Not reported
CpeipadoscpeNot reported15.7.2Not reportedNVD-CVE-2022-40304Not reported
Cpeiphone_oscpeNot reported15.7.2Not reportedNVD-CVE-2022-40304Not reported
CpemacoscpeNot reported12.6.2Not reportedNVD-CVE-2022-40304Not reported
CpetvoscpeNot reported16.2Not reportedNVD-CVE-2022-40304Not reported
CpewatchoscpeNot reported9.2Not reportedNVD-CVE-2022-40304Not reported
Ubuntulibxml2debpro2.9.3+dfsg1-1ubuntu0.7+esm4Not reportedUBUNTU-CVE-2022-40304Not reported
Ubuntulibxml2deb18.042.9.4+dfsg1-6.1ubuntu1.8Not reportedUBUNTU-CVE-2022-40304Not reported
Ubuntulibxml2deb20.042.9.10+dfsg-5ubuntu0.20.04.5Not reportedUBUNTU-CVE-2022-40304Not reported
Ubuntulibxml2deb22.042.9.13+dfsg-1ubuntu0.2Not reportedUBUNTU-CVE-2022-40304Not reported

[Debian bug #1022225]

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

Observed:

References