Skip to main content
CVE-2025-9714VulnerabilityPublished Updated

XPath evaluation · Uncontrolled Recursion

Affects libxml2Source GCVE Database

0
Compare

Not known to be exploited · CVSS 6.2 Medium · fixed in 2.9.1+dfsg1-3ubuntu4.13+esm9 : update libxml2 when convenient.

Data as of 24 Nov 2026, 21:15 UTC

CVSS 3.1 base score
6.2Medium
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.1% chance of exploitation in 30 days – higher than 5% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 2.9.1+dfsg1-3ubuntu4.13+esm9, 2.9.3+dfsg1-1ubuntu0.7+esm10, 2.9.4+dfsg1-6.1ubuntu1.9+esm5 +3
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 4 Sep 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 24 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.5
Fixed in
  • 2.9.14+dfsg-1.3ubuntu3.5
Ubuntu 22.04 LTSlibxml2pkg:deb/ubuntu/libxml2?arch=source&distro=jammyOther threatsAffected
  • <2.9.13+dfsg-1ubuntu0.9
Fixed in
  • 2.9.13+dfsg-1ubuntu0.9
Ubuntu Pro 20.04 LTSlibxml2pkg:deb/ubuntu/libxml2?arch=source&distro=esm-infra/focalOther threatsAffected
  • <2.9.10+dfsg-5ubuntu0.20.04.10+esm2
Fixed in
  • 2.9.10+dfsg-5ubuntu0.20.04.10+esm2
Ubuntu Pro 18.04 LTSlibxml2pkg:deb/ubuntu/libxml2?arch=source&distro=esm-infra/bionicOther threatsAffected
  • <2.9.4+dfsg1-6.1ubuntu1.9+esm5
Fixed in
  • 2.9.4+dfsg1-6.1ubuntu1.9+esm5
Ubuntu Pro 16.04 LTSlibxml2pkg:deb/ubuntu/libxml2?arch=source&distro=esm-infra/xenialOther threatsAffected
  • <2.9.3+dfsg1-1ubuntu0.7+esm10
Fixed in
  • 2.9.3+dfsg1-1ubuntu0.7+esm10
Ubuntu Pro 14.04 LTSlibxml2pkg:deb/ubuntu/libxml2?arch=source&distro=esm-infra-legacy/trustyOther threatsAffected
  • <2.9.1+dfsg1-3ubuntu4.13+esm9
Fixed in
  • 2.9.1+dfsg1-3ubuntu4.13+esm9

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

Description

Uncontrolled recursion in XPath evaluation in libxml2 up to and including version 2.9.14 allows a local attacker to cause a stack overflow via crafted expressions. XPath processing functions `xmlXPathRunEval`, `xmlXPathCtxtCompile`, and `xmlXPathEvalExpr` were resetting recursion depth to zero before making potentially recursive calls. When such functions were called recursively this could allow for uncontrolled recursion and lead to a stack overflow. These functions now preserve recursion depth across recursive calls, allowing recursion depth to be controlled.

References

Community reviews

Loading reviews…