Improper handling of case insensitive filesystems in Eclipse JGit allows arbitrary file write
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Required
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Partial Red Hat: 7 fixed, 1 without a fix
Attack profile from CVSS 3.1 · CNA. Fix status from CNA, GitHub and Red Hat.
Summary
Arbitrary File Overwrite in Eclipse JGit <= 6.6.0 In Eclipse JGit, all versions <= 6.6.0.202305301015-r, a symbolic link present in a specially crafted git repository can be used to write a file to locations outside the working tree when this repository is cloned with JGit to a case-insensitive filesystem, or when a checkout from a clone of such a repository is performed on a case-insensitive filesystem. This can happen on checkout (DirCacheCheckout), merge (ResolveMerger via its WorkingTreeUpdater), pull (PullCommand using merge), and when applying a patch (PatchApplier). This can be exploited for remote code execution (RCE), for instance if the file written outside the working tree is a git filter that gets executed on a subsequent git command. The issue occurs only on case-insensitive filesystems, like the default filesystems on Windows and macOS. The user performing the clone or checkout must have the rights to create symbolic links for the problem to occur, and symbolic links must be enabled in the git configuration. Setting git configuration option core.symlinks = false before checking out avoids the problem. The issue was fixed in Eclipse JGit version 6.6.1.202309021850-r and 6.7.0.202309050840-r, available via Maven Central https://repo1.maven.org/maven2/org/eclipse/jgit/ and repo.eclipse.org https://repo.eclipse.org/content/repositories/jgit-releases/ . A backport is available in 5.13.3 starting from 5.13.3.202401111512-r. The JGit maintainers would like to thank RyotaK for finding and reporting this issue.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Eclipse Foundation | Eclipse JGit | 0.0.0 – 6.6.0.202305301015-r | 5.13.3.202401111512-r | Patch available | CNA |
| — | org.eclipse.jgit:org.eclipse.jgit (Maven) | 6.0.0.202111291000-r to before 6.6.1.202309021850-r | 6.6.1.202309021850-r | Patch available | GHSA-3p86-9955-h393 |
| — | org.eclipse.jgit:org.eclipse.jgit (Maven) | before 5.13.3.202401111512-r | 5.13.3.202401111512-r | Patch available | GHSA-3p86-9955-h393 |
- Eclipse JGit VendorEclipse Foundation Affected 0.0.0 – 6.6.0.202305301015-r Fixed in 5.13.3.202401111512-r Patch available CNA
- org.eclipse.jgit:org.eclipse.jgit (Maven) Vendor— Affected 6.0.0.202111291000-r to before 6.6.1.202309021850-r Fixed in 6.6.1.202309021850-r Patch available GHSA-3p86-9955-h393
- org.eclipse.jgit:org.eclipse.jgit (Maven) Vendor— Affected before 5.13.3.202401111512-r Fixed in 5.13.3.202401111512-r Patch available GHSA-3p86-9955-h393
CPE configurations NVD · 3
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:eclipse:jgit:*:*:*:*:*:*:*:* | before 5.13.3.202401111512-r; 6.6.0 to before 6.6.0.202305301015; 6.7.0 to before 6.7.0.202309050840 | Vulnerable | Eclipse Foundation |
| cpe:2.3:o:apple:macos:-:*:*:*:*:*:*:* | not specified by NVD | Running on | Apple |
| cpe:2.3:o:microsoft:windows:-:*:*:*:*:*:*:* | not specified by NVD | Running on | Microsoft |
- cpe:2.3:a:eclipse:jgit:*:*:*:*:*:*:*:* Versions before 5.13.3.202401111512-r; 6.6.0 to before 6.6.0.202305301015; 6.7.0 to before 6.7.0.202309050840 Vulnerable ·Eclipse Foundation
- cpe:2.3:o:apple:macos:-:*:*:*:*:*:*:* Versions not specified by NVD Running on ·Apple
- cpe:2.3:o:microsoft:windows:-:*:*:*:*:*:*:* Versions not specified by NVD Running on ·Microsoft
Remediation
- Fix · CNA Eclipse JGit (Eclipse Foundation) Fixed in 5.13.3.202401111512-r
- Fix · GHSA-3p86-9955-h393 org.eclipse.jgit:org.eclipse.jgit (Maven) Fixed in 6.6.1.202309021850-r Advisory →
- Fix · GHSA-3p86-9955-h393 org.eclipse.jgit:org.eclipse.jgit (Maven) Fixed in 5.13.3.202401111512-r Advisory →
Red Hat 7 advisories
- RHSA-2024:1194 Released 2024-03-06 · Red Hat rating ModerateRed Hat JBoss Enterprise Application Platform 8.0.1 security update
- EAP 8.0.1
- RHSA-2024:1192 Released 2024-03-06 · Red Hat rating ModerateRed Hat JBoss Enterprise Application Platform 8.0.1 security update
- Red Hat JBoss EAP 8.0 for RHEL 8 eap8-apache-sshd-2.12.0-1.redhat_00001.1.el8eap, eap8-eclipse-jgit-6.6.1.202309021850-1.r_redhat_00001.1.el8eap, eap8-log4j-2.19.0-2.redhat_00001.1.el8eap +12
- RHSA-2024:1193 Released 2024-03-06 · Red Hat rating ModerateRed Hat JBoss Enterprise Application Platform 8.0.1 security update
- Red Hat JBoss EAP 8.0 for RHEL 9 eap8-apache-sshd-2.12.0-1.redhat_00001.1.el9eap, eap8-eclipse-jgit-6.6.1.202309021850-1.r_redhat_00001.1.el9eap, eap8-log4j-2.19.0-2.redhat_00001.1.el9eap +12
Show 4 more Red Hat advisories
- RHSA-2024:0711 Released 2024-02-07 · Red Hat rating ModerateRed Hat JBoss Enterprise Application Platform 7.4.15 Security update
- Red Hat JBoss EAP 7.4 for RHEL 8 eap7-eclipse-jgit-5.13.2-1.SP1_redhat_00001.1.el8eap, eap7-glassfish-jsf-2.3.14-7.SP08_redhat_00001.1.el8eap, eap7-hibernate-5.3.33-2.Final_redhat_00001.1.el8eap +47
- RHSA-2024:0710 Released 2024-02-07 · Red Hat rating ModerateRed Hat JBoss Enterprise Application Platform 7.4.15 Security update
- Red Hat JBoss EAP 7.4 for RHEL 7 Server eap7-eclipse-jgit-5.13.2-1.SP1_redhat_00001.1.el7eap, eap7-glassfish-jsf-2.3.14-7.SP08_redhat_00001.1.el7eap, eap7-hibernate-5.3.33-2.Final_redhat_00001.1.el7eap +47
- RHSA-2024:0712 Released 2024-02-07 · Red Hat rating ModerateRed Hat JBoss Enterprise Application Platform 7.4.15 security update
- Red Hat JBoss EAP 7.4 for RHEL 9 eap7-eclipse-jgit-5.13.2-1.SP1_redhat_00001.1.el9eap, eap7-glassfish-jsf-2.3.14-7.SP08_redhat_00001.1.el9eap, eap7-hibernate-5.3.33-2.Final_redhat_00001.1.el9eap +47
- RHSA-2024:0714 Released 2024-02-06 · Red Hat rating ModerateRed Hat JBoss Enterprise Application Platform 7.4.15 Security update
- Red Hat JBoss Enterprise Application Platform org.apache.santuario.xmlsec-2.2.6.redhat-00002.jar, org.eclipse.jgit.org.eclipse.jgit-5.13.2.SP1-redhat-00001.jar
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat JBoss Enterprise Application Platform Expansion Pack | Affected | No fix yet |
| EAP 8.0.1 | Fixed | RHSA-2024:1194 |
| Red Hat JBoss EAP 7.4 for RHEL 7 Server | Fixed | RHSA-2024:0710 |
| Red Hat JBoss EAP 7.4 for RHEL 8 | Fixed | RHSA-2024:0711 |
| Red Hat JBoss EAP 7.4 for RHEL 9 | Fixed | RHSA-2024:0712 |
| Red Hat JBoss EAP 8.0 for RHEL 8 | Fixed | RHSA-2024:1192 |
| Red Hat JBoss EAP 8.0 for RHEL 9 | Fixed | RHSA-2024:1193 |
| Red Hat JBoss Enterprise Application Platform | Fixed | RHSA-2024:0714 |
Not affected: 4 products
- Red Hat JBoss EAP 7.4 for RHEL 7 Server
- Red Hat JBoss EAP 7.4 for RHEL 8
- Red Hat JBoss EAP 7.4 for RHEL 9
- Red Hat JBoss Enterprise Application Platform
Timeline
- 2026-10-02 Threatist record created from CVE-2023-4759
- 2026-10-03 Alias added: GHSA-3p86-9955-h393
References
Advisory 3
More Eclipse Foundation Jgit vulnerabilities
- TI-2014-07619 Git before 1.8.5.6, 1.9.x before 1.9.5, 2.0.x before 2.0.5, 2.1.x before 2.1.4, and 2.2.x… CVSS 3.1CRITICAL 9.8
- TI-2025-04438 XXE vulnerability in Eclipse JGit CVSS 4.0MEDIUM 6.8
Sources
- CVE-2023-4759 · CVE Program
- CVE-2023-4759 · NVD
- FIRST EPSS
- GHSA-3p86-9955-h393 · GitHub Advisory Database · CC BY 4.0
- CVE-2023-4759 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences