CVE-2023-49569
CRITICAL 9.8CVSS 3.1Maliciously crafted Git server replies can lead to path traversal and RCE on go-git clients
A path traversal vulnerability was discovered in go-git versions prior to v5.11. This vulnerability allows an attacker to create and amend files across the filesystem. In the worse case scenario, remote code execution could be achieved.
Applications are only affected if they are using the ChrootOS https://pkg.go.dev/github.com/go-git/go-billy/v5/osfs#ChrootOS , which is the default when using "Plain" versions of Open and Clone funcs (e.g. PlainClone). Applications using BoundOS https://pkg.go.dev/github.com/go-git/go-billy/v5/osfs#BoundOS or in-memory filesystems are not affected by this issue.
This is a go-git implementation issue and does not affect the upstream git cli.
- Published
- 12 Jan 2024
- Last modified
- 10 Sep 2026
- Assigned by
- cve-requests@bitdefender.com
- NVD status
- Modified
- Weakness
- CWE-22
- Also known as
- GHSA-449p-3h89-pw88GO-2024-2456
- Sources
- NVDJSONOSV GHSA-449p-3h89-pw88JSONOSV GO-2024-2456JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | cve-requests@bitdefender.com (Secondary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | go-git_project | go-gitcpe:2.3:a:go-git_project:go-git:*:*:*:*:*:go:*:* |
>= 4.0.0, < 5.11.0 | 5.11.0 |
| OSV | Go | github.com/go-git/go-git/v5 | >= 5.0.0, < 5.11.0 | 5.11.0 |
| OSV | Go | gopkg.in/src-d/go-git.v4 | >= 4.0.0, <= 4.13.1 | |
| OSV | Go | gopkg.in/src-d/go-git.v4 | >= 4.7.1 |
References
- https://github.com/go-git/go-git/security/advisories/GHSA-449p-3h89-pw88 · Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2023-49569 · ADVISORY
- https://github.com/go-git/go-git · PACKAGE
History
- 25 Nov 2026 20:37 UTC · NVD: first stored (published 12 Jan 2024)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 23 Jan 2024)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 10 Jan 2024)