CVE-2025-21613

CRITICAL

go-git <5.13 - Command Injection

Title source: llm

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.

Scores

CVSS v3 9.8
EPSS 0.0286
EPSS Percentile 86.1%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Classification

CWE
CWE-88
Status published

Affected Products (3)

go-git_project/go-git < 5.13.0
src-d/go-git.v4 Go
go-git/go-git < 5.13.0Go

Timeline

Published Jan 06, 2025
Tracked Since Feb 18, 2026