Skip to content
Fencer Vulns
critical 9.6

CVE-2026-45570 json

go-git: Improper single-quote escaping in go-git SSH transport

published 2026-05-19 5 mo ago modified 2026-09-10 1 mo ago also EUVD-2026-32546 , GHSA-m7cr-m3pv-hgrp , GO-2026-5496

cvss
9.6
version 3.1, NVD
cisa kev
Not listed
not in CISA's catalog
epss
0.4%
EPSS 0.4% chance of exploitation in 30 days, percentile 30%
public exploits
0
none known

Summary

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.

Patch / fix

  • go github.com/go-git/go-git/v5 5.19.1
  • go github.com/go-git/go-git/v6 6.0.0-alpha.4
  • go-git_project go-git 5.19.1, 6.0.0-alpha.4
  • golang-github-go-git-go-git Debian 14 5.19.1-1
  • golang-github-go-git-go-git-v6 Debian 14 6.0.0~alpha4-1

debian advisories DEBIAN-CVE-2026-45570

  • govulncheck-vulndb openSUSE Leap 16.0 0.0.20260723T184607-160000.1.1
  • flux2-cli openSUSE Tumbleweed 2.8.8-1.1

opensuse advisories openSUSE-SU-2026:21483-1openSUSE-SU-2026:10831-1

  • packer Azure Linux 3.0 1.9.5-17

azure linux advisories AZL-88800

Azure Linux vulnerability data, Copyright (c) Microsoft Corporation, from https://github.com/microsoft/AzureLinuxVulnerabilityData via OSV, under the MIT licence; changed: normalised to fixed package versions per release. MIT

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2026-45570 updated cvss 6.3

github.com/go-git/go-git: go-git: Shell command injection in SSH transport

  • Red Hat Advanced Cluster Management for Kubernetes 2.17 rhacm2/multicluster-operators-subscription-rhel9 1788976980
    fixed: vendor fix RHSA-2026:67543
  • Red Hat Advanced Cluster Management for Kubernetes 2.17 rhacm2/thanos-rhel9 1789141821, rhacm2/acm-cli-rhel9 1788568151, rhacm2/console-rhel9 1788883472, rhacm2/prometheus-rhel9 1788942592, rhacm2/acm-grafana-rhel9 1788967047, rhacm2/acm-search-v2-rhel9 1788985384, +39 more
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

CISA SSVC

Exploitation
none
Automatable
no
Technical impact
partial
Assessed
5 mo ago

Exploit prediction

0.36% chance of exploitation in the next 30 days, higher than 30% of all scored CVEs (FIRST EPSS, 2026-11-08).

CVSS scores

assigned by version score vector
CNA 4.0 2.3 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
CNA 4.0 2.3 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
NVD 3.1 9.6 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H

Affected packages

ecosystem package affected fixed in
go github.com/go-git/go-git/v5
<5.19.1
5.19.1
go github.com/go-git/go-git/v6
<6.0.0-alpha.4
6.0.0-alpha.4
go github.com/go-git/go-git
<=4.7.0
all versions
no fix listed

Affected products

  • go-git go-git

Classification

Weakness
  • CWE-116 Improper Encoding or Escaping of Output

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.

CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.