{"id":"UBUNTU-CVE-2026-33762","details":"go-git is an extensible git implementation library written in pure Go. Prior to version 5.17.1, go-git’s index decoder for format version 4 fails to validate the path name prefix length before applying it to the previously decoded path name. A maliciously crafted index file can trigger an out-of-bounds slice operation, resulting in a runtime panic during normal index parsing. This issue only affects Git index format version 4. Earlier formats (go-git supports only v2 and v3) are not vulnerable to this issue. This issue has been patched in version 5.17.1.","modified":"2026-04-13T09:32:07Z","published":"2026-03-31T15:16:00Z","upstream":["CVE-2026-33762"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2026-33762"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2026-33762"},{"type":"REPORT","url":"https://github.com/go-git/go-git/releases/tag/v5.17.1"},{"type":"REPORT","url":"https://github.com/go-git/go-git/security/advisories/GHSA-gm2x-2g9h-ccm8"}],"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@5.4.2-3ubuntu0.1~esm2?arch=source&distro=esm-apps/jammy"},"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_name":"go-git","binary_version":"5.4.2-3ubuntu0.1~esm2"},{"binary_name":"golang-github-go-git-go-git-dev","binary_version":"5.4.2-3ubuntu0.1~esm2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-33762.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@5.4.2-4ubuntu0.24.04.3+esm3?arch=source&distro=esm-apps/noble"},"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-33762.json"}},{"package":{"name":"golang-github-go-git-go-git","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/golang-github-go-git-go-git@5.14.0-1?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-33762.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:N/A:L"},{"type":"Ubuntu","score":"medium"}]}