CVE-2025-6021
libxml2: Integer Overflow in xmlBuildQName() Leads to Stack Buffer Overflow in libxml2
Overview
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
| Ecosystem | Package | Vulnerable | Fixed 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
| Release | Package | Fixed in |
|---|---|---|
| 3.0 | libxml2 | 0:2.11.5-6.azl3 |
Oracle Linux 3 releases · 1 package
| Release | Package | Fixed 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
| Release | Package | Fixed 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
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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
| Release | Package | Fixed 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
| Release | Package | Fixed 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
| Release | Package | Fixed in |
|---|---|---|
| 2023 | libxml2 +6 | 2.10.4-1.amzn2023.0.11 |
chainguard 1 release · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| openjdk-17-openj9 +4 | 0.59.0-r1 | |
| openjdk-11-openj9 | 0.59.0-r2 |
debian 4 releases · 1 package
| Release | Package | Fixed 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
| Release | Package | Fixed 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
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Tumbleweed | libxml2-2 +5 | 2.13.8-2.1 | openSUSE-SU-2025:15321-1 |
rocky 3 releases · 1 package
| Release | Package | Fixed 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
| Release | Package | Fixed 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
| Release | Package | Fixed 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
| Release | Package | Fixed in |
|---|---|---|
| libxml2 +1 | 2.9.14+dfsg-1.3~deb12u4+sp999 |
ubuntu 4 releases · 1 package
| Release | Package | Fixed 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
- access.redhat.com https://access.redhat.com/errata/RHSA-2025:10630
- access.redhat.com https://access.redhat.com/errata/RHSA-2025:10698
- access.redhat.com https://access.redhat.com/errata/RHSA-2025:10699
- access.redhat.com https://access.redhat.com/errata/RHSA-2025:11580
- access.redhat.com https://access.redhat.com/errata/RHSA-2025:11673
- access.redhat.com https://access.redhat.com/errata/RHSA-2025:12098
- access.redhat.com https://access.redhat.com/errata/RHSA-2025:12099
- access.redhat.com https://access.redhat.com/errata/RHSA-2025:12199
- access.redhat.com https://access.redhat.com/errata/RHSA-2025:12237
- access.redhat.com https://access.redhat.com/errata/RHSA-2025:12239
Show all 44 references
- access.redhat.com https://access.redhat.com/errata/RHSA-2025:12240
- access.redhat.com https://access.redhat.com/errata/RHSA-2025:12241
- access.redhat.com https://access.redhat.com/errata/RHSA-2025:13267
- access.redhat.com https://access.redhat.com/errata/RHSA-2025:13289
- access.redhat.com https://access.redhat.com/errata/RHSA-2025:13325
- access.redhat.com https://access.redhat.com/errata/RHSA-2025:13335
- access.redhat.com https://access.redhat.com/errata/RHSA-2025:13336
- access.redhat.com https://access.redhat.com/errata/RHSA-2025:14059
- access.redhat.com https://access.redhat.com/errata/RHSA-2025:14396
- access.redhat.com https://access.redhat.com/errata/RHSA-2025:15308
- access.redhat.com https://access.redhat.com/errata/RHSA-2025:15672
- access.redhat.com https://access.redhat.com/errata/RHSA-2025:19020
- access.redhat.com https://access.redhat.com/errata/RHSA-2026:7519
- access.redhat.com https://access.redhat.com/security/cve/CVE-2025-6021
- bugzilla.redhat.com https://bugzilla.redhat.com/2372373
- bugzilla.redhat.com https://bugzilla.redhat.com/2372385
- bugzilla.redhat.com https://bugzilla.redhat.com/2372406
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2372373
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2372385
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2372406
- cert-portal.siemens.com https://cert-portal.siemens.com/productcert/html/ssa-032379.html
- creativecommons.org https://creativecommons.org/licenses/by/4.0/
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2025-49794
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2025-49796
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2025-6021
- errata.almalinux.org https://errata.almalinux.org/9/ALSA-2025-10699.html
- errata.rockylinux.org https://errata.rockylinux.org/RLSA-2025:10698
- gitlab.gnome.org https://gitlab.gnome.org/GNOME/libxml2/-/issues/926
- linux.oracle.com https://linux.oracle.com/cve/CVE-2025-6021.html
- linux.oracle.com https://linux.oracle.com/errata/ELSA-2025-12240.html
- lists.debian.org https://lists.debian.org/debian-lts-announce/2025/07/msg00014.html
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2025-6021
- ubuntu.com https://ubuntu.com/security/notices/USN-7694-1
- www.cve.org https://www.cve.org/CVERecord?id=CVE-2025-6021
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.