CVE-2025-6021: libxml2's xmlBuildQName function
Affects libxml2Source GCVE Database
Not known to be exploited · CVSS 7.5 High · fixed in 2.9.1+dfsg1-3ubuntu4.13+esm8 : patch libxml2 soon.
Data as of 24 Nov 2026, 19:43 UTC
Thin evidence
One scorer or none| CNA (redhat) | CVSS 3.1 | 7.5 |
|---|
- Patch
- Available – fixed in 2.9.1+dfsg1-3ubuntu4.13+esm8, 2.9.3+dfsg1-1ubuntu0.7+esm9, 2.9.4+dfsg1-6.1ubuntu1.9+esm4 +3
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HExploitation evidence
Disclosed: evidence found.
CVE published 12 Jun 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 23 Nov 2026.
What to do
Upgrade to a fixed release listed under Affected software.
Patches and advisories
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu 24.04 LTSlibxml2pkg:deb/ubuntu/libxml2?arch=source&distro=nobleOther threats | Affected
| Fixed in
|
Ubuntu 22.04 LTSlibxml2pkg:deb/ubuntu/libxml2?arch=source&distro=jammyOther threats | Affected
| Fixed in
|
Ubuntu Pro 20.04 LTSlibxml2pkg:deb/ubuntu/libxml2?arch=source&distro=esm-infra/focalOther threats | Affected
| Fixed in
|
Ubuntu Pro 18.04 LTSlibxml2pkg:deb/ubuntu/libxml2?arch=source&distro=esm-infra/bionicOther threats | Affected
| Fixed in
|
Ubuntu Pro 16.04 LTSlibxml2pkg:deb/ubuntu/libxml2?arch=source&distro=esm-infra/xenialOther threats | Affected
| Fixed in
|
Ubuntu Pro 14.04 LTSlibxml2pkg:deb/ubuntu/libxml2?arch=source&distro=esm-infra-legacy/trustyOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
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.
References
- ubuntu.com/security/CVE-2025-6021 (opens in a new tab)
- cve.org/CVERecord?id=CVE-2025-6021 (opens in a new tab)
- gitlab.gnome.org/GNOME/libxml2/-/issues/926 (opens in a new tab)
- access.redhat.com/security/cve/CVE-2025-6021 (opens in a new tab)
- bugzilla.redhat.com/show_bug.cgi?id=2372406 (opens in a new tab)
- ubuntu.com/security/notices/USN-7694-1 (opens in a new tab)