Vulnerability · Published Jan 12, 2024 · Assigned by Bitdefender
CVE-2023-49569Maliciously crafted Git server replies can lead to path traversal and RCE on go-git clients
Critical 9.8
In plain English
A critical-severity path traversal in go-git from go-git. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.5% (higher than 75% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | golang-github-go-git-go-git | no fix listed | DEBIAN-CVE-2023-49569 |
| Debian:13 | golang-github-go-git-go-git | 5.11.0-1 | DEBIAN-CVE-2023-49569 |
| Debian:14 | golang-github-go-git-go-git | 5.11.0-1 | DEBIAN-CVE-2023-49569 |
| Go | github.com/go-git/go-git/v5 | 5.11.0 | GO-2024-2456 |
| Go | github.com/go-git/go-git/v5 | 5.11.0 | GHSA-449p-3h89-pw88 |
| Go | gopkg.in/src-d/go-git.v4 | no fix listed | GO-2024-2456 |
| Go | gopkg.in/src-d/go-git.v4 | no fix listed | GHSA-449p-3h89-pw88 |
Affected products (as reported)
Weakness: CWE-22 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H