cve.bz

CVE-2026-71557 go-git go-git: Path traversal

6.3 mediumEPSS 0.4%Fix available

Medium (6.3) in go-git go-git. EPSS 0.4% estimated probability of exploitation activity in the next 30 days. Fixed in github.com/go-git/go-git/v5 5.19.2.

On this page
go-git is an extensible git implementation library written in pure Go. Prior to 5.19.2 and 6.0.0-alpha.5, reference names are not sanitized before being used to construct on-disk paths under the reference storage directory, so a maliciously crafted reference name (for example containing directory-traversal sequences) can cause go-git to write files outside the intended reference storage directory. Versions 5.19.2 and 6.0.0-alpha.5 fix the issue.

Severity

CVSS 3.1

6.3 medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:L
EPSS
0.4% (unchanged from 0.4% a week ago; 0.4% 30 days ago) estimated probability of exploitation activity in the next 30 days; 36th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2026-08-07. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-22 Improper Limitation of a Pathname to a Restricted Directory (Path traversal)
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Awaiting analysis
Record from
the NVD, synced

Fix and patched versions

  • github.com/go-git/go-git/v5 (Go): fixed in 5.19.2
  • github.com/go-git/go-git/v6 (Go): fixed in 6.0.0-alpha.5
  • Debian, Red Hat, SUSE, openSUSE, Azure Linux: fixed package versions per release

Ask an AI about this CVE

Show the promptExplain CVE-2026-71557 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-71557?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-71557?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-71557 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
go-git< 5.19.2
go-git>= 6.0.0-alpha.1, < 6.0.0-alpha.5

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-qgq7-7hm3-q39jGogithub.com/go-git/go-git/v5<5.19.25.19.2
GHSA-qgq7-7hm3-q39jGogithub.com/go-git/go-git/v6<6.0.0-alpha.56.0.0-alpha.5
GO-2026-6214Gogithub.com/go-git/go-git/v5<5.19.25.19.2
GO-2026-6214Gogithub.com/go-git/go-git/v6<6.0.0-alpha.56.0.0-alpha.5

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13golang-github-go-git-go-gitno fix listedDEBIAN-CVE-2026-71557
Debian14golang-github-go-git-go-git5.19.2-1DEBIAN-CVE-2026-71557
Debian14golang-github-go-git-go-git-v66.0.0~alpha.5-1DEBIAN-CVE-2026-71557
Ubuntu26.10golang-github-go-git-go-git, golang-github-go-git-go-git-v6no fix listedUBUNTU-CVE-2026-71557
UbuntuPro:22.04:LTS, Pro:24.04:LTS, Pro:26.04:LTSgolang-github-go-git-go-gitno fix listedUBUNTU-CVE-2026-71557
Red Hathummingbird:1kube-state-metrics0:2.20.0-0.2.hum1RHSA-2026:66208
Red Hathummingbird:1trivy0:0.74.0-0.3.hum1RHSA-2026:68281
SUSELinux Enterprise Module for Basesystem 15 SP7alloy1.19.2-150700.15.29.1SUSE-SU-2026:4408-1
SUSELinux Enterprise Module for Public Cloud 12amazon-ssm-agent3.3.5390.0-4.52.1SUSE-SU-2026:4286-1
SUSELinux Enterprise Module for Public Cloud 15 SP4, Linux Enterprise Module for Public Cloud 15 SP5terraform-provider-aws3.11.0-150200.6.24.2SUSE-SU-2026:3916-1
SUSELinux Enterprise Module for Public Cloud 15 SP4, Linux Enterprise Module for Public Cloud 15 SP5terraform-provider-aws3.11.0-150200.6.29.2SUSE-SU-2026:4628-1
SUSELinux Enterprise Module for Public Cloud 15 SP4, Linux Enterprise Module for Public Cloud 15 SP5terraform-provider-azurerm2.32.0-150200.6.18.2SUSE-SU-2026:3916-1
SUSELinux Enterprise Module for Public Cloud 15 SP4, Linux Enterprise Module for Public Cloud 15 SP5terraform-provider-azurerm2.32.0-150200.6.23.2SUSE-SU-2026:4628-1
SUSELinux Enterprise Module for Public Cloud 15 SP4, Linux Enterprise Module for Public Cloud 15 SP5terraform-provider-external2.0.0-150200.6.18.2SUSE-SU-2026:3916-1
SUSELinux Enterprise Module for Public Cloud 15 SP4, Linux Enterprise Module for Public Cloud 15 SP5terraform-provider-external2.0.0-150200.6.23.2SUSE-SU-2026:4628-1
SUSELinux Enterprise Module for Public Cloud 15 SP4, Linux Enterprise Module for Public Cloud 15 SP5terraform-provider-google3.43.0-150200.6.18.2SUSE-SU-2026:3916-1
SUSELinux Enterprise Module for Public Cloud 15 SP4, Linux Enterprise Module for Public Cloud 15 SP5terraform-provider-google3.43.0-150200.6.23.2SUSE-SU-2026:4628-1
SUSELinux Enterprise Module for Public Cloud 15 SP4, Linux Enterprise Module for Public Cloud 15 SP5terraform-provider-helm2.9.0-150200.6.29.2SUSE-SU-2026:3916-1
SUSELinux Enterprise Module for Public Cloud 15 SP4, Linux Enterprise Module for Public Cloud 15 SP5terraform-provider-helm2.9.0-150200.6.34.2SUSE-SU-2026:4628-1
13 more for SUSE in the JSON and on SUSE's page.
openSUSELeap 16.0alloy1.19.2-160000.1.1openSUSE-SU-2026:22032-1
openSUSELeap 16.0amazon-ssm-agent3.3.5390.0-160000.1.1openSUSE-SU-2026:21884-1
openSUSELeap 16.0govulncheck-vulndb0.0.20260827T195228-160000.1.1openSUSE-SU-2026:21761-1
openSUSETumbleweedalloy1.19.2-1.1openSUSE-SU-2026:11803-1
Azure Linux3cri-ono fix listedAZL-94673
Azure Linux3packer1.9.5-20AZL-95487

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

This is a Moderate impact flaw because it requires user interaction and low privileges, but can lead to unauthorized file modification. The `go-git` library, when processing maliciously crafted reference names, fails to sanitize directory traversal sequences, allowing files to be written outside the intended directory. This could affect Red Hat products that utilize `go-git` for repository operations where untrusted input for reference names is processed.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.

ProductPackageStateAdvisory
Red Hat Hardened Imageskube-state-metrics-main-2.20.0-0.2.hum1Fixed 2026-09-09RHSA-2026:66208
Red Hat Hardened Imagestrivy-main-0.74.0-0.3.hum1Fixed 2026-09-16RHSA-2026:68281
Red Hat Hardened Imagesgrype-main-0.119.0-0.1.hum1Fixed 2026-09-18RHSA-2026:68806
Red Hat Hardened Imagessyft-main-1.52.0-0.1.hum1Fixed 2026-09-18RHSA-2026:68808
Assisted Installer for Red Hat OpenShift Container Platform 2assisted/agent-preinstall-image-builder-rhel9Fix deferred
Assisted Installer for Red Hat OpenShift Container Platform 2rhai/assisted-installer-controller-rhel9Fix deferred
Builds for Red Hat OpenShiftopenshift-builds/openshift-builds-controller-rhel10Not affected
Builds for Red Hat OpenShiftopenshift-builds/openshift-builds-controller-rhel9Fix deferred
Builds for Red Hat OpenShiftopenshift-builds/openshift-builds-git-cloner-rhel10Not affected
Builds for Red Hat OpenShiftopenshift-builds/openshift-builds-git-cloner-rhel9Fix deferred
Builds for Red Hat OpenShiftopenshift-builds/openshift-builds-image-bundler-rhel10Not affected
Builds for Red Hat OpenShiftopenshift-builds/openshift-builds-image-bundler-rhel9Fix deferred
Builds for Red Hat OpenShiftopenshift-builds/openshift-builds-image-processing-rhel10Not affected
Builds for Red Hat OpenShiftopenshift-builds/openshift-builds-image-processing-rhel9Fix deferred
Builds for Red Hat OpenShiftopenshift-builds/openshift-builds-waiters-rhel10Not affected
Builds for Red Hat OpenShiftopenshift-builds/openshift-builds-waiters-rhel9Fix deferred
Builds for Red Hat OpenShiftopenshift-builds/openshift-builds-webhook-rhel10Not affected
Builds for Red Hat OpenShiftopenshift-builds/openshift-builds-webhook-rhel9Fix deferred
Compliance Operatorcompliance/openshift-compliance-must-gather-rhel8Fix deferred
Confidential Compute Attestationbuild-of-trustee/trustee-must-gather-rhel9Fix deferred
282 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-71557.

GitHub PoC

Repositories on GitHub named after this CVE or listed for it by the PoC-in-GitHub index. For those marked Harbor Check: matches CVE, Flawharbor read the code and found it implements this CVE's exploitation technique: read, not run, and its dependencies only checked for warning signs, so a pointer and no guarantee. The rest are unverified: some hold a working proof of concept, some nothing useful, and some malware made to look like one. Read the code before you run any of it. How Harbor Check reads them, and what it found.

Attack patterns (CAPEC)

  • CAPEC-64 Using Slashes and URL Encoding Combined to Bypass Validation Logic Likelihood: High · Severity: High
  • CAPEC-76 Manipulating Web Input to File System Calls Likelihood: High · Severity: Very High
  • CAPEC-78 Using Escaped Slashes in Alternate Encoding Likelihood: High · Severity: High
  • CAPEC-79 Using Slashes in Alternate Encoding Likelihood: High · Severity: High
  • CAPEC-126 Path Traversal Likelihood: High · Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON