# CVE-2023-49569: GO-2024-2456 - Path traversal and RCE in github.com/go-git/go-git/v5 and gopkg.in/src-d/go-git.v4

Source: https://junglewise.ai/threats/cve-2023-49569-maliciously-crafted-git-server-replies-can-lead-to-path-traversal  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2024-01-23  
License: CC BY 4.0 with a link back

CVE-2023-49569 · Severity: low · CVSS 3.1 · Published 2024-01-23

Path traversal and RCE in github.com/go-git/go-git/v5 and gopkg.in/src-d/go-git.v4

Technologies: [github.com/go-git/go-git/v5 (Go)](https://junglewise.ai/threats/technologies/github-com-go-git-go-git-v5), [gopkg.in/src-d/go-git.v4 (Go)](https://junglewise.ai/threats/technologies/gopkg-in-src-d-go-git-v4). Vendors: [Go](https://junglewise.ai/threats/vendors/go).

## Quick answers

**Is CVE-2023-49569 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2023-49569 being exploited in the wild.

**How severe is CVE-2023-49569?** Low severity, with a CVSS score of 3.1, published 23 January 2024.

**Which products and versions are affected?** github.com/go-git/go-git/v5 (Go) SEMVER:introduced=5.0.0,fixed=5.11.0; gopkg.in/src-d/go-git.v4 (Go) SEMVER:introduced=4.0.0,last_affected=4.13.1, SEMVER:introduced=4.7.1.

**Is there a fix for CVE-2023-49569?** Yes. github.com/go-git/go-git/v5 (Go): upgrade to 5.11.0 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2023-49569?** Check whether you run github.com/go-git/go-git/v5 (Go) or gopkg.in/src-d/go-git.v4 (Go) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- github.com/go-git/go-git/v5 (Go): upgrade to 5.11.0 or later

  ```sh
  go get github.com/go-git/go-git/v5@v5.11.0
  ```


## Affected products

- github.com/go-git/go-git/v5 (Go) SEMVER:introduced=5.0.0,fixed=5.11.0
- gopkg.in/src-d/go-git.v4 (Go) SEMVER:introduced=4.0.0,last_affected=4.13.1, SEMVER:introduced=4.7.1

## Identifiers

- CVE-2023-49569
- GHSA-449p-3h89-pw88
- GO-2024-2456

## Related threats

- [go-git path traversal via malicious reference names](https://junglewise.ai/threats/cve-2026-71557-go-git-path-traversal-via-malicious-reference-names)
- [go-git symlink traversal in worktree operations](https://junglewise.ai/threats/cve-2026-71556-go-git-symlink-traversal-in-worktree-operations)
- [GO-2026-5693 - Go-git: Malformed Git object data may cause panics or resource exhaustion in github.com/go-git/go-git](https://junglewise.ai/threats/go-2026-5693-go-git-malformed-git-object-data-may-cause-panics-or-9c82fa09)
- [go-git DoS via malformed Git object data](https://junglewise.ai/threats/go-git-dos-via-malformed-git-object-data-a3075e9b)
- [go-git path traversal via crafted repository data](https://junglewise.ai/threats/cve-2026-45571-go-git-path-traversal-via-crafted-repository-data)
