Skip to main content
VulnerabilityPublished Updated

CVE-2025-6021: libxml2 vulnerabilities

Affects libxml2Source GCVE Database

0
Compare

Mentioned vulnerabilities

Authoritative record:CVE-2025-6021· High 7.5

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, 17:24 UTC

CVSS 3.1 base score
7.5High
How severe the flaw is on the 0–10 CVSS scale.

Thin evidence

One scorer or none
CVSS scores by source
CNA (redhat)CVSS 3.17.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:H

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 12 Jun 2025

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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.

Affected software

ProductAffectedFixed in
Ubuntu 24.04 LTSlibxml2pkg:deb/ubuntu/libxml2?arch=source&distro=nobleOther threatsAffected
  • <2.9.14+dfsg-1.3ubuntu3.4
Fixed in
  • 2.9.14+dfsg-1.3ubuntu3.4
Ubuntu 22.04 LTSlibxml2pkg:deb/ubuntu/libxml2?arch=source&distro=jammyOther threatsAffected
  • <2.9.13+dfsg-1ubuntu0.8
Fixed in
  • 2.9.13+dfsg-1ubuntu0.8
Ubuntu Pro 20.04 LTSlibxml2pkg:deb/ubuntu/libxml2?arch=source&distro=esm-infra/focalOther threatsAffected
  • <2.9.10+dfsg-5ubuntu0.20.04.10+esm1
Fixed in
  • 2.9.10+dfsg-5ubuntu0.20.04.10+esm1
Ubuntu Pro 18.04 LTSlibxml2pkg:deb/ubuntu/libxml2?arch=source&distro=esm-infra/bionicOther threatsAffected
  • <2.9.4+dfsg1-6.1ubuntu1.9+esm4
Fixed in
  • 2.9.4+dfsg1-6.1ubuntu1.9+esm4
Ubuntu Pro 16.04 LTSlibxml2pkg:deb/ubuntu/libxml2?arch=source&distro=esm-infra/xenialOther threatsAffected
  • <2.9.3+dfsg1-1ubuntu0.7+esm9
Fixed in
  • 2.9.3+dfsg1-1ubuntu0.7+esm9
Ubuntu Pro 14.04 LTSlibxml2pkg:deb/ubuntu/libxml2?arch=source&distro=esm-infra-legacy/trustyOther threatsAffected
  • <2.9.1+dfsg1-3ubuntu4.13+esm8
Fixed in
  • 2.9.1+dfsg1-3ubuntu4.13+esm8

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

Description

Ahmed Lekssays discovered that libxml2 did not properly perform certain mathematical operations, leading to an integer overflow. An attacker could possibly use this issue to cause a crash, resulting in a denial of service, or possibly execute arbitrary code. (CVE-2025-6021) Ahmed Lekssays discovered that libxml2 did not properly validate the size of an untrusted input stream. An attacker could possibly use this issue to cause a crash, resulting in a denial of service, or possibly execute arbitrary code. (CVE-2025-6170) Nikita Sveshnikov discovered that libxml2 did not properly handle certain XPath expressions, leading to a use-after-free vulnerability. An attacker could potentially exploit this issue to cause a denial of service. (CVE-2025-49794) Nikita Sveshnikov discovered that libxml2 contained a type confusion vulnerability when parsing specially crafted XML documents. An attacker could potentially exploit this issue to cause a denial of service. (CVE-2025-49796)

References

Community reviews

Loading reviews…