CVE-2025-21613
Description
go-git is a highly extensible git implementation library written in pure Go. An argument injection vulnerability was discovered in go-git versions prior to v5.13. Successful exploitation of this vulnerability could allow an attacker to set arbitrary values to git-upload-pack flags. This only happens when the file transport protocol is being used, as that is the only protocol that shells out to git binaries. This vulnerability is fixed in 5.13.0.
Predictions
Heuristic predictions, AS-IS, for prioritization only.
Mitigations
No mitigations published for this CVE yet.
The vendor-content worker queues fetches as references arrive (check back in a few minutes). Or โ if you've already worked around this in production โ publish your fix to the community-verified tier.
โ Propose a mitigation on Community โ Mitigations published via the community go through AI scoring + 2 human reviewers + 7-day silent objection window before landing here withsource_tier=community-verified.
OS impact
SUSE Affected 1 release
| Version | Status | Fixed in |
|---|---|---|
| โ | Affected | โ |
Debian Mixed 4 releases
| Version | Status | Fixed in |
|---|---|---|
| trixie | Fixed | 5.13.2-1 |
| sid | Fixed | 5.13.2-1 |
| forky | Fixed | 5.13.2-1 |
| bookworm | Affected | โ |
Red Hat Fixed 1 release
| Version | Status | Fixed in |
|---|---|---|
| 8 | Fixed | โ |
Rocky Linux Fixed 1 release
| Version | Status | Fixed in |
|---|---|---|
| 8 | Fixed | โ |
Package impact
| Ecosystem | Package | Vulnerable | Fixed |
|---|---|---|---|
| Go | gopkg.in/src-d/go-git.v4 | >=4.0.0,<=4.13.1 | |
| Go | github.com/go-git/go-git/v5 | <5.13.0 | 5.13.0 |
| Go | github.com/go-git/go-git/v4 | >=4.0.0 | |
| Go | gopkg.in/src-d/go-git.v4 | >=4.0.0 | |
References
- https://errata.rockylinux.org/RLSA-2025:0401
- https://github.com/go-git/go-git/security/advisories/GHSA-v725-9546-7q7m
- https://nvd.nist.gov/vuln/detail/CVE-2025-21613
- https://github.com/go-git/go-git
- https://security-tracker.debian.org/tracker/CVE-2025-21613
- https://www.suse.com/security/cve/CVE-2025-21613.html
- https://access.redhat.com/errata/RHSA-2025:0401
- https://bugzilla.redhat.com/2335888
- https://bugzilla.redhat.com/2335901
- https://errata.almalinux.org/8/ALSA-2025-0401.html
Community-verified mitigations for this CVE will appear above when contributors publish them.
Verify integrity in audit chain (admin only). AS-IS.