CVE-2026-45571 go-git: Crafted repositories may modify main and submodule .git directories
MediumCVSS 5.4
EPSS 0.30%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
- Technology
- UbuntuDebianRed Hat
Description
go-git is an extensible git implementation library written in pure Go. Prior to 5.19.1 and 6.0.0-alpha.4, a path validation issue in go-git could allow crafted repository data to affect files outside the intended checkout target, including the repository's .git directory. These validations were introduced in upstream Git years ago, so the vulnerability arose from go-git drifting from those checks. This vulnerability is fixed in 5.19.1 and 6.0.0-alpha.4.
Upgrade path
39 packages: 4 fixed, 1 partially fixed, 33 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| debian/golang-github-go-git-go-git(Debian 12) | = 5.4.2-3; = 5.4.2-4; = 5.11.0-1; = 5.11.0-2 +11 more | No fix listed | No fix yet |
| debian/golang-github-go-git-go-git(Debian 13) | = 5.14.0-1; = 5.16.2-1; = 5.17.0-1; = 5.17.1-1 +3 more | No fix listed | No fix yet |
| redhat/odf4/cephcsi-rhel9-operator:1782931768(Red Hat openshift_data_foundation 4.22 el9) | All versions | No fix listed | No fix yet |
| redhat/odf4/cephcsi-rhel9:1782932114(Red Hat openshift_data_foundation 4.22 el9) | All versions | No fix listed | No fix yet |
| redhat/odf4/devicefinder-rhel9:1782932104(Red Hat openshift_data_foundation 4.22 el9) | All versions | No fix listed | No fix yet |
| redhat/odf4/mcg-core-rhel9:1783536000(Red Hat openshift_data_foundation 4.22 el9) | All versions | No fix listed | No fix yet |
| redhat/odf4/mcg-rhel9-operator:1783535989(Red Hat openshift_data_foundation 4.22 el9) | All versions | No fix listed | No fix yet |
| redhat/odf4/ocs-client-console-rhel9:1783536515(Red Hat openshift_data_foundation 4.22 el9) | All versions | No fix listed | No fix yet |
| redhat/odf4/ocs-client-rhel9-operator:1782932521(Red Hat openshift_data_foundation 4.22 el9) | All versions | No fix listed | No fix yet |
| redhat/odf4/ocs-metrics-exporter-rhel9:1783018461(Red Hat openshift_data_foundation 4.22 el9) | All versions | No fix listed | No fix yet |
| redhat/odf4/ocs-rhel9-operator:1783018421(Red Hat openshift_data_foundation 4.22 el9) | All versions | No fix listed | No fix yet |
| redhat/odf4/odf-blackbox-exporter-rhel9:1782932812(Red Hat openshift_data_foundation 4.22 el9) | All versions | No fix listed | No fix yet |
| redhat/odf4/odf-cli-rhel9:1783537001(Red Hat openshift_data_foundation 4.22 el9) | All versions | No fix listed | No fix yet |
| redhat/odf4/odf-cloudnative-pg-rhel9-operator:1782932919(Red Hat openshift_data_foundation 4.22 el9) | All versions | No fix listed | No fix yet |
| redhat/odf4/odf-console-rhel9:1783537586(Red Hat openshift_data_foundation 4.22 el9) | All versions | No fix listed | No fix yet |
| redhat/odf4/odf-cosi-sidecar-rhel9:1782932969(Red Hat openshift_data_foundation 4.22 el9) | All versions | No fix listed | No fix yet |
| redhat/odf4/odf-csi-addons-rhel9-operator:1782933015(Red Hat openshift_data_foundation 4.22 el9) | All versions | No fix listed | No fix yet |
| redhat/odf4/odf-csi-addons-sidecar-rhel9:1782933042(Red Hat openshift_data_foundation 4.22 el9) | All versions | No fix listed | No fix yet |
| redhat/odf4/odf-drbd-rhel9:1783537392(Red Hat openshift_data_foundation 4.22 el9) | All versions | No fix listed | No fix yet |
| redhat/odf4/odf-external-snapshotter-rhel9-operator:1782933235(Red Hat openshift_data_foundation 4.22 el9) | All versions | No fix listed | No fix yet |
| redhat/odf4/odf-external-snapshotter-sidecar-rhel9:1782933251(Red Hat openshift_data_foundation 4.22 el9) | All versions | No fix listed | No fix yet |
| redhat/odf4/odf-multicluster-console-rhel9:1783537955(Red Hat openshift_data_foundation 4.22 el9) | All versions | No fix listed | No fix yet |
| redhat/odf4/odf-multicluster-rhel9-operator:1782933417(Red Hat openshift_data_foundation 4.22 el9) | All versions | No fix listed | No fix yet |
| redhat/odf4/odf-must-gather-rhel9:1783537742(Red Hat openshift_data_foundation 4.22 el9) | All versions | No fix listed | No fix yet |
| redhat/odf4/odf-rhel9-operator:1782933602(Red Hat openshift_data_foundation 4.22 el9) | All versions | No fix listed | No fix yet |
| redhat/odf4/odr-rhel9-operator:1783019377(Red Hat openshift_data_foundation 4.22 el9) | All versions | No fix listed | No fix yet |
| redhat/odf4/odr-volsync-plugin-mover-rhel9:1782934054(Red Hat openshift_data_foundation 4.22 el9) | All versions | No fix listed | No fix yet |
| redhat/odf4/odr-volsync-plugin-rhel9-operator:1782934036(Red Hat openshift_data_foundation 4.22 el9) | All versions | No fix listed | No fix yet |
| redhat/odf4/rook-ceph-rhel9-operator:1782934284(Red Hat openshift_data_foundation 4.22 el9) | All versions | No fix listed | No fix yet |
| ubuntu/golang-github-go-git-go-git(Ubuntu 22.04) | All versions | No fix listed | No fix yet |
… and 9 more packages.
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| go-git | = < 5.19.1 | No fix listed |
| go-git | = >= 6.0.0-alpha.1, < 6.0.0-alpha.4 | No fix listed |
| go-git(Go) | < 5.19.1 | 5.19.1 |
| go-git(Go) | < 6.0.0-alpha.4 | 6.0.0-alpha.4 |
| go-git(Go) | <= 44.7.0 | No fix listed |
| go-git(Go) | <= 5.19.0 | No fix listed |
| go-git(Go) | <= 6.0.0-alpha.3 | No fix listed |
| redhat/odf4/cephcsi-rhel9:1782932114(Red Hat:openshift_data_foundation:4.22::el9) | All versions | No fix listed |
| redhat/odf4/cephcsi-rhel9-operator:1782931768(Red Hat:openshift_data_foundation:4.22::el9) | All versions | No fix listed |
| redhat/odf4/devicefinder-rhel9:1782932104(Red Hat:openshift_data_foundation:4.22::el9) | All versions | No fix listed |
| redhat/odf4/mcg-core-rhel9:1783536000(Red Hat:openshift_data_foundation:4.22::el9) | All versions | No fix listed |
| redhat/odf4/mcg-rhel9-operator:1783535989(Red Hat:openshift_data_foundation:4.22::el9) | All versions | No fix listed |
| redhat/odf4/ocs-client-console-rhel9:1783536515(Red Hat:openshift_data_foundation:4.22::el9) | All versions | No fix listed |
| redhat/odf4/ocs-client-rhel9-operator:1782932521(Red Hat:openshift_data_foundation:4.22::el9) | All versions | No fix listed |
| redhat/odf4/ocs-metrics-exporter-rhel9:1783018461(Red Hat:openshift_data_foundation:4.22::el9) | All versions | No fix listed |
| redhat/odf4/ocs-rhel9-operator:1783018421(Red Hat:openshift_data_foundation:4.22::el9) | All versions | No fix listed |
| redhat/odf4/odf-blackbox-exporter-rhel9:1782932812(Red Hat:openshift_data_foundation:4.22::el9) | All versions | No fix listed |
| redhat/odf4/odf-cli-rhel9:1783537001(Red Hat:openshift_data_foundation:4.22::el9) | All versions | No fix listed |
| redhat/odf4/odf-cloudnative-pg-rhel9-operator:1782932919(Red Hat:openshift_data_foundation:4.22::el9) | All versions | No fix listed |
| redhat/odf4/odf-console-rhel9:1783537586(Red Hat:openshift_data_foundation:4.22::el9) | All versions | No fix listed |
| redhat/odf4/odf-cosi-sidecar-rhel9:1782932969(Red Hat:openshift_data_foundation:4.22::el9) | All versions | No fix listed |
| redhat/odf4/odf-csi-addons-rhel9-operator:1782933015(Red Hat:openshift_data_foundation:4.22::el9) | All versions | No fix listed |
| redhat/odf4/odf-csi-addons-sidecar-rhel9:1782933042(Red Hat:openshift_data_foundation:4.22::el9) | All versions | No fix listed |
| redhat/odf4/odf-drbd-rhel9:1783537392(Red Hat:openshift_data_foundation:4.22::el9) | All versions | No fix listed |
| redhat/odf4/odf-external-snapshotter-rhel9-operator:1782933235(Red Hat:openshift_data_foundation:4.22::el9) | All versions | No fix listed |
Show 50 more
| Product | Affected versions | Fixed in |
|---|---|---|
| redhat/odf4/odf-external-snapshotter-sidecar-rhel9:1782933251(Red Hat:openshift_data_foundation:4.22::el9) | All versions | No fix listed |
| redhat/odf4/odf-multicluster-console-rhel9:1783537955(Red Hat:openshift_data_foundation:4.22::el9) | All versions | No fix listed |
| redhat/odf4/odf-multicluster-rhel9-operator:1782933417(Red Hat:openshift_data_foundation:4.22::el9) | All versions | No fix listed |
| redhat/odf4/odf-must-gather-rhel9:1783537742(Red Hat:openshift_data_foundation:4.22::el9) | All versions | No fix listed |
| redhat/odf4/odf-rhel9-operator:1782933602(Red Hat:openshift_data_foundation:4.22::el9) | All versions | No fix listed |
| redhat/odf4/odr-rhel9-operator:1783019377(Red Hat:openshift_data_foundation:4.22::el9) | All versions | No fix listed |
| redhat/odf4/odr-volsync-plugin-mover-rhel9:1782934054(Red Hat:openshift_data_foundation:4.22::el9) | All versions | No fix listed |
| redhat/odf4/odr-volsync-plugin-rhel9-operator:1782934036(Red Hat:openshift_data_foundation:4.22::el9) | All versions | No fix listed |
| redhat/odf4/rook-ceph-rhel9-operator:1782934284(Red Hat:openshift_data_foundation:4.22::el9) | All versions | No fix listed |
| debian/golang-github-go-git-go-git(Debian:12) | All versions | No fix listed |
| debian/golang-github-go-git-go-git(Debian:12) | = 5.11.0-1 | No fix listed |
| debian/golang-github-go-git-go-git(Debian:12) | = 5.11.0-2 | No fix listed |
| debian/golang-github-go-git-go-git(Debian:12) | = 5.11.0-3 | No fix listed |
| debian/golang-github-go-git-go-git(Debian:12) | = 5.11.0-4 | No fix listed |
| debian/golang-github-go-git-go-git(Debian:12) | = 5.12.0-1 | No fix listed |
| debian/golang-github-go-git-go-git(Debian:12) | = 5.13.2-1 | No fix listed |
| debian/golang-github-go-git-go-git(Debian:12) | = 5.14.0-1 | No fix listed |
| debian/golang-github-go-git-go-git(Debian:12) | = 5.16.2-1 | No fix listed |
| debian/golang-github-go-git-go-git(Debian:12) | = 5.17.0-1 | No fix listed |
| debian/golang-github-go-git-go-git(Debian:12) | = 5.17.1-1 | No fix listed |
| debian/golang-github-go-git-go-git(Debian:12) | = 5.19.1-1 | No fix listed |
| debian/golang-github-go-git-go-git(Debian:12) | = 5.19.2-1 | No fix listed |
| debian/golang-github-go-git-go-git(Debian:12) | = 5.4.2-3 | No fix listed |
| debian/golang-github-go-git-go-git(Debian:12) | = 5.4.2-4 | No fix listed |
| debian/golang-github-go-git-go-git(Debian:13) | All versions | No fix listed |
| debian/golang-github-go-git-go-git(Debian:13) | = 5.14.0-1 | No fix listed |
| debian/golang-github-go-git-go-git(Debian:13) | = 5.16.2-1 | No fix listed |
| debian/golang-github-go-git-go-git(Debian:13) | = 5.17.0-1 | No fix listed |
| debian/golang-github-go-git-go-git(Debian:13) | = 5.17.1-1 | No fix listed |
| debian/golang-github-go-git-go-git(Debian:13) | = 5.19.1-1 | No fix listed |
| debian/golang-github-go-git-go-git(Debian:13) | = 5.19.2-1 | No fix listed |
| debian/golang-github-go-git-go-git(Debian:14) | < 5.19.1-1 | 5.19.1-1 |
| debian/golang-github-go-git-go-git(Debian:14) | = 5.14.0-1 | No fix listed |
| debian/golang-github-go-git-go-git(Debian:14) | = 5.16.2-1 | No fix listed |
| debian/golang-github-go-git-go-git(Debian:14) | = 5.17.0-1 | No fix listed |
| debian/golang-github-go-git-go-git(Debian:14) | = 5.17.1-1 | No fix listed |
| debian/golang-github-go-git-go-git-v6(Debian:14) | < 6.0.0~alpha4-1 | 6.0.0~alpha4-1 |
| debian/golang-github-go-git-go-git-v6(Debian:14) | = 6~git20260305.2083cf94-1 | No fix listed |
| debian/golang-github-go-git-go-git-v6(Debian:14) | = 6~git20260305.2083cf94-2 | No fix listed |
| debian/golang-github-go-git-go-git-v6(Debian:14) | = 6~git20260305.2083cf94-3 | No fix listed |
| ubuntu/golang-github-go-git-go-git(Ubuntu:22.04) | All versions | No fix listed |
| ubuntu/golang-github-go-git-go-git(Ubuntu:24.04) | All versions | No fix listed |
| ubuntu/golang-github-go-git-go-git(Ubuntu:26.04) | All versions | No fix listed |
| ubuntu/golang-github-go-git-go-git(Ubuntu:26.10) | All versions | No fix listed |
| go-git project go-git | < 5.19.1 | 5.19.1 |
| go-git project go-git | = 6.0.0-alpha1 | No fix listed |
| go-git project go-git | = 6.0.0-alpha2 | No fix listed |
| go-git project go-git | = 6.0.0-alpha3 | No fix listed |
| azure linux packer(Azure Linux:3.0) | All versions | No fix listed |
| azure linux packer(Azure Linux:3.0) | < 1.9.5-17 | 1.9.5-17 |
References
- https://github.com/go-git/go-git/security/advisories/GHSA-crhj-59gh-8x96 vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com product
- MSRC Security Update Guide vendor-advisory
- CBL-Mariner Releases vendor-advisory
- github.com
- github.com
- Red Hat CVE page vendor-advisory
- RHSA-2026:37387 patch vendor-advisory
- Red Hat Bugzilla 2482228 issue-tracking
- www.cve.org
- Debian Security Tracker CVE-2026-45571 vendor-advisory
- Ubuntu CVE tracker vendor-advisory