{"cve":"CVE-2026-45022","nvd":{"published":"2026-05-27T15:16:29.980","modified":"2026-06-17T10:51:36.953","status":"Analyzed","description":"go-git is an extensible git implementation library written in pure Go. Prior to 5.19.0 and 6.0.0-alpha.3, 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. Additionally, 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. This 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. This vulnerability is fixed in 5.19.0 and 6.0.0-alpha.3.","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":7.0},"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","score":7.5},"cwes":["CWE-180","CWE-345"],"references":["https://github.com/go-git/go-git/security/advisories/GHSA-389r-gv7p-r3rp"],"products":["go-git_project:go-git"],"source":"nvd","synced_at":"2026-10-19T22:36:28.938604137+00:00"},"epss":{"cve":"CVE-2026-45022","score":0.00159,"percentile":0.05072,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-389r-gv7p-r3rp","url":"https://osv.dev/vulnerability/GHSA-389r-gv7p-r3rp","summary":"go-git's improper parsing of specially crafted objects may lead to inconsistent interpretation compared to upstream Git","modified":"2026-09-10T03:51:04.377050417Z","packages":[{"ecosystem":"Go","name":"github.com/go-git/go-git/v6","purl":"pkg:golang/github.com/go-git/go-git/v6","ranges":[">=6.0.0-alpha.1 <6.0.0-alpha.3"],"fixed":["6.0.0-alpha.3"]},{"ecosystem":"Go","name":"github.com/go-git/go-git/v5","purl":"pkg:golang/github.com/go-git/go-git/v5","ranges":["<5.19.0"],"fixed":["5.19.0"]}]},{"id":"GO-2026-5074","url":"https://osv.dev/vulnerability/GO-2026-5074","summary":"Go-git: Improper parsing of specially crafted objects may lead to inconsistent interpretation in github.com/go-git/go-git","modified":"2026-08-08T21:41:54.015621351Z","packages":[{"ecosystem":"Go","name":"github.com/go-git/go-git/v5","purl":"pkg:golang/github.com/go-git/go-git/v5","ranges":["<5.19.0"],"fixed":["5.19.0"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}