Directory Traversal Vulnerability in libgit2 by GitHub
CVE-2026-53584

4.3MEDIUM

Key Information:

Vendor

Libgit2

Status
Vendor
CVE Published:
20 August 2026

What is CVE-2026-53584?

libgit2, a portable C implementation of Git functionality, had a vulnerability that permitted submodule paths specified in .gitmodules to include traversal components. This could lead applications to create directories outside the intended repository working tree when initializing submodules. The vulnerability, found in specific functions within src/libgit2/submodule.c, can be exploited by a crafted repository path such as '../escape-target'. This issue has been resolved in versions 1.8.6 and 1.9.5.

Affected Version(s)

libgit2 < 1.8.6 < 1.8.6

libgit2 >= 1.9.0, < 1.9.5 < 1.9.0, 1.9.5

References

CVSS V3.1

Score:
4.3
Severity:
MEDIUM
Confidentiality:
None
Integrity:
Low
Availability:
None
Attack Vector:
Network
Attack Complexity:
Low
Privileges Required:
None
User Interaction:
Required
Scope:
Unchanged

Timeline

  • Vulnerability published

  • Vulnerability Reserved

.