{"id":"CVE-2025-49794","summary":"Libxml: heap use after free (uaf) leads to denial of service (dos)","details":"A use-after-free vulnerability was found in libxml2. This issue occurs when parsing XPath elements under certain circumstances when the XML schematron has the \u003csch:name path=\"...\"/\u003e schema elements. This flaw allows a malicious actor to craft a malicious XML document used as input for libxml, resulting in the program's crash using libxml or other possible undefined behaviors.","modified":"2026-11-06T07:04:53.593128344Z","published":"2025-06-16T15:24:31.020Z","related":["ALSA-2025:10630","ALSA-2025:10698","ALSA-2025:10699","SUSE-SU-2025:02260-1","SUSE-SU-2025:02275-1","SUSE-SU-2025:02294-1","SUSE-SU-2025:02314-1","SUSE-SU-2025:02355-1","SUSE-SU-2025:20564-1","SUSE-SU-2025:20607-1","openSUSE-SU-2025:15321-1"],"database_specific":{"cwe_ids":["CWE-825"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/49xxx/CVE-2025-49794.json","unresolved_ranges":[{"extracted_events":[{"range":[{"fixed":"0:2.12.5-7.el10_0"},{"fixed":"0:2.9.1-6.el7_9.10"},{"fixed":"0:2.9.7-21.el8_10.1"},{"fixed":"0:2.9.7-21.el8_10.1"},{"fixed":"0:2.9.7-9.el8_2.3"},{"fixed":"0:2.9.7-9.el8_4.6"},{"fixed":"0:2.9.7-9.el8_4.6"},{"fixed":"0:2.9.7-13.el8_6.10"},{"fixed":"0:2.9.7-13.el8_6.10"},{"fixed":"0:2.9.7-13.el8_6.10"},{"fixed":"0:2.9.7-16.el8_8.9"},{"fixed":"0:2.9.7-16.el8_8.9"},{"fixed":"0:2.9.13-10.el9_6"},{"fixed":"0:2.9.13-10.el9_6"},{"fixed":"0:2.9.13-1.el9_0.5"},{"fixed":"0:2.9.13-3.el9_2.7"},{"fixed":"0:2.9.13-10.el9_4"},{"fixed":"412.86.202510291903-0"},{"fixed":"413.92.202510150118-0"},{"fixed":"414.92.202510211419-0"},{"fixed":"415.92.202609140326-0"},{"fixed":"416.94.202609011112-0"},{"fixed":"417.94.202510112152-0"},{"fixed":"418.94.202510230424-0"},{"fixed":"4.19.9.6.202510140714-0"},{"fixed":"4.20.9.6.202509251656-0"},{"fixed":"1.11-19"},{"fixed":"1.11-8"},{"fixed":"1.12-4"},{"fixed":"1.36.0-11"},{"fixed":"1.36.0-11"},{"fixed":"1.36.0-11"},{"fixed":"1.36.0-10"},{"fixed":"1.36.0-10"},{"fixed":"1.36.0-4"},{"fixed":"1.36.0-9"},{"fixed":"1.36.0-12"},{"fixed":"1.36.0-18"},{"fixed":"1.36.0-11"},{"fixed":"1.36.0-7"},{"fixed":"v1.16.5-1760515757"},{"fixed":"2.15.2-0.3.hum1"},{"fixed":"1.5.5-1754504343"}],"source":"AFFECTED_FIELD","strategy":"InverseAffectedRanges"}]}],"cna_assigner":"redhat"},"references":[{"type":"WEB","url":"https://access.redhat.com/downloads/content/package-browser/"},{"type":"WEB","url":"https://catalog.redhat.com/software/containers/"},{"type":"WEB","url":"https://cert-portal.siemens.com/productcert/html/ssa-253495.html"},{"type":"WEB","url":"https://cert-portal.siemens.com/productcert/html/ssa-577017.html"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2025/07/msg00014.html"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2025:10630"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2025:10698"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2025:10699"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2025:11580"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2025:12098"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2025:12099"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2025:12199"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2025:12237"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2025:12239"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2025:12240"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2025:12241"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2025:13335"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2025:15397"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2025:15827"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2025:15828"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2025:18217"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2025:18218"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2025:18219"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2025:18240"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2025:19020"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2025:19041"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2025:19046"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2025:19894"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2025:21913"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2026:0934"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2026:62549"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2026:67857"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2026:7519"},{"type":"ADVISORY","url":"https://access.redhat.com/security/cve/CVE-2025-49794"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/49xxx/CVE-2025-49794.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-49794"},{"type":"REPORT","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2372373"},{"type":"REPORT","url":"https://gitlab.gnome.org/GNOME/libxml2/-/issues/931"},{"type":"PACKAGE","url":"https://gitlab.gnome.org/GNOME/libxml2/"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://gitlab.gnome.org/gnome/libxml2","events":[{"introduced":"0"},{"fixed":"0bea77c8289324483c0504d36ac730bb03f6a70b"},{"fixed":"97fea18b7138caf76bf17d003f4985d8797d26f9"}],"database_specific":{"extracted_events":[{"range":[{"introduced":"0"},{"fixed":"2.15.0"}],"source":"AFFECTED_FIELD","strategy":"StandardRange"},{"source":"AFFECTED_FIELD","strategy":"InverseAffectedRanges","range":[{"introduced":"0"},{"fixed":"v1.3"}]}]}}],"versions":["LIB_XML_1_1","FOR_GNOME_0_99_1","LIBXML_0_99","GNUMERIC_FIRST_PUBLIC_RELEASE","GNOME_0_30"],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-49794.json","vanir_signatures":[{"source":"https://gitlab.gnome.org/gnome/libxml2@97fea18b7138caf76bf17d003f4985d8797d26f9","target":{"function":"xmlSAXParseDoc","file":"parser.c"},"deprecated":false,"digest":{"length":450,"function_hash":"257367616524644363065775477338570909958"},"id":"CVE-2025-49794-269be83b","signature_type":"Function","signature_version":"v1"},{"signature_type":"Function","signature_version":"v1","source":"https://gitlab.gnome.org/gnome/libxml2@97fea18b7138caf76bf17d003f4985d8797d26f9","target":{"function":"xmlInitParserCtxt","file":"parser.c"},"deprecated":false,"digest":{"function_hash":"128204593758245842800144810537873211851","length":634},"id":"CVE-2025-49794-2f2f7262"},{"signature_version":"v1","source":"https://gitlab.gnome.org/gnome/libxml2@97fea18b7138caf76bf17d003f4985d8797d26f9","target":{"file":"parser.c"},"deprecated":false,"digest":{"threshold":0.9,"line_hashes":["201842734386694817774867162999628396339","294703210077859002985091933762133344654","210206041985135136950194436965688247356","273017952127347794324505716363446942479","187544579095596215171992492528163891959","208061949709105959564784786381474356863","272153902835007740041565734838148937364","254787417024363648891162367490320479852","99503184872681000242331937762802689386","294703210077859002985091933762133344654","210206041985135136950194436965688247356","273017952127347794324505716363446942479","201842734386694817774867162999628396339","294703210077859002985091933762133344654","210206041985135136950194436965688247356","273017952127347794324505716363446942479","201842734386694817774867162999628396339","294703210077859002985091933762133344654","210206041985135136950194436965688247356","273017952127347794324505716363446942479","215266764948728349345054423260840884936","113882731778806143570271993420664461910","202088886572729497275151883012592953971","324793392085535010887681869765726046041","42658774117124304450211575470083134644","50262157903535875620392073508870548556","120040666033482319687722945652601240303","260799055709239268700954339116924631965","323901172699614103124743595180263249878","85975408953531156242993437533387545950","178656476791359191101755885732862180810","73970344064062858403178182810141793371"]},"id":"CVE-2025-49794-8e402e54","signature_type":"Line"},{"signature_version":"v1","source":"https://gitlab.gnome.org/gnome/libxml2@97fea18b7138caf76bf17d003f4985d8797d26f9","target":{"function":"xmlFreeParserCtxt","file":"parser.c"},"deprecated":false,"digest":{"function_hash":"188868355829031609633788262857212121916","length":373},"id":"CVE-2025-49794-af0d6027","signature_type":"Function"},{"digest":{"length":1189,"function_hash":"63821185044893372496077545820715775803"},"id":"CVE-2025-49794-bf1ac1fe","signature_type":"Function","signature_version":"v1","source":"https://gitlab.gnome.org/gnome/libxml2@97fea18b7138caf76bf17d003f4985d8797d26f9","target":{"file":"parser.c","function":"xmlSAXParseDTD"},"deprecated":false},{"target":{"function":"xmlSAXParseMemory","file":"parser.c"},"deprecated":false,"digest":{"function_hash":"68140434741011183212570756410483439558","length":433},"id":"CVE-2025-49794-dbee0434","signature_type":"Function","signature_version":"v1","source":"https://gitlab.gnome.org/gnome/libxml2@97fea18b7138caf76bf17d003f4985d8797d26f9"},{"target":{"file":"parser.c","function":"xmlSAXParseFile"},"deprecated":false,"digest":{"function_hash":"131197706378201909763948975028710299148","length":417},"id":"CVE-2025-49794-e6f39574","signature_type":"Function","signature_version":"v1","source":"https://gitlab.gnome.org/gnome/libxml2@97fea18b7138caf76bf17d003f4985d8797d26f9"}],"vanir_signatures_modified":"2026-11-06T07:04:53Z"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H"}]}