PT-2025-1014 · Go-Git+9 · Go-Git+9

Vin01

·

Published

2025-01-06

·

Updated

2026-03-12

·

CVE-2025-21613

CVSS v3.1

9.8

Critical

VectorAV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Name of the Vulnerable Software and Affected Versions go-git versions prior to v5.13
Description An argument injection vulnerability was discovered in go-git. The 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.
Recommendations For go-git versions prior to v5.13, upgrade to version 5.13.0 to mitigate this vulnerability. As a temporary workaround, consider enforcing strict validation rules for values passed in the URL field. Restrict access to the file transport protocol to minimize the risk of exploitation. Avoid using the file transport protocol until the issue is resolved.

Exploit

Fix

Argument Injection

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

ALSA-2025:0401
ALSA-2025_0401
ALSA-2025_16880
AZL-55060
AZL-55067
AZL-55088
AZL-55094
BDU:2025-00210
CESA-2025_0401
CVE-2025-21613
ECHO-51C8-55E9-1317
GHSA-V725-9546-7Q7M
GO-2025-3368
INFSA-2025_0401
OPENSUSE-SU-2025:0056-1
OPENSUSE-SU-2025:14624-1
OPENSUSE-SU-2025:14654-1
OPENSUSE-SU-2025:14658-1
OPENSUSE-SU-2025:14713-1
OPENSUSE-SU-2025:14752-1
OPENSUSE-SU-2025:14902-1
OPENSUSE-SU-2025:15438-1
OPENSUSE-SU-2025:15487-1
OPENSUSE-SU-2025:20117-1
OPENSUSE-SU-2025:20177-1
OPENSUSE-SU-2025_0060-1
OPENSUSE-SU-2025_0277-1
OPENSUSE-SU-2025_0601-1
OPENSUSE-SU-2025_0623-1
OPENSUSE-SU-2026:20654-1
OPENSUSE-SU-2026:20798-1
RHSA-2025:0401
RHSA-2025:0662
RHSA-2025_0401
RLSA-2025:0401
SUSE-SU-2025:0060-1
SUSE-SU-2025:0191-1
SUSE-SU-2025:0277-1
SUSE-SU-2025:0601-1
SUSE-SU-2025:0622-1
SUSE-SU-2025:0623-1
SUSE-SU-2025:0624-1
SUSE-SU-2025_0191-1
SUSE-SU-2025_0277-1
USN-8088-1

Affected Products

Almalinux
Centos
Debian
Linuxmint
Red Hat
Red Os
Rocky Linux
Suse
Ubuntu
Go-Git