Path traversal in libgit2 - CVE-2026-53584

 

Path traversal in libgit2 - CVE-2026-53584

Published: July 20, 2026


Vulnerability identifier: #VU138489
CSH Severity: Low
CVSS v4.0: CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:U/U:Clear
CVE-ID: CVE-2026-53584
CWE-ID: CWE-22
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: libgit2.github.com
Affected software:
libgit2

Detailed vulnerability description

The vulnerability allows a remote attacker to create directories outside the repository's working tree.

The vulnerability exists due to path traversal in submodule path handling when initializing a submodule in a crafted repository. A remote attacker can supply a crafted repository containing a submodule path with traversal components to create directories outside the repository's working tree.

User interaction is required to initialize a submodule in a crafted repository.


How to mitigate CVE-2026-53584

Install security update from vendor's website.

Sources