OESA-2023-1995 (CVE-2023-4759)

Vulnerability from osv_openeuler – Published: 2023-12-29 11:06 – Updated: 2026-08-06 11:06 – Source website
VLAI
Summary
jgit security update
Details

A pure Java implementation of the Git version control system and command line interface.

Security Fix(es):

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/ .

The JGit maintainers would like to thank RyotaK for finding and reporting this issue.

(CVE-2023-4759)

Upstream
Impacted products
Ecosystem Package Version
openEuler:20.03-LTS-SP1 jgit
pkg:rpm/openEuler/jgit&distro=openEuler-20.03-LTS-SP1
Affected: < 5.11.0-3.oe1 (ecosystem)
openEuler:20.03-LTS-SP3 jgit
pkg:rpm/openEuler/jgit&distro=openEuler-20.03-LTS-SP3
Affected: < 5.11.0-3.oe1 (ecosystem)
openEuler:20.03-LTS-SP4 jgit
pkg:rpm/openEuler/jgit&distro=openEuler-20.03-LTS-SP4
Affected: < 5.11.0-3.oe2003sp4 (ecosystem)
openEuler:22.03-LTS jgit
pkg:rpm/openEuler/jgit&distro=openEuler-22.03-LTS
Affected: < 5.11.0-3.oe2203sp2 (ecosystem)
openEuler:22.03-LTS-SP1 jgit
pkg:rpm/openEuler/jgit&distro=openEuler-22.03-LTS-SP1
Affected: < 5.11.0-3.oe2203sp1 (ecosystem)
openEuler:22.03-LTS-SP2 jgit
pkg:rpm/openEuler/jgit&distro=openEuler-22.03-LTS-SP2
Affected: < 5.11.0-3.oe2203sp2 (ecosystem)

{
  "affected": [
    {
      "ecosystem_specific": {
        "noarch": [
          "jgit-javadoc-5.11.0-3.oe1.noarch.rpm",
          "jgit-5.11.0-3.oe1.noarch.rpm"
        ],
        "src": [
          "jgit-5.11.0-3.oe1.src.rpm"
        ]
      },
      "package": {
        "ecosystem": "openEuler:20.03-LTS-SP1",
        "name": "jgit",
        "purl": "pkg:rpm/openEuler/jgit\u0026distro=openEuler-20.03-LTS-SP1"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "5.11.0-3.oe1"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    },
    {
      "ecosystem_specific": {
        "noarch": [
          "jgit-javadoc-5.11.0-3.oe1.noarch.rpm",
          "jgit-5.11.0-3.oe1.noarch.rpm"
        ],
        "src": [
          "jgit-5.11.0-3.oe1.src.rpm"
        ]
      },
      "package": {
        "ecosystem": "openEuler:20.03-LTS-SP3",
        "name": "jgit",
        "purl": "pkg:rpm/openEuler/jgit\u0026distro=openEuler-20.03-LTS-SP3"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "5.11.0-3.oe1"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    },
    {
      "ecosystem_specific": {
        "noarch": [
          "jgit-javadoc-5.11.0-3.oe2003sp4.noarch.rpm",
          "jgit-5.11.0-3.oe2003sp4.noarch.rpm"
        ],
        "src": [
          "jgit-5.11.0-3.oe2003sp4.src.rpm"
        ]
      },
      "package": {
        "ecosystem": "openEuler:20.03-LTS-SP4",
        "name": "jgit",
        "purl": "pkg:rpm/openEuler/jgit\u0026distro=openEuler-20.03-LTS-SP4"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "5.11.0-3.oe2003sp4"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    },
    {
      "ecosystem_specific": {
        "noarch": [
          "jgit-javadoc-5.11.0-3.oe2203.noarch.rpm",
          "jgit-5.11.0-3.oe2203.noarch.rpm",
          "jgit-javadoc-5.11.0-3.oe2203sp1.noarch.rpm",
          "jgit-5.11.0-3.oe2203sp1.noarch.rpm",
          "jgit-javadoc-5.11.0-3.oe2203sp2.noarch.rpm",
          "jgit-5.11.0-3.oe2203sp2.noarch.rpm"
        ],
        "src": [
          "jgit-5.11.0-3.oe2203.src.rpm",
          "jgit-5.11.0-3.oe2203sp1.src.rpm",
          "jgit-5.11.0-3.oe2203sp2.src.rpm"
        ]
      },
      "package": {
        "ecosystem": "openEuler:22.03-LTS",
        "name": "jgit",
        "purl": "pkg:rpm/openEuler/jgit\u0026distro=openEuler-22.03-LTS"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "5.11.0-3.oe2203sp2"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    },
    {
      "ecosystem_specific": {
        "noarch": [
          "jgit-javadoc-5.11.0-3.oe2203sp1.noarch.rpm",
          "jgit-5.11.0-3.oe2203sp1.noarch.rpm"
        ],
        "src": [
          "jgit-5.11.0-3.oe2203sp1.src.rpm"
        ]
      },
      "package": {
        "ecosystem": "openEuler:22.03-LTS-SP1",
        "name": "jgit",
        "purl": "pkg:rpm/openEuler/jgit\u0026distro=openEuler-22.03-LTS-SP1"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "5.11.0-3.oe2203sp1"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    },
    {
      "ecosystem_specific": {
        "noarch": [
          "jgit-javadoc-5.11.0-3.oe2203sp2.noarch.rpm",
          "jgit-5.11.0-3.oe2203sp2.noarch.rpm"
        ],
        "src": [
          "jgit-5.11.0-3.oe2203sp2.src.rpm"
        ]
      },
      "package": {
        "ecosystem": "openEuler:22.03-LTS-SP2",
        "name": "jgit",
        "purl": "pkg:rpm/openEuler/jgit\u0026distro=openEuler-22.03-LTS-SP2"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "5.11.0-3.oe2203sp2"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "severity": "High"
  },
  "details": "A pure Java implementation of the Git version control system and command line interface.\r\n\r\nSecurity Fix(es):\r\n\r\nArbitrary File Overwrite in Eclipse JGit \u0026lt;= 6.6.0\r\n\r\nIn Eclipse JGit, all versions \u0026lt;= 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.\r\n\r\nThis can happen on checkout (DirCacheCheckout), merge (ResolveMerger\u00a0via its WorkingTreeUpdater), pull (PullCommand\u00a0using 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.\r\n\r\nThe 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.\r\n\r\nSetting git configuration option core.symlinks = false\u00a0before checking out avoids the problem.\r\n\r\nThe 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/ \u00a0and  repo.eclipse.org https://repo.eclipse.org/content/repositories/jgit-releases/ .\r\n\r\n\nThe JGit maintainers would like to thank RyotaK for finding and reporting this issue.\r\n\r\n\r\n\r\n(CVE-2023-4759)",
  "id": "OESA-2023-1995",
  "modified": "2026-08-06T11:06:26Z",
  "published": "2023-12-29T11:06:26Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://www.openeuler.org/en/security/safety-bulletin/detail.html?id=openEuler-SA-2023-1995"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2023-4759"
    }
  ],
  "schema_version": "1.7.2",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H",
      "type": "CVSS_V3"
    }
  ],
  "summary": "jgit security update",
  "upstream": [
    "CVE-2023-4759"
  ]
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Drag nodes to arrange them. Double-click a related vulnerability to open it, or a source to visit its link. The Physics button on the left tunes the layout and the simulation; the legend at the bottom left hides or shows nodes by kind and by sighting type.

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Vulnerability timeline

Sightings and recorded dates, grouped by day · UTC

JSON
How durations are calculated

Following the VTEM framework (Black Hat USA 2015), time to patch starts when the vendor or a coordinator was informed, total time to patch at discovery, and disclosure to patch at public disclosure; vendor response time runs from the report to its acknowledgement. Time to exploit and time unpatched start at the earliest discovery or report, falling back to public disclosure. Unpatched time ends at the first recorded patch, or the calculation time when no patch is recorded. Exploitation to patch shows the interval between those two events; a published proof of concept is a public exploit, not exploitation. The method is described in a publication.

Each result shows its source dates. A negative interval means the end event came first; when date-only inputs leave the order open, the result says so. Date-only inputs are approximate. The earliest evidence wins: KEV report dates and sightings are labelled as such. Records describing another vulnerability are listed but never calculated from, and a PoC alone does not establish exploitation. Missing patch evidence does not prove that no patch exists. Filters below change the event list only.

Events included in the timeline

Loading timeline…


    Loading…

    Loading…

    Loading…

    Related by attack behaviour

    Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.