Skip to content
Noroxi
NVD / CVE Program· CNA redhat

CVE-2025-6021: Libxml2: integer overflow in xmlbuildqname() leads to stack buffer overflow in libxml2

HighCVSS 7.5 · v3.1—No exploit Fix available

Noroxi assessment

Priority: Monitor (action score 30/100)

  • The sources we track (CISA KEV, Exploit-DB, Metasploit, Nuclei, GitHub) show no public exploit code or exploitation in the wild.
  • Probability of exploitation in the next 30 days: 1.4% (FIRST EPSS); higher than 74% of all records.
  • Anyone who can reach it over the internet can trigger it. No account or password is required. No user action is required. No special conditions are required; it is repeatable.
  • According to CISA the attack is automatable: targets can be found by mass scanning.
  • Fixed version: gitlab.gnome.org/GNOME/libxml2/ libxml2 2.14.4.

Low priority for now. Upgrade to gitlab.gnome.org/GNOME/libxml2/ libxml2 2.14.4 or later.

Generated automatically from the record's data: CVSS (NVD and CNA), CISA KEV and SSVC, FIRST EPSS, exploit sources, fixed versions. How we calculate it

Primary sources: NVD · CVE.org · FIRST EPSS

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 input.

Published
Jun 12, 2025
Updated
Nov 5, 2026
EPSS
1.4% · 74th percentile

Report tools

JSON

Action score

30

Monitor

Low priority for now.

CVSS
30 / 40 · 7.5 / 10
CISA KEV
0 / 30 · Not listed
EPSS
0 / 30 · 1.4%

CISA SSVC decision

Exploitation
proof of concept
Automatable
yes
Technical impact
partial

Vulnrichment: CISA's decision-tree inputs.

CNA vs NVD score

NVD
—
CNA · redhat
7.5
NVD has not scored this yet; the score shown is the CNA’s.

The score given by the assigning authority versus NVD’s independent score. A gap means the severity is contested.

Get told when this record changes

  • Not in KEV: no record of exploitation in the wild
  • No public exploit code on record
  • A fix has been released

If any of these changes, we'll tell you in the daily email digest.

Follow CVE-2025-6021

When you'll hear from us

  • when it enters CISA KEV
  • when exploit code appears or is weaponized
  • when the record is updated (including a fixed version)
  • when EPSS rises 20 points in a week

One daily email digest (06:00 UTC); connect a webhook for KEV listings and weaponized exploits every 10 minutes on paid plans, on the hour on the free plan.

Your free account also gets you

  • CVE alerts: add the products and versions you run, get the new CVEs that affect them
  • Uptime monitoring: 1 site, instant email when it goes down
  • Add your domain: subdomains and takeover risk scanned every week (1 domain)
  • 10 scans an hour on the security tools, at most 30 a day (3 a day without an account), an API key and MCP
  • All your scans in one panel: findings, what changed in the last scan, a report per domain or per client (PDF, share link)
All free tools

Sign up with email · Have an account? Sign in

Free account, no card. Unfollow any time.

Is your version affected? Check it

Noroxi analysis

What does it mean in your environment?

The assessment above is generated automatically from the record's data; it doesn't know your environment. Our team verifies on your systems whether this vulnerability is actually exploitable and which mitigation is enough.

We use this product, ask for help

Affected systems

Is your version affected?

Pick the product and type the version you run. It's compared with this record's version ranges in your browser; the version isn't sent anywhere.

VendorProduct
xmlsoftlibxml2
redhatjboss core services
redhatopenshift container platform
redhatopenshift container platform for arm64
redhatopenshift container platform for ibm z
redhatopenshift container platform for linuxone
redhatopenshift container platform for power
redhatenterprise linux
redhatenterprise linux eus
redhatenterprise linux for arm 64
redhatenterprise linux for arm 64 eus
redhatenterprise linux for ibm z systems

and 8 more

Versions reported by the vendor

Affected version ranges reported by the assigning authority (redhat). Independent of NVD's CPE analysis and usually ahead of it.

  • gitlab.gnome.org/GNOME/libxml2/ libxml2

    • before 2.14.4affected · semver
  • Red Hat Red Hat Discovery 2

    • 2.0.1-1754478727 and laternot affected · rpm
  • Red Hat Red Hat Enterprise Linux 10

    • 0:2.12.5-7.el10_0 and laternot affected · rpm
  • Red Hat Red Hat Enterprise Linux 6

    • all versionsunknown
  • Red Hat Red Hat Enterprise Linux 7 Extended Lifecycle Support

    • 0:2.9.1-6.el7_9.10 and laternot affected · rpm
  • Red Hat Red Hat Enterprise Linux 8

    • 0:2.9.7-21.el8_10.1 and laternot affected · rpm
    • 0:2.9.7-21.el8_10.1 and laternot affected · rpm
  • Red Hat Red Hat Enterprise Linux 8.2 Advanced Update Support

    • 0:2.9.7-9.el8_2.3 and laternot affected · rpm
  • Red Hat Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support

    • 0:2.9.7-9.el8_4.6 and laternot affected · rpm
  • Red Hat Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-On

    • 0:2.9.7-9.el8_4.6 and laternot affected · rpm
  • Red Hat Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support

    • 0:2.9.7-13.el8_6.10 and laternot affected · rpm
  • Red Hat Red Hat Enterprise Linux 8.6 Telecommunications Update Service

    • 0:2.9.7-13.el8_6.10 and laternot affected · rpm
  • Red Hat Red Hat Enterprise Linux 8.6 Update Services for SAP Solutions

    • 0:2.9.7-13.el8_6.10 and laternot affected · rpm

Package-level exposure

OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.

EcosystemPackageAffected rangeFix
AlmaLinux:10libxml2before 2.12.5-7.el10_02.12.5-7.el10_0
AlmaLinux:10libxml2-develbefore 2.12.5-7.el10_02.12.5-7.el10_0
AlmaLinux:10libxml2-staticbefore 2.12.5-7.el10_02.12.5-7.el10_0
AlmaLinux:10python3-libxml2before 2.12.5-7.el10_02.12.5-7.el10_0
AlmaLinux:8libxml2before 2.9.7-21.el8_10.12.9.7-21.el8_10.1
AlmaLinux:8libxml2-develbefore 2.9.7-21.el8_10.12.9.7-21.el8_10.1
AlmaLinux:8python3-libxml2before 2.9.7-21.el8_10.12.9.7-21.el8_10.1
AlmaLinux:9libxml2before 2.9.13-10.el9_62.9.13-10.el9_6
AlmaLinux:9libxml2-develbefore 2.9.13-10.el9_62.9.13-10.el9_6
AlmaLinux:9python3-libxml2before 2.9.13-10.el9_62.9.13-10.el9_6
Alpine:v3.21libxml2before 2.13.9-r02.13.9-r0
Alpine:v3.22qt6-qtwebenginebefore 6.8.3-r56.8.3-r5
Debian:11libxml2before 2.9.10+dfsg-6.7+deb11u82.9.10+dfsg-6.7+deb11u8
Debian:12libxml2before 2.9.14+dfsg-1.3~deb12u32.9.14+dfsg-1.3~deb12u3
Debian:13libxml2before 2.12.7+dfsg+really2.9.14-22.12.7+dfsg+really2.9.14-2
openSUSE:Leap 15.6libxml2before 2.10.3-150500.5.29.12.10.3-150500.5.29.1
openSUSE:Leap 15.6libxml2-pythonbefore 2.10.3-150500.5.29.12.10.3-150500.5.29.1
openSUSE:Leap 15.6python-libxml2-pythonbefore 2.9.7-150000.3.82.12.9.7-150000.3.82.1
openSUSE:Tumbleweedlibxml2before 2.13.8-2.12.13.8-2.1
Red Hat:enterprise_linux:10.0libxml2before 0:2.12.5-7.el10_00:2.12.5-7.el10_0
Red Hat:enterprise_linux:10.0libxml2-debuginfobefore 0:2.12.5-7.el10_00:2.12.5-7.el10_0
Red Hat:enterprise_linux:10.0libxml2-debugsourcebefore 0:2.12.5-7.el10_00:2.12.5-7.el10_0
Red Hat:enterprise_linux:10.0libxml2-develbefore 0:2.12.5-7.el10_00:2.12.5-7.el10_0
Red Hat:enterprise_linux:10.0libxml2-staticbefore 0:2.12.5-7.el10_00:2.12.5-7.el10_0

+81

Other highest-scoring records for the same primary product.

  • CVE-2008-3529Heap-based buffer overflow in the xmlParseAttValueComplex function in parser.c in libxml2 before 2.7.0 allows context-dependent attackers…
    47Plan
  • CVE-2017-7376Buffer overflow in libxml2 allows remote attackers to execute arbitrary code by leveraging an incorrect limit for port values when handling…
    46Plan
  • CVE-2022-40303An issue was discovered in libxml2 before 2.10.3.
    42Plan

Published before and after this one in the same product

  • ← EarlierCVE-2025-32414Apr 7, 2025 · In libxml2 before 2.13.8 and 2.14.x before 2.14.2, out-of-bounds memory access can occur in the Python API (Python bindings) because of an…
    30Monitor
  • ← EarlierCVE-2025-32415Apr 17, 2025 · In libxml2 before 2.13.8 and 2.14.x before 2.14.2, xmlSchemaIDCFillNodeTables in xmlschemas.c has a heap-based buffer under-read.
    30Monitor
  • Later →CVE-2025-8732Aug 8, 2025 · libxml2 xmlcatalog xmlParseSGMLCatalog recursion
    7Monitor

Remediation

Which version to upgrade to

Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.

Product / packageFixed versionSource
gitlab.gnome.org/GNOME/libxml2/ libxml22.14.4Vendor (CNA)
almalinux:libxml22.12.5-7.el10_0 · AlmaLinux:10Package registry (OSV)
almalinux:libxml2-devel2.12.5-7.el10_0 · AlmaLinux:10Package registry (OSV)
almalinux:libxml2-static2.12.5-7.el10_0 · AlmaLinux:10Package registry (OSV)
almalinux:python3-libxml22.12.5-7.el10_0 · AlmaLinux:10Package registry (OSV)
alpine:libxml22.13.9-r0 · Alpine:v3.21Package registry (OSV)
alpine:qt6-qtwebengine6.8.3-r5 · Alpine:v3.22Package registry (OSV)
debian:libxml22.9.14+dfsg-1.3~deb12u3 · Debian:12Package registry (OSV)
opensuse:libxml22.10.3-150500.5.29.1 · openSUSE:Leap 15.6Package registry (OSV)
opensuse:libxml2-python2.10.3-150500.5.29.1 · openSUSE:Leap 15.6Package registry (OSV)
opensuse:python-libxml2-python2.9.7-150000.3.82.1 · openSUSE:Leap 15.6Package registry (OSV)
red hat:libxml20:2.12.5-7.el10_0 · Red Hat:enterprise_linux:10.0Package registry (OSV)
red hat:libxml2-160:2.15.2-0.3.hum1 · Red Hat:hummingbird:1Package registry (OSV)
red hat:libxml2-debuginfo0:2.12.5-7.el10_0 · Red Hat:enterprise_linux:10.0Package registry (OSV)
red hat:libxml2-debugsource0:2.12.5-7.el10_0 · Red Hat:enterprise_linux:10.0Package registry (OSV)
red hat:libxml2-devel0:2.12.5-7.el10_0 · Red Hat:enterprise_linux:10.0Package registry (OSV)
red hat:libxml2-python0:2.9.1-6.el7_9.10 · Red Hat:rhel_els:7Package registry (OSV)
red hat:libxml2-static0:2.12.5-7.el10_0 · Red Hat:enterprise_linux:10.0Package registry (OSV)
red hat:python3-libxml20:2.12.5-7.el10_0 · Red Hat:enterprise_linux:10.0Package registry (OSV)
red hat:python3-libxml2-debuginfo0:2.12.5-7.el10_0 · Red Hat:enterprise_linux:10.0Package registry (OSV)
rocky linux:libxml20:2.12.5-7.el10_0 · Rocky Linux:10Package registry (OSV)
suse:libxml22.12.10-150700.4.3.1 · SUSE:Linux Enterprise Module for Basesystem 15 SP7Package registry (OSV)
suse:libxml22.9.7-150000.3.82.1 · SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSSPackage registry (OSV)
suse:libxml2-python2.10.3-150500.5.29.1 · SUSE:Linux Enterprise Micro 5.5Package registry (OSV)
suse:libxml2-python2.12.10-150700.4.3.1 · SUSE:Linux Enterprise Module for Basesystem 15 SP7Package registry (OSV)
suse:python-libxml22.9.4-46.87.1 · SUSE:Linux Enterprise Server 12 SP5-LTSSPackage registry (OSV)
suse:python-libxml2-python2.9.7-150000.3.82.1 · SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSSPackage registry (OSV)

Exploit status

No known public exploit

No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.

Research context

For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.

Timeline

From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.

No dated events beyond publication.

Finders, reporters and analysts named in the CNA record. Click a name for that researcher’s other records.

Not on record for this CVE: EPSS history · patch commit or PR link · variant or chain candidate · public bounty program.

Technical details

Attack conditions

  • Anyone who can reach it over the internet can trigger it.
  • No account or password is required.
  • No user action is required.
  • No special conditions are required; it is repeatable.

If successful

Confidentiality
none
Integrity
none
Availability
high · the service can be disrupted
Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality impact
None
Integrity impact
None
Availability impact
High

Weakness class (CWE)

CWE-787 · Out-of-bounds Write

CVSS vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

nvd-secondary

Attack context

MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.

MITRE has no CAPEC/ATT&CK mapping for this CWE.

References

All records