NVD Vulnerability Detail
Search Exploit, PoC
CVE-2023-4759
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.

Publication Date Sept. 12, 2023, 7:15 p.m.
Registration Date Sept. 13, 2023, 10 a.m.
Last Update Nov. 21, 2024, 5:35 p.m.
CVSS3.1 : HIGH
スコア 8.8
Vector CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
攻撃元区分(AV) ネットワーク
攻撃条件の複雑さ(AC)
攻撃に必要な特権レベル(PR)
利用者の関与(UI) 不要
影響の想定範囲(S) 変更なし
機密性への影響(C)
完全性への影響(I)
可用性への影響(A)
Affected software configurations
Configuration1 or higher or less more than less than
cpe:2.3:a:eclipse:jgit:*:*:*:*:*:*:*:* 5.13.3.202401111512-r
cpe:2.3:a:eclipse:jgit:*:*:*:*:*:*:*:* 6.6.0 6.6.0.202305301015
cpe:2.3:a:eclipse:jgit:*:*:*:*:*:*:*:* 6.7.0 6.7.0.202309050840
execution environment
1 cpe:2.3:o:apple:macos:-:*:*:*:*:*:*:*
2 cpe:2.3:o:microsoft:windows:-:*:*:*:*:*:*:*
Related information, measures and tools
Common Vulnerabilities List

JVN Vulnerability Information
Eclipse Foundation の JGit における大文字と小文字の区別の不適切な処理に関する脆弱性
Title Eclipse Foundation の JGit における大文字と小文字の区別の不適切な処理に関する脆弱性
Summary

Eclipse Foundation の JGit には、大文字と小文字の区別の不適切な処理に関する脆弱性、リンク解釈に関する脆弱性が存在します。

Possible impacts 情報を取得される、情報を改ざんされる、およびサービス運用妨害 (DoS) 状態にされる可能性があります。
Solution

ベンダアドバイザリまたはパッチ情報が公開されています。参考情報を参照して適切な対策を実施してください。

Publication Date Sept. 12, 2023, midnight
Registration Date Dec. 18, 2023, 12:10 p.m.
Last Update Dec. 18, 2023, 12:10 p.m.
Affected System
Eclipse Foundation
JGit 6.6.0.202305301015 未満
JGit 6.7.0 以上 6.7.0.202309050840 未満
CVE (情報セキュリティ 共通脆弱性識別子)
CWE (共通脆弱性タイプ一覧)
その他
Change Log
No Changed Details Date of change
1 [2023年12月18日]
  掲載
Dec. 18, 2023, 12:10 p.m.