LowGO-2024-2466CVE-2023-49568GHSA-mw99-9chc-xw7r

Denial of service 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?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

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.0

Details

Denial of service in github.com/go-git/go-git/v5 and gopkg.in/src-d/go-git.v4

Is GO-2024-2466 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-49569Path traversal and RCE in github.com/go-git/go-git/v5 and gopkg.in/src-d/go-git.v4 · 23 Jan 2024
  • CriticalCVE-2023-49569Maliciously crafted Git server replies can lead to path traversal and RCE on go-git clients · 10 Jan 2024
gopkg.in/src-d/go-git.v4 security overview

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.