{ "schema_version": "1.4.0", "id": "GHSA-449p-3h89-pw88", "modified": "2025-01-06T15:26:30Z", "published": "2024-01-10T15:37:05Z", "aliases": [ "CVE-2023-49569" ], "summary": "Maliciously crafted Git server replies can lead to path traversal and RCE on go-git clients", "details": "### 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.", "severity": [ { "type": "CVSS_V3", "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H" } ], "affected": [ { "package": { "ecosystem": "Go", "name": "github.com/go-git/go-git/v5" }, "ranges": [ { "type": "ECOSYSTEM", "events": [ { "introduced": "5.0.0" }, { "fixed": "5.11.0" } ] } ] }, { "package": { "ecosystem": "Go", "name": "gopkg.in/src-d/go-git.v4" }, "ranges": [ { "type": "ECOSYSTEM", "events": [ { "introduced": "4.0.0" }, { "last_affected": "4.13.1" } ] } ] } ], "references": [ { "type": "WEB", "url": "https://github.com/go-git/go-git/security/advisories/GHSA-449p-3h89-pw88" }, { "type": "ADVISORY", "url": "https://nvd.nist.gov/vuln/detail/CVE-2023-49569" }, { "type": "PACKAGE", "url": "https://github.com/go-git/go-git" } ], "database_specific": { "cwe_ids": [ "CWE-22" ], "severity": "CRITICAL", "github_reviewed": true, "github_reviewed_at": "2024-01-10T15:37:05Z", "nvd_published_at": "2024-01-12T11:15:13Z" } }