{"id":"UBUNTU-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-07-02T18:03:51.203596507Z","published":"2026-05-27T15:16:00Z","upstream":["CVE-2026-45022"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2026-45022"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2026-45022"},{"type":"REPORT","url":"https://github.com/go-git/go-git/security/advisories/GHSA-389r-gv7p-r3rp"}],"affected":[{"package":{"name":"golang-github-go-git-go-git","ecosystem":"Ubuntu:Pro:22.04:LTS","purl":"pkg:deb/ubuntu/golang-github-go-git-go-git?arch=source&distro=esm-apps%2Fjammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["5.4.2-3","5.4.2-3ubuntu0.1~esm1","5.4.2-3ubuntu0.1~esm2"],"ecosystem_specific":{"binaries":[{"binary_version":"5.4.2-3ubuntu0.1~esm2","binary_name":"go-git"},{"binary_version":"5.4.2-3ubuntu0.1~esm2","binary_name":"golang-github-go-git-go-git-dev"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-45022.json"}},{"package":{"name":"golang-github-go-git-go-git","ecosystem":"Ubuntu:Pro:24.04:LTS","purl":"pkg:deb/ubuntu/golang-github-go-git-go-git?arch=source&distro=esm-apps%2Fnoble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["5.4.2-3build1","5.4.2-4","5.4.2-4ubuntu0.24.04.1","5.4.2-4ubuntu0.24.04.2","5.4.2-4ubuntu0.24.04.2+esm1","5.4.2-4ubuntu0.24.04.3","5.4.2-4ubuntu0.24.04.3+esm1","5.4.2-4ubuntu0.24.04.3+esm2","5.4.2-4ubuntu0.24.04.3+esm3"],"ecosystem_specific":{"binaries":[{"binary_name":"go-git","binary_version":"5.4.2-4ubuntu0.24.04.3+esm3"},{"binary_name":"golang-github-go-git-go-git-dev","binary_version":"5.4.2-4ubuntu0.24.04.3+esm3"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-45022.json"}},{"package":{"name":"golang-github-go-git-go-git","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/golang-github-go-git-go-git?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["5.14.0-1"],"ecosystem_specific":{"binaries":[{"binary_name":"go-git","binary_version":"5.14.0-1"},{"binary_name":"golang-github-go-git-go-git-dev","binary_version":"5.14.0-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-45022.json"}},{"package":{"name":"golang-github-go-git-go-git","ecosystem":"Ubuntu:Pro:26.04:LTS","purl":"pkg:deb/ubuntu/golang-github-go-git-go-git?arch=source&distro=esm-apps%2Fresolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["5.14.0-1","5.16.2-1","5.16.2-1ubuntu0.1~esm1"],"ecosystem_specific":{"binaries":[{"binary_version":"5.16.2-1ubuntu0.1~esm1","binary_name":"go-git"},{"binary_version":"5.16.2-1ubuntu0.1~esm1","binary_name":"golang-github-go-git-go-git-dev"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-45022.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V4","score":"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"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N"},{"type":"Ubuntu","score":"medium"}]}