CVE catalog

CVE-2026-45570

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 s

[CVE catalog]

Severity
Critical · CVSS 9.6CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
Published
Source
[NVD] · [CVE record]
EPSS
0.36% · Oct 25, 2026

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.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debiangolang-github-go-git-go-gitsid5.19.2-2fixed
Debiangolang-github-go-git-go-gitforky5.19.2-2fixed
Debiangolang-github-go-git-go-gittrixie5.14.0-1vulnerable
Debiangolang-github-go-git-go-gitbookworm5.4.2-3vulnerable
Cpegolang-github-go-git-go-gitNot reportedNot reportedvulnerable
Cpego-gitNot reported5.19.1fixed
Cpego-gitNot reportedNot reportedunknown
Gogithub.com/go-git/go-gitNot reportedNot reportedunknown
Gogithub.com/go-git/go-git/v5Not reported5.19.1fixed
Gogithub.com/go-git/go-git/v6Not reported6.0.0-alpha.4fixed
Opensuseflux2-clitumbleweed2.8.8-1.1fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debiangolang-github-go-git-go-gitsourcesid5.19.1-1not yet assignedNot reportedNot reported
Debiangolang-github-go-git-go-gitsourceforky5.19.1-1not yet assignedNot reportedNot reported
Debiangolang-github-go-git-go-gitsourcetrixie(unfixed)not yet assignedNot reportedNot reported
Debiangolang-github-go-git-go-gitsourcebookworm(unfixed)not yet assignedNot reportedNot reported
Cpego-gitcpeNot reported5.19.1Not reportedNot reportedNot reported
Gogithub.com/go-git/go-git/v5GoNot reported5.19.1Not reportedNot reportedNot reported
Gogithub.com/go-git/go-git/v6GoNot reported6.0.0-alpha.4Not reportedNot reportedNot reported
Opensuseflux2-clirpmtumbleweed2.8.8-1.1Not reportedOPENSUSE-SU-2026:10831-1Not reported

Notes

[trixie] golang-github-go-git-go-git: Minor issue [bookworm] golang-github-go-git-go-git: Limited support, minor issue; SSH argument quoting

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • [go-git]Affected

    Source package: [golang-github-go-git-go-git]

    Details (2)
    • 5.4.2-3+b7 · amd64 · bookworm

      Affected

      nvd · golang-github-go-git-go-git · debian · bookworm; nvd · golang-github-go-git-go-git · debian · 12

    • 5.4.2-3+b7 · arm64 · bookworm

      Affected

      nvd · golang-github-go-git-go-git · debian · bookworm; nvd · golang-github-go-git-go-git · debian · 12

  • Source package: [golang-github-go-git-go-git]

    Details (2)
    • 5.4.2-3 · all · bookworm

      Affected

      nvd · golang-github-go-git-go-git · debian · bookworm; nvd · golang-github-go-git-go-git · debian · 12

    • 5.4.2-3 · all · bookworm

      Affected

      nvd · golang-github-go-git-go-git · debian · bookworm; nvd · golang-github-go-git-go-git · debian · 12

[Debian 13 (Trixie)]

  • [go-git]Affected

    Source package: [golang-github-go-git-go-git]

    Details (2)
    • 5.14.0-1+b3 · amd64 · trixie

      Affected

      nvd · golang-github-go-git-go-git · debian · 13

    • 5.14.0-1+b3 · arm64 · trixie

      Affected

      nvd · golang-github-go-git-go-git · debian · 13

  • Source package: [golang-github-go-git-go-git]

    Details (2)
    • 5.14.0-1 · all · trixie

      Affected

      nvd · golang-github-go-git-go-git · debian · 13

    • 5.14.0-1 · all · trixie

      Affected

      nvd · golang-github-go-git-go-git · debian · 13

[openSUSE Tumbleweed]

  • Source package: [flux2-cli]

    Details (1)
    • 2.9.4-1.1 · noarch · tumbleweed

      Unknown · Fixed: 2.8.8-1.1

      Version impact unknown

      nvd · flux2-cli · opensuse · tumbleweed

  • Source package: [flux2-cli]

    Details (1)
    • 2.9.4-1.1 · noarch · tumbleweed

      Unknown · Fixed: 2.8.8-1.1

      Version impact unknown

      nvd · flux2-cli · opensuse · tumbleweed

  • Source package: [flux2-cli]

    Details (1)
    • 2.9.4-1.1 · noarch · tumbleweed

      Unknown · Fixed: 2.8.8-1.1

      Version impact unknown

      nvd · flux2-cli · opensuse · tumbleweed

  • [flux2-cli]Fixed

    Source package: [flux2-cli]

    Details (1)
    • 2.9.4-1.1 · x86_64 · tumbleweed

      Fixed · Fixed: 2.8.8-1.1

      nvd · flux2-cli · opensuse · tumbleweed

Observed:

References