CVE-2025-4949: Org.eclipse.jgit Eclipse JGit XML External Entity Vulnerability

MODERATE
Advisory Identifier: GHSA-vrpq-qp53-qv56
CWE-611
Published
Advisory Summary

CVE-2025-4949 is a MODERATE eclipse jgit xml external entity vulnerability (CWE-611: Improper Restriction of XML External Entity Reference) affecting Org.eclipse.jgit libraries in the Maven ecosystem. The issue involves eclipse jgit xml external entity (xxe) vulnerability. Remediation is available by upgrading affected packages to version 7.2.1.202505142326-r, 7.1.1.202505221757-r, 7.0.1.202505221510-r, 6.10.1.202505221210-r, 6.0.0.202111291000-r, 5.13.4.202507202350-r.

CVE-2025-4949 at a Glance

CVE Identifier CVE-2025-4949
GHSA Identifier GHSA-vrpq-qp53-qv56
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-611: Improper Restriction of XML External Entity Reference
Affected Product Org.eclipse.jgit
Package Ecosystem Maven
Published Date
Last Updated

How to Fix CVE-2025-4949

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

org.eclipse.jgit:org.eclipse.jgit fixed: 7.2.1.202505142326-r
<dependency>
    <groupId>org.eclipse.jgit</groupId>
    <artifactId>org.eclipse.jgit</artifactId>
    <version>7.2.1.202505142326-r</version>
</dependency>
org.eclipse.jgit:org.eclipse.jgit fixed: 7.1.1.202505221757-r
<dependency>
    <groupId>org.eclipse.jgit</groupId>
    <artifactId>org.eclipse.jgit</artifactId>
    <version>7.1.1.202505221757-r</version>
</dependency>
org.eclipse.jgit:org.eclipse.jgit fixed: 7.0.1.202505221510-r
<dependency>
    <groupId>org.eclipse.jgit</groupId>
    <artifactId>org.eclipse.jgit</artifactId>
    <version>7.0.1.202505221510-r</version>
</dependency>
org.eclipse.jgit:org.eclipse.jgit fixed: 6.10.1.202505221210-r
<dependency>
    <groupId>org.eclipse.jgit</groupId>
    <artifactId>org.eclipse.jgit</artifactId>
    <version>6.10.1.202505221210-r</version>
</dependency>
org.eclipse.jgit:org.eclipse.jgit fixed: 6.0.0.202111291000-r
<dependency>
    <groupId>org.eclipse.jgit</groupId>
    <artifactId>org.eclipse.jgit</artifactId>
    <version>6.0.0.202111291000-r</version>
</dependency>
org.eclipse.jgit:org.eclipse.jgit fixed: 5.13.4.202507202350-r
<dependency>
    <groupId>org.eclipse.jgit</groupId>
    <artifactId>org.eclipse.jgit</artifactId>
    <version>5.13.4.202507202350-r</version>
</dependency>
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 -Dincludes=org.eclipse.jgit

How to Check if You Are Affected

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

mvn dependency:tree -Dincludes=org.eclipse.jgit

Analyze the terminal output to locate any version of Org.eclipse.jgit in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 7.2.1.202505142326-r), your application is affected.

Note: The mvn dependency:tree -Dincludes=org.eclipse.jgit 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-611: Improper Restriction of XML External Entity Reference, where the product processes an xml document that can contain xml entities with uris that resolve to documents outside of the intended sphere of control, causing the product to embed incorrect documents into its output. In Org.eclipse.jgit, 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

In Eclipse JGit versions 7.2.0.202503040940-r and older, the ManifestParser class used by the repo command and the AmazonS3 class used to implement the experimental amazons3 git transport protocol allowing to store git pack files in an Amazon S3 bucket, are vulnerable to XML External Entity (XXE) attacks when parsing XML files. This vulnerability can lead to information disclosure, denial of service, and other security issues.

CVE-2025-4949 Affected Org.eclipse.jgit Versions

6 component(s)
Fixed Versions:
7.2.1.202505142326-r7.1.1.202505221757-r7.0.1.202505221510-r6.10.1.202505221210-r6.0.0.202111291000-r5.13.4.202507202350-r
Product / Package Ecosystem Affected Versions Fixed Version
org.eclipse.jgit:org.eclipse.jgit
Maven
≥ 7.2.0.202503040940-r
< 7.2.1.202505142326-r
7.2.1.202505142326-r
org.eclipse.jgit:org.eclipse.jgit
Maven
≥ 7.1.0.202411261347-r
< 7.1.1.202505221757-r
7.1.1.202505221757-r
org.eclipse.jgit:org.eclipse.jgit
Maven
≥ 7.0.0.202409031743-r
< 7.0.1.202505221510-r
7.0.1.202505221510-r
org.eclipse.jgit:org.eclipse.jgit
Maven
≥ 6.1.0.202203080745-r
< 6.10.1.202505221210-r
6.10.1.202505221210-r
org.eclipse.jgit:org.eclipse.jgit
Maven
≥ 6.0.0.202110060947-m1
< 6.0.0.202111291000-r
6.0.0.202111291000-r
org.eclipse.jgit:org.eclipse.jgit
Maven
< 5.13.4.202507202350-r
5.13.4.202507202350-r

References

Frequently Asked Questions

What is CVE-2025-4949?
CVE-2025-4949 is a security vulnerability in Org.eclipse.jgit involving Eclipse JGit XML External Entity (XXE) Vulnerability under CWE-611: Improper Restriction of XML External Entity Reference.
Which Org.eclipse.jgit versions are affected?
Affected versions include releases prior to 7.2.1.202505142326-r, 7.1.1.202505221757-r, 7.0.1.202505221510-r, 6.10.1.202505221210-r, 6.0.0.202111291000-r, 5.13.4.202507202350-r across affected packages: org.eclipse.jgit:org.eclipse.jgit.
What version fixes CVE-2025-4949?
Upgrading to 7.2.1.202505142326-r, 7.1.1.202505221757-r, 7.0.1.202505221510-r, 6.10.1.202505221210-r, 6.0.0.202111291000-r, 5.13.4.202507202350-r (or the latest patched release for your respective branch) resolves the vulnerability.
Is org.eclipse.jgit affected?
Yes, org.eclipse.jgit:org.eclipse.jgit is affected in releases prior to 7.2.1.202505142326-r, 7.1.1.202505221757-r, 7.0.1.202505221510-r, 6.10.1.202505221210-r, 6.0.0.202111291000-r, 5.13.4.202507202350-r. Upgrade your dependency to 7.2.1.202505142326-r, 7.1.1.202505221757-r, 7.0.1.202505221510-r, 6.10.1.202505221210-r, 6.0.0.202111291000-r, 5.13.4.202507202350-r or later.
What CWE is associated with CVE-2025-4949?
CVE-2025-4949 is classified under CWE-611: Improper Restriction of XML External Entity Reference (The product processes an XML document that can contain XML entities with URIs that resolve to documents outside of the intended sphere of control, causing the product to embed incorrect documents into its output.).
How can I check Maven dependencies for CVE-2025-4949?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.eclipse.jgit'. 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-vrpq-qp53-qv56",
  "modified" : "2026-01-13T22:47:14Z",
  "published" : "2025-05-21T21:31:37Z",
  "aliases" : [ "CVE-2025-4949" ],
  "summary" : "Eclipse JGit XML External Entity (XXE) Vulnerability",
  "details" : "In Eclipse JGit versions 7.2.0.202503040940-r and older, the ManifestParser class used by the repo command and the AmazonS3 class used to implement the experimental amazons3 git transport protocol allowing to store git pack files in an Amazon S3 bucket, are vulnerable to XML External Entity (XXE) attacks when parsing XML files. This vulnerability can lead to information disclosure, denial of service, and other security issues.",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:H/AT:N/PR:L/UI:A/VC:H/VI:N/VA:N/SC:H/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.eclipse.jgit:org.eclipse.jgit"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "7.2.0.202503040940-r"
      }, {
        "fixed" : "7.2.1.202505142326-r"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.eclipse.jgit:org.eclipse.jgit"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "7.1.0.202411261347-r"
      }, {
        "fixed" : "7.1.1.202505221757-r"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.eclipse.jgit:org.eclipse.jgit"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "7.0.0.202409031743-r"
      }, {
        "fixed" : "7.0.1.202505221510-r"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.eclipse.jgit:org.eclipse.jgit"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "6.1.0.202203080745-r"
      }, {
        "fixed" : "6.10.1.202505221210-r"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.eclipse.jgit:org.eclipse.jgit"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "6.0.0.202110060947-m1"
      }, {
        "fixed" : "6.0.0.202111291000-r"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.eclipse.jgit:org.eclipse.jgit"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "5.13.4.202507202350-r"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-4949"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/eclipse-jgit/jgit"
  }, {
    "type" : "WEB",
    "url" : "https://gitlab.eclipse.org/security/cve-assignement/-/issues/64"
  }, {
    "type" : "WEB",
    "url" : "https://gitlab.eclipse.org/security/vulnerability-reports/-/issues/281"
  }, {
    "type" : "WEB",
    "url" : "https://projects.eclipse.org/projects/technology.jgit/releases/5.13.4"
  }, {
    "type" : "WEB",
    "url" : "https://projects.eclipse.org/projects/technology.jgit/releases/5.13.5"
  }, {
    "type" : "WEB",
    "url" : "https://projects.eclipse.org/projects/technology.jgit/releases/6.10.1"
  }, {
    "type" : "WEB",
    "url" : "https://projects.eclipse.org/projects/technology.jgit/releases/7.0.1"
  }, {
    "type" : "WEB",
    "url" : "https://projects.eclipse.org/projects/technology.jgit/releases/7.1.1"
  }, {
    "type" : "WEB",
    "url" : "https://projects.eclipse.org/projects/technology.jgit/releases/7.2.1"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-611" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-05-22T18:49:33Z",
    "nvd_published_at" : "2025-05-21T07:16:01Z"
  }
}