Eclipse JGit XML External Entity (XXE) Vulnerability
Date: 2025-05
Affected: maven/org.eclipse.jgit:org.eclipse.jgit, maven/org.eclipse.jgit:org.eclipse.jgit, maven/org.eclipse.jgit:org.eclipse.jgit
Attack vector: info-disclosure
Category: vulnerability-disclosure
Severity: Medium
CVE: CVE-2025-4949
CWE: CWE-611

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.


Mitigations:

Architectural layers (MAESTRO):