# CVE-2025-4949: XXE vulnerability in Eclipse JGit

> Attackers can exploit XML parsing flaws in Eclipse JGit to disclose sensitive information or cause denial of service.

- **Severity:** Medium 6.8 (`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/S:N/AU:Y/R:U/V:D/RE:L/U:Green`)
- **Exploited in the wild:** Not known
- **Login needed:** Any signed-in user
- **Attackable:** Over the internet
- **Victim action needed:** A user has to click or open something
- **Fix available:** Yes
- **Published:** 21 May 2025
- **Updated:** 14 Oct 2025
- **Also known as:** CLSA-2026-1770077339, CLSA-2026-1771027774, DEBIAN-CVE-2025-4949, ECHO-6d20-537b-ef6e, GHSA-vrpq-qp53-qv56, MINI-232r-jh65-2rp7, MINI-8h5q-fqxh-j475, RHSA-2025:22187, RHSA-2025:22188, RHSA-2025:22773, RHSA-2025:22775, ROOT-APP-MAVEN-CVE-2025-4949, SUSE-SU-2025:02762-1, UBUNTU-CVE-2025-4949

## What is CVE-2025-4949?

CVE-2025-4949 is a medium-severity vulnerability in Eclipse JGit, published on 21 May 2025. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.

### Official description

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.

Weakness: CWE-827 (Improper Control of Document Type Definition), CWE-611 (Improper Restriction of XML External Entity Reference)

## Which versions are affected by CVE-2025-4949?

12 open source packages ship an affected version, including org.eclipse.jgit:org.eclipse.jgit. It affects 1 product.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `org.eclipse.jgit:org.eclipse.jgit` | Maven | All versions | 5.13.4.202507202350-r |
| `org.eclipse.jgit:org.eclipse.jgit` | Maven | All versions | 5.13.4.202507202350-r |
| `org.eclipse.jgit:org.eclipse.jgit` | Maven | From 6.0.0.202110060947-m1 | 6.0.0.202111291000-r |
| `org.eclipse.jgit:org.eclipse.jgit` | Maven | From 6.0.0.202110060947-m1 | 6.0.0.202111291000-r |
| `org.eclipse.jgit:org.eclipse.jgit` | Maven | From 6.1.0.202203080745-r | 6.10.1.202505221210-r |
| `org.eclipse.jgit:org.eclipse.jgit` | Maven | From 6.1.0.202203080745-r | 6.10.1.202505221210-r |
| `org.eclipse.jgit:org.eclipse.jgit` | Maven | From 7.0.0.202409031743-r | 7.0.1.202505221510-r |
| `org.eclipse.jgit:org.eclipse.jgit` | Maven | From 7.0.0.202409031743-r | 7.0.1.202505221510-r |
| `org.eclipse.jgit:org.eclipse.jgit` | Maven | From 7.1.0.202411261347-r | 7.1.1.202505221757-r |
| `org.eclipse.jgit:org.eclipse.jgit` | Maven | From 7.1.0.202411261347-r | 7.1.1.202505221757-r |
| `org.eclipse.jgit:org.eclipse.jgit` | Maven | From 7.2.0.202503040940-r | 7.2.1.202505142326-r |
| `org.eclipse.jgit:org.eclipse.jgit` | Maven | From 7.2.0.202503040940-r | 7.2.1.202505142326-r |
| `eap8-angus-activation` | Red Hat:jboss_enterprise_application_platform:8.0::el8 | All versions | 0:2.0.2-2.redhat_00002.1.el8eap |
| `eap8-apache-commons-io` | Red Hat:jboss_enterprise_application_platform:8.0::el8 | All versions | 0:2.16.1-2.redhat_00002.1.el8eap |
| `eap8-atinject` | Red Hat:jboss_enterprise_application_platform:8.0::el8 | All versions | 0:2.0.1-5.redhat_00007.1.el8eap |
| `eap8-bouncycastle` | Red Hat:jboss_enterprise_application_platform:8.0::el8 | All versions | 0:1.82.0-1.redhat_00001.1.el8eap |
| `eap8-bouncycastle-jmail` | Red Hat:jboss_enterprise_application_platform:8.0::el8 | All versions | 0:1.82.0-1.redhat_00001.1.el8eap |
| `eap8-bouncycastle-pg` | Red Hat:jboss_enterprise_application_platform:8.0::el8 | All versions | 0:1.82.0-1.redhat_00001.1.el8eap |
| `eap8-bouncycastle-pkix` | Red Hat:jboss_enterprise_application_platform:8.0::el8 | All versions | 0:1.82.0-1.redhat_00001.1.el8eap |
| `eap8-bouncycastle-prov` | Red Hat:jboss_enterprise_application_platform:8.0::el8 | All versions | 0:1.82.0-1.redhat_00001.1.el8eap |
| `eap8-bouncycastle-util` | Red Hat:jboss_enterprise_application_platform:8.0::el8 | All versions | 0:1.82.0-1.redhat_00001.1.el8eap |
| `eap8-eap-product-conf-parent` | Red Hat:jboss_enterprise_application_platform:8.0::el8 | All versions | 0:800.11.0-1.GA_redhat_00001.1.el8eap |
| `eap8-eap-product-conf-wildfly-ee-feature-pack` | Red Hat:jboss_enterprise_application_platform:8.0::el8 | All versions | 0:800.11.0-1.GA_redhat_00001.1.el8eap |
| `eap8-eclipse-jgit` | Red Hat:jboss_enterprise_application_platform:8.0::el8 | All versions | 0:6.10.1.202505221210-1.r_redhat_00002.1.el8eap |
| `eap8-hal-console` | Red Hat:jboss_enterprise_application_platform:8.0::el8 | All versions | 0:3.6.27-1.Final_redhat_00001.1.el8eap |
| `eap8-hibernate` | Red Hat:jboss_enterprise_application_platform:8.0::el8 | All versions | 0:6.2.46-1.Final_redhat_00001.1.el8eap |
| `eap8-hibernate-core` | Red Hat:jboss_enterprise_application_platform:8.0::el8 | All versions | 0:6.2.46-1.Final_redhat_00001.1.el8eap |
| `eap8-hibernate-envers` | Red Hat:jboss_enterprise_application_platform:8.0::el8 | All versions | 0:6.2.46-1.Final_redhat_00001.1.el8eap |
| `eap8-hibernate-validator` | Red Hat:jboss_enterprise_application_platform:8.0::el8 | All versions | 0:8.0.2-1.Final_redhat_00001.1.el8eap |
| `eap8-hibernate-validator-cdi` | Red Hat:jboss_enterprise_application_platform:8.0::el8 | All versions | 0:8.0.2-1.Final_redhat_00001.1.el8eap |
| `eap8-httpcomponents-client` | Red Hat:jboss_enterprise_application_platform:8.0::el8 | All versions | 0:4.5.14-5.redhat_00016.1.el8eap |
| `eap8-httpcomponents-core` | Red Hat:jboss_enterprise_application_platform:8.0::el8 | All versions | 0:4.4.16-6.redhat_00011.1.el8eap |
| `eap8-installation-manager-api` | Red Hat:jboss_enterprise_application_platform:8.0::el8 | All versions | 0:1.0.3-1.Final_redhat_00001.1.el8eap |
| `eap8-istack-commons-runtime` | Red Hat:jboss_enterprise_application_platform:8.0::el8 | All versions | 0:4.1.2-2.redhat_00003.1.el8eap |
| `eap8-istack-commons-tools` | Red Hat:jboss_enterprise_application_platform:8.0::el8 | All versions | 0:4.1.2-2.redhat_00003.1.el8eap |
| `eap8-jakarta-activation` | Red Hat:jboss_enterprise_application_platform:8.0::el8 | All versions | 0:2.1.3-2.redhat_00002.1.el8eap |
| `eap8-jakarta-annotation-api` | Red Hat:jboss_enterprise_application_platform:8.0::el8 | All versions | 0:2.1.1-5.redhat_00005.1.el8eap |
| `eap8-jakarta-enterprise-concurrent` | Red Hat:jboss_enterprise_application_platform:8.0::el8 | All versions | 0:3.0.2-1.redhat_00001.1.el8eap |
| `eap8-jakarta-interceptor-api` | Red Hat:jboss_enterprise_application_platform:8.0::el8 | All versions | 0:2.1.0-5.redhat_00003.1.el8eap |
| `eap8-jakarta-mail` | Red Hat:jboss_enterprise_application_platform:8.0::el8 | All versions | 0:2.1.3-3.redhat_00003.1.el8eap |

Products: Eclipse Jgit.

## How do I fix CVE-2025-4949?

Upgrade org.eclipse.jgit:org.eclipse.jgit to a fixed version for your release line: 5.13.4.202507202350-r, 6.0.0.202111291000-r, 6.10.1.202505221210-r or 7.0.1.202505221510-r.

## Is CVE-2025-4949 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-4949 exists.

## Other vulnerabilities in Eclipse JGit

- [CVE-2023-4759](https://insights.sbomify.com/CVE-2023-4759/): Improper handling of case insensitive filesystems in Eclipse JGit allows arbitrary file write (high 8.8)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2025-4949 and fix it if it is affected.

What it is: CVE-2025-4949 is a medium-severity vulnerability in Eclipse JGit, published on 21 May 2025. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.
Exploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-4949 exists.

Affected packages and fixed versions:
- org.eclipse.jgit:org.eclipse.jgit (Maven): affected all versions; fixed in 5.13.4.202507202350-r
- org.eclipse.jgit:org.eclipse.jgit (Maven): affected all versions; fixed in 5.13.4.202507202350-r
- org.eclipse.jgit:org.eclipse.jgit (Maven): affected from 6.0.0.202110060947-m1; fixed in 6.0.0.202111291000-r
- org.eclipse.jgit:org.eclipse.jgit (Maven): affected from 6.0.0.202110060947-m1; fixed in 6.0.0.202111291000-r
- org.eclipse.jgit:org.eclipse.jgit (Maven): affected from 6.1.0.202203080745-r; fixed in 6.10.1.202505221210-r
- org.eclipse.jgit:org.eclipse.jgit (Maven): affected from 6.1.0.202203080745-r; fixed in 6.10.1.202505221210-r
- org.eclipse.jgit:org.eclipse.jgit (Maven): affected from 7.0.0.202409031743-r; fixed in 7.0.1.202505221510-r
- org.eclipse.jgit:org.eclipse.jgit (Maven): affected from 7.0.0.202409031743-r; fixed in 7.0.1.202505221510-r
- org.eclipse.jgit:org.eclipse.jgit (Maven): affected from 7.1.0.202411261347-r; fixed in 7.1.1.202505221757-r
- org.eclipse.jgit:org.eclipse.jgit (Maven): affected from 7.1.0.202411261347-r; fixed in 7.1.1.202505221757-r
- org.eclipse.jgit:org.eclipse.jgit (Maven): affected from 7.2.0.202503040940-r; fixed in 7.2.1.202505142326-r
- org.eclipse.jgit:org.eclipse.jgit (Maven): affected from 7.2.0.202503040940-r; fixed in 7.2.1.202505142326-r

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2025-4949/ (Markdown: https://insights.sbomify.com/CVE-2025-4949/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2025-4949
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2025-4949
- OSV: https://osv.dev/vulnerability/CVE-2025-4949

---
From sbomify Insights: https://insights.sbomify.com/CVE-2025-4949/
Summaries are generated and may contain mistakes; the official description above is the record.
