Directory Traversal Vulnerability in libgit2 by GitHub
CVE-2026-53584
4.3MEDIUM
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
