Buffer overflow in Xmlsoft Libxml2
CVE-2025-6021
A flaw was found in libxml2's xmlBuildQName function, where integer overflows in buffer size calculations can lead to a stack-based buffer overflow. This issue can result in memory corruption or a denial of service when processing crafted…
Vulnerability class: Buffer Overflow
EPSS: 0.021 (84.4th percentile) — read the EPSS interpretation.
CVSS v3 metric
CVSS v3 base score 7.5 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H.
Affected products
- Xmlsoft Libxml2
- Red Hat Discovery 2 — versions sha256:ad07f55ee75fb20310c88f154a04665bd8465d138d66c665c300f61447858344
- Red Hat Enterprise Linux 10 — versions 0:2.12.5-7.el10_0
- Red Hat Enterprise Linux 6
- Red Hat Enterprise Linux 7 Extended Lifecycle Support — versions 0:2.9.1-6.el7_9.10
- Red Hat Enterprise Linux 8 — versions 0:2.9.7-21.el8_10.1
- Red Hat Enterprise Linux 8.2 Advanced Update Support — versions 0:2.9.7-9.el8_2.3
- Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support — versions 0:2.9.7-9.el8_4.6
- Red Hat Enterprise Linux 8.4 Extended Update Support Long-life Add-on — versions 0:2.9.7-9.el8_4.6
- Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support — versions 0:2.9.7-13.el8_6.10
Weakness classification (CWE)
Public proof-of-concept exploits
References
- secalert@redhat.com (x_refsource_REDHAT, vendor-advisory, Third Party Advisory)
- secalert@redhat.com (x_refsource_REDHAT, vendor-advisory, Third Party Advisory)
- secalert@redhat.com (x_refsource_REDHAT, vendor-advisory, Third Party Advisory)
- secalert@redhat.com (x_refsource_REDHAT, vendor-advisory, Third Party Advisory)
- secalert@redhat.com (x_refsource_REDHAT, vendor-advisory)
- secalert@redhat.com (x_refsource_REDHAT, vendor-advisory, Third Party Advisory)
- secalert@redhat.com (x_refsource_REDHAT, vendor-advisory, Third Party Advisory)
- secalert@redhat.com (x_refsource_REDHAT, vendor-advisory, Third Party Advisory)
- secalert@redhat.com (x_refsource_REDHAT, vendor-advisory, Third Party Advisory)
- secalert@redhat.com (x_refsource_REDHAT, vendor-advisory, Third Party Advisory)
Frequently asked questions
- What is CVE-2025-6021?
- CVE-2025-6021 is a high-severity vulnerability in Xmlsoft Libxml2, classified under Out-of-bounds Write. CVSS score: 7.5/10. Published 2025-06-12.
- How severe is CVE-2025-6021?
- High severity. CVSS v3 base score is 7.5 out of 10.
- Is CVE-2025-6021 known to be exploited?
- 8 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.