{"id":"CVE-2023-49569","published":"2024-01-12T10:41:00Z","modified":"2024-11-14T14:34:02Z","title":"Maliciously crafted Git server replies can lead to path traversal and RCE on go-git clients","vendor":"go-git","product":"go-git","tier":"tail","description":{"text":"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.\n\nApplications 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.\nThis is a go-git implementation issue and does not affect the upstream git cli.\n\n\n","provenance":"source","from":"CVE.org"},"cvss":{"score":9.8,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0151,"percentile":0.7507,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://github.com/go-git/go-git/security/advisories/GHSA-449p-3h89-pw88","tags":[]}],"priority":{"score":21.9,"factors":[{"name":"EPSS percentile","points":15.01},{"name":"CVSS severity","points":6.86}]},"vendorSlug":"go-git","affectedVersions":[{"vendor":"go-git","product":"go-git","versions":["5.11.0"]}],"solutions":{"items":["An update to version 5.11 fixes the issue"],"from":"CVE.org CNA","provenance":"source"},"capec":[{"id":"CAPEC-126","name":"Path Traversal"}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"total","timestamp":"2024-01-18T19:36:00.641066Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/go-git/go-git/v5","vulnerableRanges":[">=5.0.0, <5.11.0"],"patched":["5.11.0"],"from":["GHSA-449p-3h89-pw88","GO-2024-2456"],"provenance":"source"},{"ecosystem":"Go","package":"gopkg.in/src-d/go-git.v4","vulnerableRanges":[">=4.0.0, <=4.13.1",">=4.7.1"],"patched":[],"from":["GHSA-449p-3h89-pw88","GO-2024-2456"],"provenance":"source"}],"summary":{"text":"A path traversal flaw in go-git (versions prior to v5.11) lets crafted replies from a Git server write and amend files outside the intended directory, and in the worst case enables remote code execution. It only affects applications using the default ChrootOS filesystem, which is used by the \"Plain\" variants of Open and Clone such as PlainClone, while applications using BoundOS or in-memory filesystems are not affected; an attacker needs only to get a client to talk to a malicious Git server, with no authentication or user interaction required.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T06:44:04Z"},"euvd":{"id":"EUVD-2024-0238","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2023-49568","published":"2024-01-12","fixed":"5.11.0","kev":false},{"cve":"CVE-2023-49569","published":"2024-01-12","fixed":"5.11.0","kev":false},{"cve":"CVE-2025-21613","published":"2025-01-06","fixed":"5.13.0","kev":false,"link":{"from":"CVE-2023-49569","to":"CVE-2025-21613","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/go-git/go-git/v5","fromFixed":"5.11.0","toFixed":"5.13.0","daysApart":360}]}},{"cve":"CVE-2025-21614","published":"2025-01-06","fixed":"5.13.0","kev":false,"link":{"from":"CVE-2023-49569","to":"CVE-2025-21614","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/go-git/go-git/v5","fromFixed":"5.11.0","toFixed":"5.13.0","daysApart":360}]}},{"cve":"CVE-2026-25934","published":"2026-02-09","fixed":"5.16.5","kev":false}],"package":"Go:github.com/go-git/go-git/v5"}}