Cloudanix VulnDB

CVE-2026-53584

Medium · 4.3

CVSS

4.3

EPSS

0.3%

Published

Aug 20, 2026

CISA due date

—

Cloudanix analysis

Monitor only SSVC: Track

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

  1. Create a Git repository containing a malicious .gitmodules entry with path traversal
  2. Host or distribute the repository to a target environment
  3. Victim application performs clone or submodule initialization
  4. 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