CVE-2025-49794CWE-825

CVE-2025-49794

Critical · published June 16, 2025

CVSS v3.1
9.1
EPSS
1%
Percentile
57.2
In the wild
Unconfirmed
What it is

🚨 A crafty XML document could crash your application! This use-after-free vulnerability in libxml2 can turn a harmless parsing task into a devastating crash if you're dealing with certain XPath elements. 🔥 Think of libxml2 as a restaurant chef who misplaces a vital ingredient while preparing a dish. When the chef tries to serve the meal without it, chaos ensues—customers are left hungry and confused, just like your application when it encounters this flaw. An attacker could craft a malicious XML document that makes libxml2 crash, leading to a complete application failure. This could potentially result in lost data or other undefined behaviors that may compromise system integrity—absolutely devastating!

Put simply

Think of libxml2 as a restaurant chef who misplaces a vital ingredient while preparing a dish. When the chef tries to serve the meal without it, chaos ensues—customers are left hungry and confused, just like your application when it encounters this flaw. The use-after-free vulnerability arises during the parsing of XPath elements when the XML schematron has specific <sch:name path="..."/> schema elements. This flaw allows attackers to manipulate memory allocations, leading to instability in the application.

What to do

An attacker could craft a malicious XML document that makes libxml2 crash, leading to a complete application failure. This could potentially result in lost data or other undefined behaviors that may compromise system integrity—absolutely devastating! Patch libxml2 immediately to the latest version to close this critical gap. Review your applications' use of XML parsing and consider implementing additional input validation to further safeguard your systems. You've got this! With a swift patch, you'll have your application back on track and secure in no time. 🛡️

The record
Technical detail
CVSS v3.1
9.1 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00833 · 57.2th percentile
Weakness
CWE-825 · Expired Pointer Dereference
Published
2025-06-16T20:15Z
References (34)
https://access.redhat.com/errata/RHSA-2025:10630 · [email protected]https://access.redhat.com/errata/RHSA-2025:10698 · [email protected]https://access.redhat.com/errata/RHSA-2025:10699 · [email protected]https://access.redhat.com/errata/RHSA-2025:11580 · [email protected]https://access.redhat.com/errata/RHSA-2025:12098 · [email protected]https://access.redhat.com/errata/RHSA-2025:12099 · [email protected]https://access.redhat.com/errata/RHSA-2025:12199 · [email protected]https://access.redhat.com/errata/RHSA-2025:12237 · [email protected]https://access.redhat.com/errata/RHSA-2025:12239 · [email protected]https://access.redhat.com/errata/RHSA-2025:12240 · [email protected]https://access.redhat.com/errata/RHSA-2025:12241 · [email protected]https://access.redhat.com/errata/RHSA-2025:13335 · [email protected]https://access.redhat.com/errata/RHSA-2025:15397 · [email protected]https://access.redhat.com/errata/RHSA-2025:15827 · [email protected]https://access.redhat.com/errata/RHSA-2025:15828 · [email protected]https://access.redhat.com/errata/RHSA-2025:18217 · [email protected]https://access.redhat.com/errata/RHSA-2025:18218 · [email protected]https://access.redhat.com/errata/RHSA-2025:18219 · [email protected]https://access.redhat.com/errata/RHSA-2025:18240 · [email protected]https://access.redhat.com/errata/RHSA-2025:19020 · [email protected]https://access.redhat.com/errata/RHSA-2025:19041 · [email protected]https://access.redhat.com/errata/RHSA-2025:19046 · [email protected]https://access.redhat.com/errata/RHSA-2025:19894 · [email protected]https://access.redhat.com/errata/RHSA-2025:21913 · [email protected]https://access.redhat.com/errata/RHSA-2026:0934 · [email protected]https://access.redhat.com/errata/RHSA-2026:62549 · [email protected]https://access.redhat.com/errata/RHSA-2026:67857 · [email protected]https://access.redhat.com/errata/RHSA-2026:7519 · [email protected]https://access.redhat.com/security/cve/CVE-2025-49794 · [email protected]https://bugzilla.redhat.com/show_bug.cgi?id=2372373 · [email protected]https://gitlab.gnome.org/GNOME/libxml2/-/issues/931 · [email protected]https://lists.debian.org/debian-lts-announce/2025/07/msg00014.html · af854a3a-2127-422b-91ae-364da2661108https://cert-portal.siemens.com/productcert/html/ssa-253495.html · 0b142b55-0307-4c5a-b3c9-f314f3fb7c5ehttps://cert-portal.siemens.com/productcert/html/ssa-577017.html · 0b142b55-0307-4c5a-b3c9-f314f3fb7c5e
EPSS history
Timeline
  • 16 JUN 15:24Z
    Libxml: heap use after free (uaf) leads to denial of service (dos)
    cvelistv5