cve.bz

CVE-2026-45570 go-git project go-git: Improper Encoding or Escaping of Output

2.3 lowEPSS 0.4%Fix available

Low (2.3) in go-git project 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.1.

On this page
go-git is an extensible git implementation library written in pure Go. Prior to 5.19.1 and 6.0.0-alpha.4, go-git's SSH transport constructs the remote exec command by wrapping the repository path in single quotes without escaping single quotes embedded inside the path. A repository path containing a single quote can therefore break out of the quoted region in the exec command and be appended as additional shell tokens. This vulnerability is fixed in 5.19.1 and 6.0.0-alpha.4.

Severity

CVSS 4.0

2.3 low
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:L

CVSS 3.1

9.6 critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
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; 31st 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-05-28. 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-116 Improper Encoding or Escaping of Output
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-45570 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-45570?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-45570?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-45570 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 NVD's CPE matches.

ProductAffected
go-git_project:go-gitbefore 5.19.1
go-git_project:go-git6.0.0:alpha1
go-git_project:go-git6.0.0:alpha2
go-git_project:go-git6.0.0:alpha3

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-m7cr-m3pv-hgrpGogithub.com/go-git/go-git/v5<5.19.15.19.1
GHSA-m7cr-m3pv-hgrpGogithub.com/go-git/go-git/v6<6.0.0-alpha.46.0.0-alpha.4
GHSA-m7cr-m3pv-hgrpGogithub.com/go-git/go-git<=4.7.0no fix published
GO-2026-5496Gogithub.com/go-git/go-gitall versionsno fix published
GO-2026-5496Gogithub.com/go-git/go-git/v5<5.19.15.19.1
GO-2026-5496Gogithub.com/go-git/go-git/v6<6.0.0-alpha.46.0.0-alpha.4

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13golang-github-go-git-go-gitno fix listedDEBIAN-CVE-2026-45570
Debian14golang-github-go-git-go-git5.19.1-1DEBIAN-CVE-2026-45570
Debian14golang-github-go-git-go-git-v66.0.0~alpha4-1DEBIAN-CVE-2026-45570
Ubuntu25.10, 26.10, Pro:22.04:LTS and 2 moregolang-github-go-git-go-gitno fix listedUBUNTU-CVE-2026-45570
openSUSELeap 16.0govulncheck-vulndb0.0.20260723T184607-160000.1.1openSUSE-SU-2026:21483-1
openSUSETumbleweedflux2-cli2.8.8-1.1openSUSE-SU-2026:10831-1
Azure Linux3cri-ono fix listedAZL-88418
Azure Linux3packer1.9.5-17AZL-88800
Alpaquitastreamgrype0.114.0-r0BELL-CVE-2026-45570
Alpaquitastreamosv-scanner2.4.0-r0BELL-CVE-2026-45570

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

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

Moderate: A shell command injection flaw in go-git's SSH transport allows an attacker to execute arbitrary commands by providing a specially crafted repository path. This affects Red Hat Advanced Cluster Management for Kubernetes, where go-git is used for repository operations, potentially leading to compromise of the underlying system if an attacker can control the repository path. The impact is moderate due to the prerequisite of controlling the repository path.

ProductPackageStateAdvisory
Red Hat Advanced Cluster Management for Kubernetes 2.14rhacm2/multicluster-operators-subscription-rhel9:1794257780Fixed 2026-11-13RHSA-2026:99963
Red Hat Advanced Cluster Management for Kubernetes 2.15rhacm2/multicluster-operators-subscription-rhel9:1794257774Fixed 2026-11-13RHSA-2026:99964
Red Hat Advanced Cluster Management for Kubernetes 2.16rhacm2/multicluster-operators-subscription-rhel9:1794269534Fixed 2026-11-12RHSA-2026:99956
Red Hat Advanced Cluster Management for Kubernetes 2.17rhacm2/multicluster-operators-subscription-rhel9:1788976980Fixed 2026-09-15RHSA-2026:67543

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-45570.

Attack patterns (CAPEC)

  • CAPEC-73 User-Controlled Filename Likelihood: High · Severity: High
  • CAPEC-81 Web Server Logs Tampering Likelihood: Medium · Severity: High
  • CAPEC-85 AJAX Footprinting Likelihood: High · Severity: Low
  • CAPEC-104 Cross Zone Scripting Likelihood: Medium · Severity: High

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

References

Check your stackJSON