CVE-2023-49569
published critical CVSS 3.1 · 9.8Maliciously crafted Git server replies can lead to path traversal and RCE on go-git clients
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| go-git | — | go-git5.11.0 · Other versions: unaffected | Affected | Not stated | Bitdefender |
| Amazon Linux | AL2 | Release evaluationALAS2-2024-2458 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2024-526 | Fixed | Not stated | Amazon Linux assessment |
| Ubuntu | jammy | go-git | Advisory build | 5.4.2-3ubuntu0.1~esm1 | USN-8088-1 |
| Amazon Linux | AL2 | amazon-ssm-agentaarch64 | Listed in advisory | Not stated | ALAS2-2024-2458 |
| Ubuntu | noble | go-git | Advisory build | 5.4.2-4ubuntu0.24.04.3+esm2 | USN-8088-1 |
| Ubuntu | jammy | golang-github-go-git-go-git | Advisory build | 5.4.2-3ubuntu0.1~esm1 | USN-8088-1 |
| Ubuntu | jammy | golang-github-go-git-go-git-dev | Advisory build | 5.4.2-3ubuntu0.1~esm1 | USN-8088-1 |
Show 7 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Ubuntu | noble | golang-github-go-git-go-git | Advisory build | 5.4.2-4ubuntu0.24.04.3+esm2 | USN-8088-1 |
| Ubuntu | noble | golang-github-go-git-go-git-dev | Advisory build | 5.4.2-4ubuntu0.24.04.3+esm2 | USN-8088-1 |
| Amazon Linux | AL2 | amazon-ssm-agentsrc | Listed in advisory | Not stated | ALAS2-2024-2458 |
| Amazon Linux | AL2 | amazon-ssm-agentx86_64 | Listed in advisory | Not stated | ALAS2-2024-2458 |
| Amazon Linux | AL2023 | amazon-ssm-agentaarch64 | Listed in advisory | Not stated | ALAS2023-2024-526 |
| Amazon Linux | AL2023 | amazon-ssm-agentsrc | Listed in advisory | Not stated | ALAS2023-2024-526 |
| Amazon Linux | AL2023 | amazon-ssm-agentx86_64 | Listed in advisory | Not stated | ALAS2023-2024-526 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 9.8 / 10
- Severity
- critical
- Provider
- Bitdefender · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Scenarios
- en: GENERAL
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| go-git | go-git | 5.11.0 (affected)Default: unaffected | Bitdefender · cna |
Weaknesses
1- CWE-22 CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
References
1Provider assertions
3Bitdefender · cna
Maliciously crafted Git server replies can lead to path traversal and RCE on go-git clients
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- e1eb2a0d271d103634a3a381b6e2fe7b87d8a83a63b553f9421c9553d8e11012
- Ingested
- 23 Sep 2026, 08:13:25 UTC
- Source record
- Official CVE record