LowGO-2024-2456CVE-2023-49569GHSA-449p-3h89-pw88
Path traversal and RCE in github.com/go-git/go-git/v5 and gopkg.in/src-d/go-git.v4
Published 23 Jan 2024 · Updated 4 Feb 2026
Is your project on an affected gopkg.in/src-d/go-git.v4?
Look after several Go apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Affected packages
- Affected
- >=4.7.1
- Fixed in
- No fix released
- Affected
- >=5.0.0 <5.11.0
- Fixed in
- 5.11.0
Update to the fixed version for your release line, for example:
go get github.com/go-git/go-git/v5@v5.11.0Details
Path traversal and RCE in github.com/go-git/go-git/v5 and gopkg.in/src-d/go-git.v4
Is GO-2024-2456 in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected gopkg.in/src-d/go-git.v4, and gives you the command that fixes it.
More advisories for gopkg.in/src-d/go-git.v4
- LowCVE-2025-21613Argument Injection via the URL field in github.com/go-git/go-git · 7 Jan 2025
- LowCVE-2025-21614Clients vulnerable to DoS via maliciously crafted Git server replies in github.com/go-git/go-git · 7 Jan 2025
- HighCVE-2025-21614go-git clients vulnerable to DoS via maliciously crafted Git server replies · 6 Jan 2025
- CriticalCVE-2025-21613go-git has an Argument Injection via the URL field · 6 Jan 2025
- LowCVE-2023-49568Denial of service in github.com/go-git/go-git/v5 and gopkg.in/src-d/go-git.v4 · 23 Jan 2024
- HighCVE-2023-49568Maliciously crafted Git server replies can cause DoS on go-git clients · 27 Dec 2023
References
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.