CVE-2026-53584: libgit2: Submodule path traversal

Published Aug 20, 2026
·
Updated

Last updated 13 August 2026

Other sources

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 gitsubmodulelookup and gitsubmoduleaddsetup. 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.

MITRE

Affected Software

1 affected componentFixes available
debian/libgit2<=1.1.0+dfsg.1-4+deb11u2, <=1.5.1+ds-1+deb12u1, <=1.9.0+ds-2
1.9.6+ds-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/libgit2 to a version that resolves this vulnerability.

    Fixed in 1.9.6+ds-1
  2. Upgrade

    Upgrade libgit2 to a version that resolves this vulnerability.

    Fixed in 1.8.6
  3. Upgrade

    Upgrade libgit2 to a version that resolves this vulnerability.

    Fixed in 1.9.5

Event History

Aug 12, 2026
Data Sourced
via Debian·10:40 PM
DescriptionAffected Software
Aug 13, 2026
Data Sourced
via Ubuntu·10:40 PM
RemedyDescriptionSeverityAffected Software
Aug 20, 2026
CVE Published
via MITRE·06:35 PM
Data Sourced
via MITRE·06:35 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which applications are exposed?

Applications that use libgit2 versions earlier than 1.8.6 or 1.9.5 and initialize submodules from a crafted repository are exposed. The affected code paths include git_submodule_lookup and git_submodule_add_setup.

2

What must an attacker provide to exploit this issue?

An attacker needs to provide a crafted repository whose .gitmodules file contains a submodule path with traversal components, such as ../escape-target. Exploitation requires a user or application to initialize that submodule.

3

What is the impact when exploitation succeeds?

The application can create directories outside the repository working tree. The supplied severity vector indicates integrity impact but no confidentiality or availability impact.

4

What should be done if upgrading cannot happen immediately?

Do not initialize submodules from untrusted repositories, or inspect .gitmodules before doing so and reject submodule paths containing traversal components. Upgrade to libgit2 1.8.6 or 1.9.5 when possible.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203