Skip to main content
EPSS 0.4%top 67%

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)

0
Medium
Published: 07/31/2026 (07/31/2026, 00:00:00 UTC)
Source: GCVE Database
Product: libgit2

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

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
None
Integrity
Low
Availability
None
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N

Affected software

Ubuntu:Pro:14.04:LTSmore threats →ghsa
libgit2
pkg:deb/ubuntu/libgit2?arch=source&distro=esm-infra-legacy/trusty
Affected versions
=0.19.0-2=0.19.0-2ubuntu0.4=0.19.0-2ubuntu0.4+esm1=0.19.0-2ubuntu0.4+esm2
Ubuntu:Pro:16.04:LTSmore threats →ghsa
libgit2
pkg:deb/ubuntu/libgit2?arch=source&distro=esm-apps-legacy/xenial
Affected versions
=0.22.2-2=0.23.1-1=0.24.1-2=0.24.1-2ubuntu0.2=0.24.1-2ubuntu0.2+esm1=0.24.1-2ubuntu0.2+esm2=0.24.1-2ubuntu0.2+esm3=0.24.1-2ubuntu0.2+esm4
Ubuntu:Pro:18.04:LTSmore threats →ghsa
libgit2
pkg:deb/ubuntu/libgit2?arch=source&distro=esm-apps/bionic
Affected versions
=0.25.1+really0.24.6-1=0.26.0+dfsg.1-1.1=0.26.0+dfsg.1-1.1build1=0.26.0+dfsg.1-1.1ubuntu0.2=0.26.0+dfsg.1-1.1ubuntu0.2+esm1=0.26.0+dfsg.1-1.1ubuntu0.2+esm2=0.26.0+dfsg.1-1.1ubuntu0.2+esm3
Ubuntu:Pro:20.04:LTSmore threats →ghsa
libgit2
pkg:deb/ubuntu/libgit2?arch=source&distro=esm-apps/focal
Affected versions
<0.28.4+dfsg.1-2ubuntu0.1+esm1=0.27.7+dfsg.1-0.2build1=0.28.3+dfsg.1-1=0.28.3+dfsg.1-1ubuntu1=0.28.4+dfsg.1-2=0.28.4+dfsg.1-2ubuntu0.1
Ubuntu:Pro:22.04:LTSmore threats →ghsa
libgit2
pkg:deb/ubuntu/libgit2?arch=source&distro=esm-apps/jammy
Affected versions
<1.1.0+dfsg.1-4.1ubuntu0.1+esm1=1.1.0+dfsg.1-4=1.1.0+dfsg.1-4.1=1.1.0+dfsg.1-4.1build1=1.1.0+dfsg.1-4.1ubuntu0.1
Ubuntu:24.04:LTSmore threats →ghsa
libgit2
pkg:deb/ubuntu/libgit2?arch=source&distro=noble
Affected versions
<1.7.2+ds-1ubuntu3.1=1.5.1+ds-1ubuntu1=1.7.1+ds-2ubuntu1=1.7.2+ds-1ubuntu1=1.7.2+ds-1ubuntu2=1.7.2+ds-1ubuntu3
Ubuntu:26.04:LTSmore threats →ghsa
libgit2
pkg:deb/ubuntu/libgit2?arch=source&distro=resolute
Affected versions
<1.9.1+ds-1ubuntu1.1=1.9.0+ds-2ubuntu2=1.9.1+ds-1ubuntu1

Run 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

AILast updated: 09/24/2026, 08:24:10 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses