Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. gopkg.in/src-d/go-git.v4
  4. ›
  5. CVE-2025-21613

CVE-2025-21613: go-git has an Argument Injection via the URL field

January 6, 2025

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.

References

  • github.com/advisories/GHSA-v725-9546-7q7m
  • github.com/go-git/go-git
  • github.com/go-git/go-git/security/advisories/GHSA-v725-9546-7q7m
  • nvd.nist.gov/vuln/detail/CVE-2025-21613

Code Behaviors & Features

Detect and mitigate CVE-2025-21613 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions starting from 4.0.0 up to 4.13.1

Solution

Unfortunately, there is no solution available yet.

Source file

go/gopkg.in/src-d/go-git.v4/CVE-2025-21613.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:28 +0000.