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… (CVE-2026-53584)
Description
A vulnerability in libgit2 prior to versions 1.8.6 and 1.9.5 allows crafted repositories to specify submodule paths with traversal components (e.g., ../escape-target), enabling applications initializing submodules to create directories outside the repository working tree. This issue has been fixed in libgit2 versions 1.8.6 and 1.9.5. The vulnerability has a medium severity with a CVSS score of 4.3 and affects multiple Ubuntu package versions. Official patches are available from Ubuntu.
CVSS v3.1
Score 4.3medium
Affected software
pkg:deb/ubuntu/libgit2?arch=source&distro=esm-infra-legacy/trustypkg:deb/ubuntu/libgit2?arch=source&distro=esm-apps-legacy/xenialpkg:deb/ubuntu/libgit2?arch=source&distro=esm-apps/bionicpkg:deb/ubuntu/libgit2?arch=source&distro=esm-apps/focalpkg:deb/ubuntu/libgit2?arch=source&distro=esm-apps/jammypkg:deb/ubuntu/libgit2?arch=source&distro=noblepkg:deb/ubuntu/libgit2?arch=source&distro=resoluteRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
libgit2 versions before 1.8.6 and 1.9.5 do not properly reject traversal components in submodule paths loaded from .gitmodules. Specifically, functions git_submodule_lookup and git_submodule_add_setup in src/libgit2/submodule.c are affected. A crafted repository can specify a path such as '../escape-target', which may cause applications that initialize the submodule to create directories outside the intended repository working tree. This vulnerability is addressed in libgit2 versions 1.8.6 and 1.9.5. Multiple Ubuntu package versions are affected, and Ubuntu has released security notices with patches.
Potential Impact
A remote attacker can craft a repository with malicious submodule paths containing directory traversal sequences, potentially causing applications using libgit2 to create directories outside the repository working tree. This could lead to unauthorized file system modifications. The CVSS score is 4.3 (medium severity), indicating limited impact primarily related to integrity. No known exploits in the wild have been reported.
Mitigation Recommendations
A fix is available and users should update libgit2 to versions 1.8.6 or 1.9.5 or later. Ubuntu has released security updates for affected package versions, detailed in Ubuntu Security Notice USN-8628-1. Applying these official patches or performing a standard system update will remediate the issue. No additional mitigation actions are required beyond applying the vendor-provided fixes.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- UBUNTU-CVE-2026-53584
- Osv Schema Version
- 1.7.0
- Ecosystems
- ["Ubuntu:Pro:14.04:LTS","Ubuntu:Pro:16.04:LTS","Ubuntu:Pro:18.04:LTS","Ubuntu:Pro:20.04:LTS","Ubuntu:Pro:22.04:LTS","Ubuntu:24.04:LTS","Ubuntu:26.04:LTS"]
- Cvss Version
- 3.1
Patch Information
Threat ID: 6a8c4c56acd9273b499beb92
Added to database: 08/24/2026, 13:51:18 UTC
Last enriched: 09/24/2026, 08:24:10 UTC
Last updated: 10/08/2026, 18:48:46 UTC
Views: 48
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.