{"id":"GHSA-389r-gv7p-r3rp","revision":"f8aa05d1aaed483cafba4c78dd26989d","records":[{"revision":"f8aa05d1aaed483cafba4c78dd26989d","observedAt":"2026-10-24T13:19:41.952+00:00","statement":{"source":"osv","id":"GHSA-389r-gv7p-r3rp","aliases":["CVE-2026-45022","GO-2026-5074"],"title":"go-git's improper parsing of specially crafted objects may lead to inconsistent interpretation compared to upstream Git","description":"### Impact\n`go-git` may parse malformed Git objects in a way that differs from upstream Git. When `commit` or `tag` objects contain ambiguous or malformed headers, `go-git`’s decoded representation may expose values differently from how Git itself would interpret or reject the same object.\n\nAdditionally, `go-git`’s commit signing and verification logic operates over commit data reconstructed from `go-git`’s parsed representation rather than the original raw object bytes. As a result, `go-git` may sign or verify a commit payload that is not byte-for-byte equivalent to the object stored in the repository.\n\nThis can cause a signature to appear valid for a commit whose displayed or effective metadata differs from the object that was intended to be signed.\n\n### Patches\nUsers should upgrade to a patched version in order to mitigate this vulnerability. Versions prior to v5 are likely to be affected, users are recommended to upgrade to a supported `go-git` version.\n\n### Credit\n\nThanks to @bugbunny-research (https://bugbunny.ai/) for reporting this to `sigstore/gitsign`, and to @wlynch, @patzielinski and @adityasaky for coordinating the disclosure with the `go-git` project. :bow: :1st_place_medal: \n\nThanks to @wayphinder for reporting this to the `go-git` project. :bow:","state":0,"publishedAt":"2026-05-11T14:48:12+00:00","modifiedAt":"2026-09-10T03:51:04.3770504+00:00","affected":[{"ecosystem":"Go","name":"github.com/go-git/go-git/v6","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"6.0.0-alpha.1"},{"kind":"fixed","version":"6.0.0-alpha.3"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"Go","name":"github.com/go-git/go-git/v5","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"5.19.0"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V4","vector":"CVSS:4.0/AV:N/AC:H/AT:N/PR:L/UI:N/VC:N/VI:H/VA:N/SC:N/SI:H/SA:N","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"HIGH"}],"references":["https://github.com/go-git/go-git/security/advisories/GHSA-389r-gv7p-r3rp","https://nvd.nist.gov/vuln/detail/CVE-2026-45022","https://github.com/go-git/go-git"],"sourceUrl":"https://github.com/advisories/GHSA-389r-gv7p-r3rp","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-389r-gv7p-r3rp","identifiers":["GHSA-389r-gv7p-r3rp","CVE-2026-45022","GO-2026-5074"]},"retained":false,"historicalAffected":[]}],"coverage":[]}