CVE Vulnerabilities

CVE-2024-34459

Heap-based Buffer Overflow

Published: May 14, 2024 | Modified: Oct 15, 2026
CVSS 3.x
N/A
Source:
NVD
CVSS 2.x
RedHat/V2
RedHat/V3
5.5 LOW
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Ubuntu
LOW

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.

Weakness

A heap overflow condition is a buffer overflow, where the buffer that can be overwritten is allocated in the heap portion of memory, generally meaning that the buffer was allocated using a routine such as malloc().

Affected Software

NameVendorStart VersionEnd Version
Libxml2Xmlsoft*2.11.8 (excluding)
Libxml2Xmlsoft2.12.0 (including)2.12.7 (excluding)
Red Hat Enterprise Linux 10RedHatlibxml2-0:2.12.5-10.el10_2.1*
Red Hat Enterprise Linux 10.0 Extended Update SupportRedHatlibxml2-0:2.12.5-9.el10_0.1*
Red Hat Enterprise Linux 8RedHatlibxml2-0:2.9.7-21.el8_10.5*
Red Hat Enterprise Linux 8RedHatlibxml2-0:2.9.7-21.el8_10.5*
Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update SupportRedHatlibxml2-0:2.9.7-9.el8_4.10*
Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-OnRedHatlibxml2-0:2.9.7-9.el8_4.10*
Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update SupportRedHatlibxml2-0:2.9.7-13.el8_6.14*
Red Hat Enterprise Linux 8.6 Extended Update Support Long-Life Add-OnRedHatlibxml2-0:2.9.7-13.el8_6.14*
Red Hat Enterprise Linux 8.8 Telecommunications Update ServiceRedHatlibxml2-0:2.9.7-16.el8_8.14*
Red Hat Enterprise Linux 8.8 Update Services for SAP SolutionsRedHatlibxml2-0:2.9.7-16.el8_8.14*
Red Hat Enterprise Linux 9RedHatlibxml2-0:2.9.13-14.el9_8.1*
Red Hat Enterprise Linux 9RedHatlibxml2-0:2.9.13-14.el9_8.1*
Red Hat Enterprise Linux 9.2 Update Services for SAP SolutionsRedHatlibxml2-0:2.9.13-3.el9_2.11*
Red Hat Enterprise Linux 9.4 Update Services for SAP SolutionsRedHatlibxml2-0:2.9.13-13.el9_4.1*
Red Hat Enterprise Linux 9.6 Extended Update SupportRedHatlibxml2-0:2.9.13-12.el9_6.2*
Cert Manager support for Red Hat OpenShift release 1.17RedHatcert-manager/jetstack-cert-manager-acmesolver-rhel9:1791371080*
Cert Manager support for Red Hat OpenShift release 1.17RedHatcert-manager/jetstack-cert-manager-rhel9:1791371069*
Cert Manager support for Red Hat OpenShift release 1.17RedHatcert-manager/cert-manager-operator-rhel9:1791788287*
Cert Manager support for Red Hat OpenShift release 1.17RedHatcert-manager/cert-manager-operator-bundle:1791970484*
Cert Manager support for Red Hat OpenShift release 1.18RedHatcert-manager/jetstack-cert-manager-acmesolver-rhel9:1791459707*
Cert Manager support for Red Hat OpenShift release 1.18RedHatcert-manager/jetstack-cert-manager-rhel9:1791459711*
Cert Manager support for Red Hat OpenShift release 1.18RedHatcert-manager/cert-manager-istio-csr-rhel9:1791459759*
Cert Manager support for Red Hat OpenShift release 1.18RedHatcert-manager/cert-manager-operator-rhel9:1789029076*
Cert Manager support for Red Hat OpenShift release 1.18RedHatcert-manager/cert-manager-operator-bundle:1791966259*
Cert Manager support for Red Hat OpenShift release 1.20RedHatcert-manager/cert-manager-trust-manager-rhel9:1790598593*
Red Hat Discovery 2RedHatdiscovery/discovery-server-rhel9:1782763840*
Red Hat Discovery 2RedHatdiscovery/discovery-ui-rhel9:1782756541*
Red Hat Insights proxy 1.5RedHatinsights-proxy/insights-proxy-container-rhel9:1782890503*
Red Hat OpenShift AI 3.4RedHatrhai/base-image-neuron-rhel9:1790703542*
Red Hat Update Infrastructure 5RedHatrhui5/cds-kubernetes-rhel9:1784794818*
Red Hat Update Infrastructure 5RedHatrhui5/cds-rhel9:1784794778*
Red Hat Update Infrastructure 5RedHatrhui5/haproxy-rhel9:1784795112*
Red Hat Update Infrastructure 5RedHatrhui5/installer-rhel9:1784794289*
Red Hat Update Infrastructure 5RedHatrhui5/rhua-rhel9:1784795076*
Red Hat Update Infrastructure 5RedHatrhui5/cds-kubernetes-tp-rhel9:1787241211*
Red Hat Update Infrastructure 5RedHatrhui5/installer-tp-rhel9:1787135742*
Red Hat Update Infrastructure 5RedHatrhui5/rhua-tp-rhel9:1787241260*
Libxml2Ubuntudevel*
Libxml2Ubuntuesm-infra-legacy/trusty*
Libxml2Ubuntuesm-infra-legacy/xenial*
Libxml2Ubuntuesm-infra/bionic*
Libxml2Ubuntuesm-infra/focal*
Libxml2Ubuntuesm-infra/xenial*
Libxml2Ubuntufocal*
Libxml2Ubuntujammy*
Libxml2Ubuntumantic*
Libxml2Ubuntunoble*
Libxml2Ubuntutrusty/esm*

Potential Mitigations

  • Use automatic buffer overflow detection mechanisms that are offered by certain compilers or compiler extensions. Examples include: the Microsoft Visual Studio /GS flag, Fedora/Red Hat FORTIFY_SOURCE GCC flag, StackGuard, and ProPolice, which provide various mechanisms including canary-based detection and range/index checking.
  • D3-SFCV (Stack Frame Canary Validation) from D3FEND [REF-1334] discusses canary-based detection in detail.
  • Run or compile the software using features or extensions that randomly arrange the positions of a program’s executable and libraries in memory. Because this makes the addresses unpredictable, it can prevent an attacker from reliably jumping to exploitable code.
  • Examples include Address Space Layout Randomization (ASLR) [REF-58] [REF-60] and Position-Independent Executables (PIE) [REF-64]. Imported modules may be similarly realigned if their default memory addresses conflict with other modules, in a process known as “rebasing” (for Windows) and “prelinking” (for Linux) [REF-1332] using randomly generated addresses. ASLR for libraries cannot be used in conjunction with prelink since it would require relocating the libraries at run-time, defeating the whole purpose of prelinking.
  • For more information on these techniques see D3-SAOR (Segment Address Offset Randomization) from D3FEND [REF-1335].

References