CVE-2026-53584
Medium · 4.3CVSS
4.3
EPSS
0.3%
Published
Aug 20, 2026
CISA due date
—
Cloudanix analysis
Some applications that handle Git projects could be tricked into creating folders in unexpected places on a computer when they open certain specially crafted project files.
- Exploitation
- Requires User Interaction
- Attacker needs
- User Interaction
- Complexity
- Low
- Impact
- Data Tampering
- Component
- Library
- Class
- Path Traversal
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
The library fails to sanitize traversal components such as ../ in submodule paths read from .gitmodules; calls to git_submodule_lookup and git_submodule_add_setup therefore allow creation of directories outside the repository working tree.
Why it matters to the business
Applications that embed the library may inadvertently write files to arbitrary locations on disk when they initialize submodules from a malicious repository, risking data corruption, overwrites of configuration files, or facilitation of further attacks on the host system.
How an attack unfolds
An attacker publishes a repository whose .gitmodules file contains a path component such as ../escape-target; when a victim application clones the repository and invokes submodule initialization, the vulnerable functions create directories outside the intended tree.
How to fix it
Upgrade libgit2-main on Red Hat systems to version 1.9.7-1.hum1 (RHSA-2026:59361) or later; rebuild and redeploy any applications statically or dynamically linked against the library.
How to confirm the fix worked
Verify the installed package version matches or exceeds the fixed release; test submodule initialization against a repository containing a ../ path in .gitmodules and confirm that directory creation is rejected.
Typical attack path
- Create a Git repository containing a malicious .gitmodules entry with path traversal
- Host or distribute the repository to a target environment
- Victim application performs clone or submodule initialization
- Library functions write directories outside the working tree
How to detect it
Review application and system logs for unexpected directory creation events occurring during repository clone or submodule initialization operations; correlate with file-system monitoring that flags paths outside expected working directories.
What your security team should do
- Apply the vendor-supplied update immediately
- Inventory all applications that link against libgit2 and schedule upgrades
- Block untrusted Git repositories from being processed until patches are deployed
The record
libgit2 is a portable C implementation of the Git core methods provided as a linkable library with a solid API, allowing to build Git functionality into your application. Prior to 1.8.6 and 1.9.5, libgit2 does not reject traversal components in a submodule path loaded from .gitmodules. The affected src/libgit2/submodule.c paths include git_submodule_lookup and git_submodule_add_setup. A crafted repository can specify a path such as ../escape-target, and applications that initialize the submodule can create directories outside the repository working tree. This issue is fixed in versions 1.8.6 and 1.9.5.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|
Related vulnerabilities
- CVE-2026-108327 Tanium addressed a path traversal vulnerability in Tanium Data Service. CWE-22
- CVE-2026-121542 In Docker Buildx versions v0.19.0 through v0.38.0, an untrusted Bake definition may… CWE-22
- CVE-2026-63502 Yeti bridges the gap between CTI and DFIR practitioners by providing a Forensics… CWE-22
- CVE-2026-63478 isomorphic-git is a pure JavaScript implementation of Git for Node.js and browsers. CWE-22
- CVE-2026-63500 Yeti bridges the gap between CTI and DFIR practitioners by providing a Forensics… CWE-22
- CVE-2026-63395 isomorphic-git is a pure JavaScript implementation of Git for Node.js and browsers. CWE-22
- CVE-2026-63436 zt-zip is a Java library that provides convenience methods for ZIP archive manipulation. CWE-22
- CVE-2026-121263 A vulnerability was determined in phpMyAdmin MoTranslator up to 6.0.1. CWE-22