CVE-2025-21613

Aliases:GHSA-v725-9546-7q7mGO-2025-3368
Analyzed
Published: 06 Jan 2025, 16:13
Last modified:06 Jan 2025, 16:45

Vulnerability Summary

Overall Risk (default)
high
70/100
CVSS Score
9.8 CRITICAL
v3.1 (cve.org)
EPSS Score
3.83% LOW
4% probability +3.24%
KEV
Not listed
Ransomware
No reports
Public exploits
None found
Dark Web
Not detected

Timeline

06 Jan 2025, 16:13
Published
Vulnerability first disclosed
06 Jan 2025, 16:45
Last Modified
Vulnerability information updated

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.

CVSS Metrics

  • v4.0CRITICALScore: 9.2CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/U:Clear
  • v4.0CRITICALScore: 9.2CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:Clear
  • v3.1CRITICALScore: 9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

EPSS Trends

Current EPSS score: 3.83% Percentile: 88%

Techniques & Countermeasures

  • CWE-88Improper Neutralization of Argument Delimiters in a Command ('Argument Injection')

    The product constructs a string for a command to be executed by a separate component in another control sphere, but it does not properly delimit the intended arguments, options, or switches within that command string.

Affected Systems

  • go-git_projectgo-git

    < 5.13.0

  • go-gitgo-git

    ≥ 4.0.0, < 5.13.0

  • github.com/go-git/go-gitv4

    ≥ 4.0.0

  • github.com/go-git/go-gitv5

    < 5.13.0

  • gopkg.in/src-dgo-git.v4

    ≥ 4.0.0, ≤ 4.13.1 | ≥ 4.0.0

References (3)