CVE-2025-21613
CVE-2025-21613 · go-git has an Argument Injection via the URL field
CVSS 9.2 · Critical · EPSS 1.3% · Fix available
Compare with your installed version
Affected products and known fixed versions are public information. Compare them with your installed version.
- go-gitNo fix published
- golang-github-go-git-go-git Debian 12No fix published
- golang-github-go-git-go-git Debian 13Update to 5.13.2-1
- golang-github-go-git-go-git Debian 14Update to 5.13.2-1
- and 2 more
Check the installed version:
dpkg-query -W -f='${source:Package} ${binary:Package} ${Version}\n' | awk '$1=="golang-github-go-git-go-git"'Assess your server’s risks
The free check gives you a rating and a risk summary by technology stack, without signing up. It does not answer whether this particular vulnerability affects you.
Monitoring matches public information against your servers’ software. Detailed findings for your servers include the order of updates.
curl -fsSL https://patchfirst.dev/check.sh | shChannels carry general technology news; monitoring reports new findings on your servers in your dashboard, through browser notifications, in Telegram or via a webhook.
This page contains facts from public vulnerability sources. Check the original advisory before updating.
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.
- Published
- Updated
Fixes in distributions
- RHSA-2025:3344 · Red Hat Enterprise Linux 9 appstream ·
- openSUSE-SU-2026:12626-1 · openSUSE Tumbleweed ·
- openSUSE-SU-2026:21483-1 · openSUSE Leap 16.0 ·
- USN-8088-1 · Ubuntu Pro 22.04 LTS, Ubuntu Pro 24.04 LTS ·
- openSUSE-SU-2025:20177-1 · openSUSE Leap 16.0 ·
- openSUSE-SU-2025:15487-1 · openSUSE Tumbleweed ·
- openSUSE-SU-2025:15438-1 · openSUSE Tumbleweed ·
- openSUSE-SU-2025:14902-1 · openSUSE Tumbleweed ·
- SUSE-SU-2025:0624-1 · SUSE Manager Client Tools 15 ·
- SUSE-SU-2025:0623-1 · openSUSE Leap 15.6, SUSE Linux Enterprise Module for Package Hub 15 SP6 ·
- SUSE-SU-2025:0622-1 · SUSE Manager Client Tools 12 ·
- SUSE-SU-2025:0601-1 · openSUSE Leap 15.6, SUSE Linux Enterprise Module for Desktop Applications 15 SP6 ·
- RLSA-2025:0401 · Rocky Linux 8 ·
- openSUSE-SU-2025:14752-1 · openSUSE Tumbleweed ·
- openSUSE-SU-2025:0056-1 · openSUSE Leap 15.6, SUSE Package Hub 15 SP6 ·
- openSUSE-SU-2025:14713-1 · openSUSE Tumbleweed ·
- SUSE-SU-2025:0277-1 · openSUSE Leap 15.6, SUSE Linux Enterprise Module for Public Cloud 15 SP3, SUSE Linux Enterprise Module for Public Cloud 15 SP4, SUSE Linux Enterprise Module for Public Cloud 15 SP5, SUSE Linux Enterprise Module for Public Cloud 15 SP6 ·
- RHSA-2025:0662 · Red Hat rhel eus 9.4 appstream ·
- RHSA-2025:0401 · Red Hat Enterprise Linux 8 appstream ·
- SUSE-SU-2025:0191-1 · SUSE Linux Enterprise Module for Public Cloud 12 ·
- ALSA-2025:0401 · AlmaLinux 8 ·
- openSUSE-SU-2025:14658-1 · openSUSE Tumbleweed ·
- openSUSE-SU-2025:14654-1 · openSUSE Tumbleweed ·
- SUSE-SU-2025:0060-1 · openSUSE Leap 15.6, SUSE Linux Enterprise Module for Package Hub 15 SP6 ·
- openSUSE-SU-2025:14624-1 · openSUSE Tumbleweed ·
Stack: system
Affected products and versions
go-git
- Versions
- >= 4.0.0, < 5.13.0: Affected
No fix published
golang-github-go-git-go-git Debian 12
- Versions
- 5.11.0-1
- 5.11.0-2
- 5.11.0-3
- 5.11.0-4
- 5.12.0-1
- 5.13.2-1
All versions (13)
- 5.14.0-1
- 5.16.2-1
- 5.17.0-1
- 5.17.1-1
- 5.19.1-1
- 5.4.2-3
- 5.4.2-4
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
golang-github-go-git-go-git Debian 13
- Affected ranges
- ECOSYSTEM: < 5.13.2-1
Update to 5.13.2-1
golang-github-go-git-go-git Debian 14
- Affected ranges
- ECOSYSTEM: < 5.13.2-1
Update to 5.13.2-1
golang-github-go-git-go-git Ubuntu Pro 22.04 LTS
- Versions
- 5.4.2-3
- Affected ranges
- ECOSYSTEM: < 5.4.2-3ubuntu0.1~esm1
Update to 5.4.2-3ubuntu0.1~esm1
golang-github-go-git-go-git Ubuntu Pro 24.04 LTS
- Versions
- 5.4.2-3build1
- 5.4.2-4
- 5.4.2-4ubuntu0.24.04.1
- 5.4.2-4ubuntu0.24.04.2
- 5.4.2-4ubuntu0.24.04.2+esm1
- 5.4.2-4ubuntu0.24.04.3
All versions (7)
- 5.4.2-4ubuntu0.24.04.3+esm1
- Affected ranges
- ECOSYSTEM: < 5.4.2-4ubuntu0.24.04.3+esm2
Update to 5.4.2-4ubuntu0.24.04.3+esm2