{"id":"CVE-2023-49569","aliases":["CVE-2023-49569","GHSA-449p-3h89-pw88","GO-2024-2456"],"related":["CGA-ghfj-54hg-3xgm"],"kind":"vulnerability","state":"published","title":"Maliciously crafted Git server replies can lead to path traversal and RCE on go-git clients","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"en","text":"### Impact\nA 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### Patches\nUsers running versions of `go-git` from `v4` and above are recommended to upgrade to `v5.11` in order to mitigate this vulnerability.\n\n### Workarounds\nIn cases where a bump to the latest version of `go-git` is not possible in a timely manner, we recommend limiting its use to only trust-worthy Git servers.\n\n## Credit\nThanks to Ionut Lalu for responsibly disclosing this vulnerability to us.","format":"markdown","source":"ghsa"},{"lang":"en","text":"Path traversal and RCE in github.com/go-git/go-git/v5 and gopkg.in/src-d/go-git.v4","format":"markdown","source":"go"},{"lang":"es","text":"Se descubrió una vulnerabilidad de path traversal en versiones de go-git anteriores a la v5.11. Esta vulnerabilidad permite a un atacante crear y modificar archivos en todo el sistema de archivos. En el peor de los casos, se podría lograr la ejecución remota de código. Las aplicaciones solo se ven afectadas si usan ChrootOS https://pkg.go.dev/github.com/go-git/go-billy/v5/osfs#ChrootOS, que es el valor predeterminado cuando se usan versiones \"simples\" de Open y funciones de clonación (por ejemplo, PlainClone). Las aplicaciones que utilizan BoundOS https://pkg.go.dev/github.com/go-git/go-billy/v5/osfs#BoundOS o sistemas de archivos en memoria no se ven afectados por este problema. Este es un problema de implementación de go-git y no afecta el cli de git ascendente.","source":"nvd"}],"published":"2024-01-10T15:37:05.000Z","modified":"2026-09-10T03:50:04.744Z","severity":{"scorer":"Bitdefender","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},"severities":[{"scorer":"Bitdefender","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"}],"cwes":["CWE-22"],"affected":[{"ranges":[{"version":"5.11.0","status":"affected"}],"vendor":"go-git","product":"go-git","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"5.0.0","status":"affected","fixed":"5.11.0"}],"ecosystem":"Go","package":"github.com/go-git/go-git/v5","purl":"pkg:golang/github.com/go-git/go-git/v5","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"4.0.0","status":"affected","lastAffected":"4.13.1"}],"ecosystem":"Go","package":"gopkg.in/src-d/go-git.v4","purl":"pkg:golang/gopkg.in/src-d/go-git.v4","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"4.7.1","status":"affected"}],"ecosystem":"Go","package":"gopkg.in/src-d/go-git.v4","purl":"pkg:golang/gopkg.in/src-d/go-git.v4","source":"go"},{"ranges":[{"type":"semver","introduced":"5.0.0","status":"affected","fixed":"5.11.0"}],"ecosystem":"Go","package":"github.com/go-git/go-git/v5","purl":"pkg:golang/github.com/go-git/go-git/v5","source":"go"},{"ranges":[{"status":"affected","introduced":"4.0.0","fixed":"5.11.0"}],"vendor":"go-git_project","product":"go-git","cpe":"cpe:2.3:a:go-git_project:go-git:*:*:*:*:*:go:*:*","source":"nvd"}],"references":[{"url":"https://github.com/go-git/go-git/security/advisories/GHSA-449p-3h89-pw88","tags":["vendor-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-49569","tags":["advisory"],"sources":["ghsa","go"]},{"url":"https://github.com/go-git/go-git","tags":["package"],"sources":["ghsa"]}],"credits":["Ionuț Lalu","Ionut Lalu"],"assigner":"Bitdefender","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"total","date":"2024-01-18T19:36:00.641Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-49569","url":"https://www.cve.org/CVERecord?id=CVE-2023-49569","licence":"CVE Terms of Use","modified":"2024-11-14T14:34:02.845Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-449p-3h89-pw88","url":"https://github.com/advisories/GHSA-449p-3h89-pw88","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:04.744Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2024-2456","url":"https://pkg.go.dev/vuln/GO-2024-2456","licence":"CC-BY-4.0","modified":"2026-02-04T04:20:40.051Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-49569","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-49569","licence":"Public domain","modified":"2026-06-17T06:36:10.567Z"}],"updatedAt":"2026-11-25T22:58:32.092Z","epss":{"score":0.0151,"percentile":0.75189,"date":"2026-12-01T12:00:22.000Z"}}