Breaking News: Thousands Of GitHub Accounts Hijacked With wfx-loot CI Secret
Read the Report
Learn How MCP Is Bypassing a Decade of Cloud Security Best Practices
Read the Report
Are you exposed? Connect a repo in minutes.
Scan your repos free

CVE-2025-6021

libxml2: Integer Overflow in xmlBuildQName() Leads to Stack Buffer Overflow in libxml2

Overview

Published
12 Jun 2025
Modified
5 Nov 2026
High CVE
4 Registry packages
29 OS packages
18 Linux distributions
Yes Fix available

Description

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.

Source: OX vulnerability database

Severity

7.5 · HIGH

CVSS 3.1 base score, scored by NVD.

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

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

Weakness: CWE-787

Affected packages · 4

Packages affected by CVE-2025-6021
EcosystemPackageVulnerableFixed in
Bitnami java <1.8.0>=1.9.0, <8.0.481 1.8.08.0.481
Bitnami java-min <1.8.0>=1.9.0, <8.0.481 1.8.08.0.481
Bitnami jre <1.8.0>=1.9.0, <8.0.481 1.8.08.0.481
Julia XML2_jll <2.14.4+0 2.14.4+0

Open a package to see all its vulnerabilities.

Operating systems · 66 fixes

Azure Linux 1 release · 1 package

fixed 1
libxml2
Azure Linux fixes for CVE-2025-6021
ReleasePackageFixed in
3.0 libxml2 0:2.11.5-6.azl3

Oracle Linux 3 releases · 1 package

fixed 3
libxml2
Oracle Linux fixes for CVE-2025-6021
ReleasePackageFixed in
7 libxml2 +3 2.9.1-6.0.7.el7_9.6
8 libxml2 +2 2.9.7-21.el8_10.1
9 libxml2 +2 2.9.13-10.el9_6

Photon OS 2 releases · 1 package

fixed 2
libxml2
Photon OS fixes for CVE-2025-6021
ReleasePackageFixed in
4.0 libxml2 +2 2.9.12-18.ph4
5.0 libxml2 +2 2.12.10-4.ph5

Red Hat 3 releases · 2 packages

affected 3 fixed 10
openshift-ose-rhel-coreos-8 libxml2
Red Hat fixes for CVE-2025-6021
ReleasePackageFixed inAdvisory
7 openshift-ose-rhel-coreos-8 +1 affected —
7 libxml2 +3 0:2.9.1-6.el7_9.10 RHSA-2025:12240
8 openshift-ose-rhel-coreos-8 +1 affected —
8 libxml2 +2 0:2.9.7-13.el8_6.10 RHSA-2025:12098
8 libxml2 +2 0:2.9.7-16.el8_8.9 RHSA-2025:12239
8 libxml2 +2 0:2.9.7-21.el8_10.1 RHSA-2025:10698

7 more rows

SUSE Linux Enterprise 5 releases · 1 package

fixed 5
libxml2-2
SUSE Linux Enterprise fixes for CVE-2025-6021
ReleasePackageFixed inAdvisory
12.5 libxml2-2 +5 2.9.4-46.87.1 SUSE-SU-2025:02294-1
15.4 libxml2-2 +5 2.9.14-150400.5.44.1 SUSE-SU-2025:02355-1
15.5 libxml2-2 +5 2.10.3-150500.5.29.1 SUSE-SU-2025:02314-1
15.6 libxml2-2 +5 2.10.3-150500.5.29.1 SUSE-SU-2025:02314-1
15.7 libxml2-2 +5 2.12.10-150700.4.3.1 SUSE-SU-2025:02260-1

SUSE Linux Enterprise Micro 7 releases · 1 package

fixed 7
libxml2-2
SUSE Linux Enterprise Micro fixes for CVE-2025-6021
ReleasePackageFixed inAdvisory
5.1 libxml2-2 +1 2.9.7-150000.3.82.1 SUSE-SU-2025:02275-1
5.2 libxml2-2 +2 2.9.7-150000.3.82.1 SUSE-SU-2025:02275-1
5.3 libxml2-2 +2 2.9.14-150400.5.44.1 SUSE-SU-2025:02355-1
5.4 libxml2-2 +2 2.9.14-150400.5.44.1 SUSE-SU-2025:02355-1
5.5 libxml2-2 +2 2.10.3-150500.5.29.1 SUSE-SU-2025:02314-1
6.0 libxml2-2 +1 2.11.6-10.1 SUSE-SU-2025:20564-1

1 more row

alma 2 releases · 1 package

fixed 2
libxml2
alma fixes for CVE-2025-6021
ReleasePackageFixed in
8 libxml2 +2 2.9.7-21.el8_10.1
9 libxml2 +2 2.9.13-10.el9_6

alpine 4 releases · 2 packages

fixed 5 not affected 3
libxml2 qt6-qtwebengine
alpine fixes for CVE-2025-6021
ReleasePackageFixed in
3.22 libxml2 2.13.9-r0
3.22 qt6-qtwebengine 6.8.3-r5
3.23 qt6-qtwebengine not affected
3.23 libxml2 2.13.9-r0
3.24 qt6-qtwebengine not affected
3.24 libxml2 2.13.9-r0

2 more rows

amazon linux 1 release · 1 package

fixed 1
libxml2
amazon linux fixes for CVE-2025-6021
ReleasePackageFixed in
2023 libxml2 +6 2.10.4-1.amzn2023.0.11

chainguard 1 release · 2 packages

fixed 2
openjdk-17-openj9 openjdk-11-openj9
chainguard fixes for CVE-2025-6021
ReleasePackageFixed in
openjdk-17-openj9 +4 0.59.0-r1
openjdk-11-openj9 0.59.0-r2

debian 4 releases · 1 package

fixed 4
libxml2
debian fixes for CVE-2025-6021
ReleasePackageFixed in
11 libxml2 2.9.10+dfsg-6.7+deb11u8
12 libxml2 2.9.14+dfsg-1.3~deb12u3
13 libxml2 2.12.7+dfsg+really2.9.14-2
14 libxml2 2.12.7+dfsg+really2.9.14-2

echo 1 release · 3 packages

fixed 3
libxml2-2-11-7 libxml2-2-9-1 libxml2
echo fixes for CVE-2025-6021
ReleasePackageFixed in
libxml2-2-11-7 2.11.7+e1
libxml2-2-9-1 2.9.1+e1
libxml2 2.9.14+dfsg-1.3~deb12u3

openSUSE 1 release · 1 package

fixed 1
libxml2-2
openSUSE fixes for CVE-2025-6021
ReleasePackageFixed inAdvisory
Tumbleweed libxml2-2 +5 2.13.8-2.1 openSUSE-SU-2025:15321-1

rocky 3 releases · 1 package

fixed 3
libxml2
rocky fixes for CVE-2025-6021
ReleasePackageFixed in
10 libxml2 +2 2.12.5-7.el10_0
8 libxml2 +1 2.9.7-21.el8_10.1
9 libxml2 +2 2.9.13-10.el9_6

root.io debian 3 releases · 2 packages

fixed 3
rootio-libxml2 libxml2
root.io debian fixes for CVE-2025-6021
ReleasePackageFixed in
11 rootio-libxml2 2.9.10+dfsg-6.7+deb11u8
12 libxml2 +1 2.9.14+dfsg-1.3~deb12u3
13 rootio-libxml2 2.12.7+dfsg+really2.9.14-2

seal Red Hat 3 releases · 1 package

fixed 3
libxml2
seal Red Hat fixes for CVE-2025-6021
ReleasePackageFixed in
7 libxml2 +1 2.9.1-6.el7_9.6+sp999
8 libxml2 +1 2.9.7-18.el8_10.1+sp2
9 libxml2 +1 2.9.13-6.el9_4+sp999

seal debian 1 release · 1 package

fixed 1
libxml2
seal debian fixes for CVE-2025-6021
ReleasePackageFixed in
libxml2 +1 2.9.14+dfsg-1.3~deb12u4+sp999

ubuntu 4 releases · 1 package

fixed 4
libxml2
ubuntu fixes for CVE-2025-6021
ReleasePackageFixed in
18.04-ESM libxml2 2.9.4+dfsg1-6.1ubuntu1.9+esm4
20.04-ESM libxml2 2.9.10+dfsg-5ubuntu0.20.04.10+esm1
22.04 libxml2 2.9.13+dfsg-1ubuntu0.8
24.04 libxml2 2.9.14+dfsg-1.3ubuntu3.4

References

Show all 44 references

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.