Important 29.10.2026

libxml2: use-after-free when parsing XPath in Schematron (CVE-2025-49794)

A use-after-free vulnerability (CVSS 9.1) was found in libxml2. It occurs when parsing XPath elements while the XML Schematron contains schema elements. A crafted XML document can crash the program or cause other undefined behavior.

Checked in Shield: yes

Who is affected

Applications that use libxml2 and parse untrusted XML with Schematron. The source does not state which versions are vulnerable.

How to check

Check whether libxml2 is installed and which version (e.g. dpkg -l libxml2 on Debian-like systems), including inside container images. Find out whether your applications parse untrusted XML with Schematron.

How to fix

Patch status is not stated in the source. Watch for libxml2 package updates from your distribution, then update the package and rebuild images once a fix is released.

What Shield checks free

The libxml2 version is not visible from outside, so there is no direct check. If the server shows its PHP version in the X-Powered-By or Server headers, Shield flags it in the report: on your server you can then see which libxml2 that PHP build uses (php -i | grep -i libxml). Free.

Check my site for free

Good to know

Not disclosed yet: affected and fixed versions, exploitation status. Source: NVD, CVE-2025-49794.

Sources

PHP and Server Software Vulnerabilities →

Share:
Free · no sign-up

How many clicks is your site missing?

The SEO Radar shows in a minute which pages sit near the top of Google and what keeps them from moving up.

An estimate from positions, not a promise
New articles by email
Content