Skip to main content
Public proof of conceptFix available

CVE-2024-34459

libxml2: buffer over-read in xmlHTMLPrintFileContext in xmllint.c

A public proof of concept exists; no exploitation attested.

  • Published2024-05-14
  • Fixed in2.12.7 · 2.11.8
  • WeaknessCWE-122

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

Description

An issue was discovered in xmllint (from libxml2) before 2.11.8 and 2.12.x before 2.12.7. Formatting error messages with xmllint --htmlout can result in a buffer over-read in xmlHTMLPrintFileContext in xmllint.c.

Timeline

dates in UTC
  1. 2024-05-1415:39CVE publishedNVD

Versions per branch

NVD · CISA-ADP
Xmlsoft libxml2
BranchAffectedFixed in
2.12≥ 2.12.0, < 2.12.72.12.7
2.11< 2.11.82.11.8
Xmlsoft xmllint
BranchAffectedFixed in
2.12≥ 2.12.0, < 2.12.72.12.7
2.11< 2.11.82.11.8

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Distribution builds and vendor advisories

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • libxml2Ubuntu:Pro:18.04:LTSall versions · fixed in 2.9.4+dfsg1-6.1ubuntu1.9+esm2
  • libxml2Ubuntu:Pro:16.04:LTSall versions · fixed in 2.9.3+dfsg1-1ubuntu0.7+esm7
  • libxml2Ubuntu:Pro:14.04:LTSall versions · fixed in 2.9.1+dfsg1-3ubuntu4.13+esm7
  • libxml2Ubuntu:24.04:LTSall versions · fixed in 2.9.14+dfsg-1.3ubuntu3.1
  • libxml2Ubuntu:24.04:LTSall versions · fixed in 2.9.14+dfsg-1.3ubuntu3.2
  • libxml2Ubuntu:22.04:LTSall versions · fixed in 2.9.13+dfsg-1ubuntu0.5
  • libxml2Ubuntu:22.04:LTSall versions · fixed in 2.9.13+dfsg-1ubuntu0.6
  • libxml2Ubuntu:20.04:LTSall versions · fixed in 2.9.10+dfsg-5ubuntu0.20.04.8

85 more package ranges on OSV.dev

Vendor advisories

  • CVE-2024-34459 Red Hat Product Security497 products fixed · 10 known affected

    libxml2: buffer over-read in xmlHTMLPrintFileContext in xmllint.c

    libxml2 as a component of Red Hat Enterprise Linux 6 · libxml2-devel as a component of Red Hat Enterprise Linux 6 · libxml2-python as a component of Red Hat Enterprise Linux 6 · +7 more

  • RHSA-2026:82888 Red Hat Product Security1 product fixed

    Red Hat Security Advisory: cert-manager Operator for Red Hat OpenShift 1.17.2

  • RHSA-2026:82857 Red Hat Product Security1 product fixed

    Red Hat Security Advisory: cert-manager Operator for Red Hat OpenShift 1.18.2

  • RHSA-2026:82372 Red Hat Product Security4 products fixed

    Red Hat Security Advisory: cert-manager Operator for Red Hat OpenShift 1.18.2

  • RHSA-2026:82354 Red Hat Product Security4 products fixed

    Red Hat Security Advisory: cert-manager Operator for Red Hat OpenShift 1.18.2

  • RHSA-2026:82347 Red Hat Product Security8 products fixed

    Red Hat Security Advisory: cert-manager Operator for Red Hat OpenShift 1.18.2

20 more advisories

Full record on NVD

Fix

  1. Update Xmlsoft libxml2 to 2.12.7 · 2.11.8
  2. Vendor fix Red Hat Product Security RHSA-2026:82888 · 1 productBefore applying this update, make sure all previously released errata relevant to your system have been applied. The steps to apply the upgraded images are different depending on the installation plan approval policy you used when installing the cert-manager Operator for Red Hat OpenShift. - If t…
  3. Vendor fix Red Hat Product Security RHSA-2026:74674 · 1 productFor more information visit https://access.redhat.com/errata/RHSA-2026:74674
  4. Vendor fix Red Hat Product Security RHSA-2026:58981 · 3 productsPlease consult the RHUI Technology Preview Release Notes at https://access.redhat.com/articles/7141172 for instructions on how to use this image set.
  5. Vendor fix Red Hat Product Security RHSA-2026:44481 · 5 productsThe container images provided by this release, apart from the installer, should be deployed using rhui-installer utility. See the official documentation for more details.
  6. Vendor fix Red Hat Product Security RHSA-2026:34102 · 2 productsThe Insights proxy container image provided here is downloaded by the Red Hat Insights proxy product RPM. Before applying this update, make sure all previously released errata relevant to your system have been applied.
  7. Vendor fix Red Hat Product Security RHSA-2026:33632 · 45 productsFor details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258

Advisories and patches

Detection

Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof of concept
Metasploit modules
none listed
Metasploit Framework

Sources

Identifiers

Technical details

CVSS v3 vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Published
2024-05-14
Last modified
2026-10-15
NVD status
Modified
GitHub advisory
GHSA-vv62-jfwq-693v

Frequently asked questions

What is CVE-2024-34459?

An issue was discovered in xmllint (from libxml2) before 2.11.8 and 2.12.x before 2.12.7. Formatting error messages with xmllint --htmlout can result in a buffer over-read in xmlHTMLPrintFileContext in xmllint.c.

Is CVE-2024-34459 actively exploited?

A proof-of-concept exploit exists for CVE-2024-34459, but active exploitation has not been confirmed at this time.

What is the CVSS score for CVE-2024-34459?

CVE-2024-34459 has a CVSS v3 base score of 7.5 (High severity), with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N.

Running libxml2? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website checks · 250 API requests/month

Sources for this record