CVE-2025-9714: Stack overflow in libxml2

Published Sep 2, 2025
·
Updated

A critical stack overflow vulnerability was discovered in the libxslt library when handling the dyn:map() function from the EXSLT extension. The vulnerability allows an attacker to cause a denial of service (DoS) via a specially crafted XSLT document containing the recursive dyn:map(., .) call.

The main reason of the vulnerability is that the exsltDynMapFunction function in libexslt/dynamic.c doesn’t contain a recursion depth check. When handling dyn:map(., .) where the second parameter contains a recursive call to the same function, infinite recursion occurs until the program stack is exhausted.

Other sources

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.

MITRE

Affected Software

6 affected components
Gnome libxml2<=2.9.14
Xmlsoft Libxml2<2.10.0
IBM Verify Identity Access<=11.0 - 11.0.2
IBM Security Verify Access<=10.0 - 10.0.9.1
IBM Verify Identity Access Container<=11.0 - 11.0.2
IBM Security Verify Access Container<=10.0 - 10.0.9.1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade libxml2 to a version that resolves this vulnerability.

    Fixed in 2.9.14

Event History

Sep 2, 2025
Data Sourced
via Red Hat·01:26 PM
DescriptionSeverityAffected Software
Sep 10, 2025
CVE Published
via MITRE·06:43 PM
Data Sourced
via MITRE·06:43 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·07:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Jul 8, 2026
Data Sourced
via IBM·12:00 AM
DescriptionAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2025-9714?

CVE-2025-9714 is classified as a high-severity vulnerability due to the risk of local attackers causing a stack overflow.

2

How do I fix CVE-2025-9714?

To mitigate CVE-2025-9714, upgrade libxml2 to version 2.9.15 or later, where the recursion issue is addressed.

3

Who is affected by CVE-2025-9714?

CVE-2025-9714 affects all users of libxml2 versions up to and including 2.9.14.

4

What type of vulnerability is CVE-2025-9714?

CVE-2025-9714 is an uncontrolled recursion vulnerability that can lead to a stack overflow.

5

What are the potential impacts of CVE-2025-9714?

The potential impacts of CVE-2025-9714 include application crashes or denial of service due to stack overflow.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203