CVE-2025-6021
Libxml2: integer overflow in xmlbuildqname() leads to stack buffer overflow in libxml2
02 Description
Libxml2: integer overflow in xmlbuildqname() leads to stack buffer overflow in libxml2
03 Exploitation and scoring
- Exploitation
- Public exploit code exists. CISA's assessment records a public proof of concept. That is not a report of exploitation in the wild.
- SSVC decision
- ExploitationpocPublic proof-of-concept exploit code exists. Not a report of exploitation in the wild.
- AutomatableyesAn attacker can reliably automate reconnaissance through exploitation, so this scales.
- Technical ImpactpartialSuccessful exploitation gives limited control of the vulnerable component.
- EPSS probability
- 1.36% probability of exploitation activity in the next 30 days.
- EPSS percentile
- Equal to or higher than the score of 71.3% of scored records. A rank, not a probability.
- NVD base score
- 7.5 (CVSS v3.x), scored by the NVD independently of the CNA.
- NVD CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- NVD analysis status
- Modified. NVD last modified this record on 2026-10-12.
- Red Hat severity
- Moderate. Red Hat's rating for its own products, not a CVSS rating.
Exploit-prediction scores from FIRST. Independent scoring and analysis status from the NVD. Vendor severity from Red Hat. Exploitation assessment and catalog membership from CISA.
04 Metadata
- Published
- 2025-06-12 12:49Z1 YR AGO
- Last updated
- 2026-10-12 20:14Z16 DAYS AGO
- Reserved
- 2025-06-12
- Assigning CNA
- redhat
- Record state
- PUBLISHED
- Severity
- High (CVSS 7.5)
- CNA CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- Weaknesses
- CWE-787Out-of-bounds WriteBase
- Data version
- 5.2
- Document digest
- b8009b86106f369dc923e4910790b05e25b6158104b5ddeeb738e1980e87d252
05 Affected products
06 References
- access.redhat.comRHSA-2025:10630https://access.redhat.com/errata/RHSA-2025:10630
- access.redhat.comRHSA-2025:10698https://access.redhat.com/errata/RHSA-2025:10698
- access.redhat.comRHSA-2025:10699https://access.redhat.com/errata/RHSA-2025:10699
- access.redhat.comRHSA-2025:11580https://access.redhat.com/errata/RHSA-2025:11580
- access.redhat.comRHSA-2025:11673https://access.redhat.com/errata/RHSA-2025:11673
- access.redhat.comRHSA-2025:12098https://access.redhat.com/errata/RHSA-2025:12098
- access.redhat.comRHSA-2025:12099https://access.redhat.com/errata/RHSA-2025:12099
- access.redhat.comRHSA-2025:12199https://access.redhat.com/errata/RHSA-2025:12199
- access.redhat.comRHSA-2025:12237https://access.redhat.com/errata/RHSA-2025:12237
- access.redhat.comRHSA-2025:12239https://access.redhat.com/errata/RHSA-2025:12239
- access.redhat.comRHSA-2025:12240https://access.redhat.com/errata/RHSA-2025:12240
- access.redhat.comRHSA-2025:12241https://access.redhat.com/errata/RHSA-2025:12241
- access.redhat.comRHSA-2025:13267https://access.redhat.com/errata/RHSA-2025:13267
- access.redhat.comRHSA-2025:13289https://access.redhat.com/errata/RHSA-2025:13289
- access.redhat.comRHSA-2025:13325https://access.redhat.com/errata/RHSA-2025:13325
- access.redhat.comRHSA-2025:13335https://access.redhat.com/errata/RHSA-2025:13335
- access.redhat.comRHSA-2025:13336https://access.redhat.com/errata/RHSA-2025:13336
- access.redhat.comRHSA-2025:14059https://access.redhat.com/errata/RHSA-2025:14059
- access.redhat.comRHSA-2025:14396https://access.redhat.com/errata/RHSA-2025:14396
- access.redhat.comRHSA-2025:15308https://access.redhat.com/errata/RHSA-2025:15308
- access.redhat.comRHSA-2025:15672https://access.redhat.com/errata/RHSA-2025:15672
- access.redhat.comRHSA-2025:19020https://access.redhat.com/errata/RHSA-2025:19020
- access.redhat.comRHSA-2026:7519https://access.redhat.com/errata/RHSA-2026:7519
- access.redhat.comhttps://access.redhat.com/security/cve/CVE-2025-6021
- bugzilla.redhat.comRHBZ#2372406https://bugzilla.redhat.com/show_bug.cgi?id=2372406
- gitlab.gnome.orghttps://gitlab.gnome.org/GNOME/libxml2/-/issues/926
- lists.debian.orghttps://lists.debian.org/debian-lts-announce/2025/07/msg00014.html
- cert-portal.siemens.comhttps://cert-portal.siemens.com/productcert/html/ssa-032379.html
07 Fixed in
AlmaLinux 8
- libxml2 Fixed in 2.9.7-21.el8_10.1
- libxml2-devel Fixed in 2.9.7-21.el8_10.1
- python3-libxml2 Fixed in 2.9.7-21.el8_10.1
Source: AlmaLinux, AlmaLinux OS. Copyright (c) 2023 AlmaLinux OS. Licensed under MIT License. Received through OSV.dev. Reformatted by exploit.cc.
AlmaLinux 9
- libxml2 Fixed in 2.9.13-10.el9_6
- libxml2-devel Fixed in 2.9.13-10.el9_6
- python3-libxml2 Fixed in 2.9.13-10.el9_6
Source: AlmaLinux, AlmaLinux OS. Copyright (c) 2023 AlmaLinux OS. Licensed under MIT License. Received through OSV.dev. Reformatted by exploit.cc.
AlmaLinux 10
- libxml2 Fixed in 2.12.5-7.el10_0
- libxml2-devel Fixed in 2.12.5-7.el10_0
- libxml2-static Fixed in 2.12.5-7.el10_0
- python3-libxml2 Fixed in 2.12.5-7.el10_0
Source: AlmaLinux, AlmaLinux OS. Copyright (c) 2023 AlmaLinux OS. Licensed under MIT License. Received through OSV.dev. Reformatted by exploit.cc.
Arch Linux
- libxml2 Fixed in 2.14.4-1
Source: Arch Linux Security Tracker, the Arch Linux security team. Reformatted by exploit.cc.
CloudLinux 8
- libxml2 Fixed in 2.9.7-21.el8_10.1
- libxml2-devel Fixed in 2.9.7-21.el8_10.1
- python3-libxml2 Fixed in 2.9.7-21.el8_10.1
Derived from AlmaLinux 8. Partial coverage: only packages taken from AlmaLinux 8 are listed.
Source: CloudLinux errata, CloudLinux Inc. Derived from: AlmaLinux, AlmaLinux OS. Copyright (c) 2023 AlmaLinux OS. Licensed under MIT License. Received through OSV.dev. Reformatted by exploit.cc.
CloudLinux 9
- libxml2 Fixed in 2.9.13-10.el9_6
- libxml2-devel Fixed in 2.9.13-10.el9_6
- python3-libxml2 Fixed in 2.9.13-10.el9_6
Derived from AlmaLinux 9. Partial coverage: only packages taken from AlmaLinux 9 are listed.
Source: CloudLinux errata, CloudLinux Inc. Derived from: AlmaLinux, AlmaLinux OS. Copyright (c) 2023 AlmaLinux OS. Licensed under MIT License. Received through OSV.dev. Reformatted by exploit.cc.
CloudLinux 10
- libxml2 Fixed in 2.12.5-7.el10_0
- libxml2-devel Fixed in 2.12.5-7.el10_0
- libxml2-static Fixed in 2.12.5-7.el10_0
- python3-libxml2 Fixed in 2.12.5-7.el10_0
Derived from AlmaLinux 10. Partial coverage: only packages taken from AlmaLinux 10 are listed.
Source: CloudLinux errata, CloudLinux Inc. Derived from: AlmaLinux, AlmaLinux OS. Copyright (c) 2023 AlmaLinux OS. Licensed under MIT License. Received through OSV.dev. Reformatted by exploit.cc.
Debian 12
- libxml2 Fixed in 2.9.14+dfsg-1.3~deb12u3
Source: Debian Security Tracker, the Debian security team. Received through OSV.dev. Reformatted by exploit.cc.
Debian 13
- libxml2 Fixed in 2.12.7+dfsg+really2.9.14-2
Source: Debian Security Tracker, the Debian security team. Received through OSV.dev. Reformatted by exploit.cc.
Debian 14
- libxml2 Fixed in 2.12.7+dfsg+really2.9.14-2
Source: Debian Security Tracker, the Debian security team. Received through OSV.dev. Reformatted by exploit.cc.
Ubuntu 22.04 LTS
- libxml2 Fixed in 2.9.13+dfsg-1ubuntu0.8
Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.
Ubuntu 24.04 LTS
- libxml2 Fixed in 2.9.14+dfsg-1.3ubuntu3.4
Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.
Ubuntu Pro 14.04 LTS
- libxml2 Fixed in 2.9.1+dfsg1-3ubuntu4.13+esm8Available with Ubuntu Pro with Legacy support add-on: https://ubuntu.com/pro
Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.
Ubuntu Pro 16.04 LTS
- libxml2 Fixed in 2.9.3+dfsg1-1ubuntu0.7+esm9Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro
Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.
Ubuntu Pro 18.04 LTS
- libxml2 Fixed in 2.9.4+dfsg1-6.1ubuntu1.9+esm4Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro
Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.
Ubuntu Pro 20.04 LTS
- libxml2 Fixed in 2.9.10+dfsg-5ubuntu0.20.04.10+esm1Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro
Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.
A release or ecosystem missing from this list has no record here. It may be unaffected or not covered by the source. Source notices and licences.