{"id":"DEBIAN-CVE-2026-45022","details":"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.","modified":"2026-08-27T23:06:06.801457673Z","published":"2026-05-27T15:16:29.980Z","upstream":["CVE-2026-45022"],"references":[{"type":"ADVISORY","url":"https://security-tracker.debian.org/tracker/CVE-2026-45022"}],"affected":[{"package":{"name":"golang-github-go-git-go-git","ecosystem":"Debian:12","purl":"pkg:deb/debian/golang-github-go-git-go-git?arch=source&distro=bookworm"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["5.11.0-1","5.11.0-2","5.11.0-3","5.11.0-4","5.12.0-1","5.13.2-1","5.14.0-1","5.16.2-1","5.17.0-1","5.17.1-1","5.19.1-1","5.4.2-3","5.4.2-4"],"ecosystem_specific":{"urgency":"not yet assigned"},"database_specific":{"source":"https://storage.googleapis.com/osv-test-debian-osv/debian-cve-osv/DEBIAN-CVE-2026-45022.json"}},{"package":{"name":"golang-github-go-git-go-git","ecosystem":"Debian:13","purl":"pkg:deb/debian/golang-github-go-git-go-git?arch=source&distro=trixie"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["5.14.0-1","5.16.2-1","5.17.0-1","5.17.1-1","5.19.1-1"],"ecosystem_specific":{"urgency":"not yet assigned"},"database_specific":{"source":"https://storage.googleapis.com/osv-test-debian-osv/debian-cve-osv/DEBIAN-CVE-2026-45022.json"}},{"package":{"name":"golang-github-go-git-go-git","ecosystem":"Debian:14","purl":"pkg:deb/debian/golang-github-go-git-go-git?arch=source&distro=forky"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.19.1-1"}]}],"versions":["5.14.0-1","5.16.2-1","5.17.0-1","5.17.1-1"],"ecosystem_specific":{"urgency":"not yet assigned"},"database_specific":{"source":"https://storage.googleapis.com/osv-test-debian-osv/debian-cve-osv/DEBIAN-CVE-2026-45022.json"}},{"package":{"name":"golang-github-go-git-go-git-v6","ecosystem":"Debian:14","purl":"pkg:deb/debian/golang-github-go-git-go-git-v6?arch=source&distro=forky"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"6.0.0~alpha4-1"}]}],"versions":["6~git20260305.2083cf94-1","6~git20260305.2083cf94-2","6~git20260305.2083cf94-3"],"ecosystem_specific":{"urgency":"not yet assigned"},"database_specific":{"source":"https://storage.googleapis.com/osv-test-debian-osv/debian-cve-osv/DEBIAN-CVE-2026-45022.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N"}]}