CVE-2025-49794: Software Security Vulnerability Vulnerability

CRITICAL
Advisory Identifier: GHSA-qg4c-8pj4-qgw2
CVSS 9.1
CWE-825
Published
Advisory Summary

CVE-2025-49794 is a CRITICAL (CVSS 9.1) security vulnerability vulnerability (CWE-825: Expired Pointer Dereference) affecting Software libraries in the Maven ecosystem. The weakness occurs when the product dereferences a pointer that contains a location for memory that was previously valid, but is no longer valid.. Remediation is available in the latest vendor maintenance releases.

CVE-2025-49794 at a Glance

CVE Identifier CVE-2025-49794
GHSA Identifier GHSA-qg4c-8pj4-qgw2
Severity CRITICAL
CVSS v3.1 Base Score 9.1
CWE Classification CWE-825: Expired Pointer Dereference
Affected Product Software
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 9.1

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity High (I:H)
Availability High (A:H)

How to Fix CVE-2025-49794

To remediate this vulnerability, upgrade all affected Software dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

mvn dependency:tree

How to Check if You Are Affected

To determine whether your Java application is affected by CVE-2025-49794, inspect your build dependencies using the Maven Dependency Plugin:

mvn dependency:tree

Analyze the terminal output to locate any version of Software in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), your application is affected.

Note: The mvn dependency:tree command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-825: Expired Pointer Dereference, where the product dereferences a pointer that contains a location for memory that was previously valid, but is no longer valid. In Software, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

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 <sch:name path="..."/> 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.

References

NVD — CVE-2025-49794 NVD
https://nvd.nist.gov/vuln/detail/CVE-2025-49794
access.redhat.com/errata/rhsa-2025:10... WEB
https://access.redhat.com/errata/RHSA-2025:10630
access.redhat.com/errata/rhsa-2025:18... WEB
https://access.redhat.com/errata/RHSA-2025:18240
access.redhat.com/errata/rhsa-2025:19... WEB
https://access.redhat.com/errata/RHSA-2025:19020
access.redhat.com/errata/rhsa-2025:19... WEB
https://access.redhat.com/errata/RHSA-2025:19041
access.redhat.com/errata/rhsa-2025:19... WEB
https://access.redhat.com/errata/RHSA-2025:19046
access.redhat.com/errata/rhsa-2025:19... WEB
https://access.redhat.com/errata/RHSA-2025:19894
access.redhat.com/errata/rhsa-2025:21... WEB
https://access.redhat.com/errata/RHSA-2025:21913
access.redhat.com/errata/rhsa-2026:09... WEB
https://access.redhat.com/errata/RHSA-2026:0934
access.redhat.com/errata/rhsa-2026:62... WEB
https://access.redhat.com/errata/RHSA-2026:62549
access.redhat.com/errata/rhsa-2026:67... WEB
https://access.redhat.com/errata/RHSA-2026:67857
access.redhat.com/errata/rhsa-2026:75... WEB
https://access.redhat.com/errata/RHSA-2026:7519
Software Security Information SECURITY
https://access.redhat.com/security/cve/CVE-2025-49794
bugzilla.redhat.com/show_bug.cgi WEB
https://bugzilla.redhat.com/show_bug.cgi?id=2372373
cert-portal.siemens.com/productcert/html/ss... WEB
https://cert-portal.siemens.com/productcert/html/ssa-253495.html
cert-portal.siemens.com/productcert/html/ss... WEB
https://cert-portal.siemens.com/productcert/html/ssa-577017.html
gitlab.gnome.org/gnome/libxml2/-/iss... WEB
https://gitlab.gnome.org/GNOME/libxml2/-/issues/931
lists.debian.org/debian-lts-announce... WEB
https://lists.debian.org/debian-lts-announce/2025/07/msg00014.html
access.redhat.com/errata/rhsa-2025:10... WEB
https://access.redhat.com/errata/RHSA-2025:10698
access.redhat.com/errata/rhsa-2025:10... WEB
https://access.redhat.com/errata/RHSA-2025:10699
access.redhat.com/errata/rhsa-2025:11... WEB
https://access.redhat.com/errata/RHSA-2025:11580
access.redhat.com/errata/rhsa-2025:12... WEB
https://access.redhat.com/errata/RHSA-2025:12098
access.redhat.com/errata/rhsa-2025:12... WEB
https://access.redhat.com/errata/RHSA-2025:12099
access.redhat.com/errata/rhsa-2025:12... WEB
https://access.redhat.com/errata/RHSA-2025:12199
access.redhat.com/errata/rhsa-2025:12... WEB
https://access.redhat.com/errata/RHSA-2025:12237
access.redhat.com/errata/rhsa-2025:12... WEB
https://access.redhat.com/errata/RHSA-2025:12239
access.redhat.com/errata/rhsa-2025:12... WEB
https://access.redhat.com/errata/RHSA-2025:12240
access.redhat.com/errata/rhsa-2025:12... WEB
https://access.redhat.com/errata/RHSA-2025:12241
access.redhat.com/errata/rhsa-2025:13... WEB
https://access.redhat.com/errata/RHSA-2025:13335
access.redhat.com/errata/rhsa-2025:15... WEB
https://access.redhat.com/errata/RHSA-2025:15397
access.redhat.com/errata/rhsa-2025:15... WEB
https://access.redhat.com/errata/RHSA-2025:15827
access.redhat.com/errata/rhsa-2025:15... WEB
https://access.redhat.com/errata/RHSA-2025:15828
access.redhat.com/errata/rhsa-2025:18... WEB
https://access.redhat.com/errata/RHSA-2025:18217
access.redhat.com/errata/rhsa-2025:18... WEB
https://access.redhat.com/errata/RHSA-2025:18218
access.redhat.com/errata/rhsa-2025:18... WEB
https://access.redhat.com/errata/RHSA-2025:18219

Frequently Asked Questions

What is CVE-2025-49794?
CVE-2025-49794 is a security vulnerability in Software classified as a security vulnerability vulnerability under CWE-825: Expired Pointer Dereference.
Which Software versions are affected?
Affected versions include releases prior to current release patches.
What version fixes CVE-2025-49794?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
What is the CVSS score of CVE-2025-49794?
CVE-2025-49794 has a CVSS v3.1 base score of 9.1 (CRITICAL) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H.
What CWE is associated with CVE-2025-49794?
CVE-2025-49794 is classified under CWE-825: Expired Pointer Dereference (The product dereferences a pointer that contains a location for memory that was previously valid, but is no longer valid.).
How can I check Maven dependencies for CVE-2025-49794?
Run the dependency tree command: 'mvn dependency:tree'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-qg4c-8pj4-qgw2",
  "modified" : "2026-09-28T03:30:23Z",
  "published" : "2025-06-16T18:32:19Z",
  "aliases" : [ "CVE-2025-49794" ],
  "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 <sch:name path=\"...\"/> 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.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H"
  } ],
  "affected" : [ ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-49794"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2025:10630"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2025:18240"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2025:19020"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2025:19041"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2025:19046"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2025:19894"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2025:21913"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2026:0934"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2026:62549"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2026:67857"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2026:7519"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/security/cve/CVE-2025-49794"
  }, {
    "type" : "WEB",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=2372373"
  }, {
    "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://gitlab.gnome.org/GNOME/libxml2/-/issues/931"
  }, {
    "type" : "WEB",
    "url" : "https://lists.debian.org/debian-lts-announce/2025/07/msg00014.html"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2025:10698"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2025:10699"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2025:11580"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2025:12098"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2025:12099"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2025:12199"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2025:12237"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2025:12239"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2025:12240"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2025:12241"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2025:13335"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2025:15397"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2025:15827"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2025:15828"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2025:18217"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2025:18218"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2025:18219"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-825" ],
    "severity" : "CRITICAL",
    "github_reviewed" : false,
    "github_reviewed_at" : null,
    "nvd_published_at" : "2025-06-16T16:15:18Z"
  }
}