{"id":"CVE-2026-45022","state":"PUBLISHED","title":"go-git: Improper parsing of specially crafted objects may lead to inconsistent interpretation compared to upstream Git","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.","publishedAt":"2026-05-27T14:54:47.872Z","updatedAt":"2026-05-27T15:43:32.693Z","severity":{"score":7,"label":"High","version":"4.0","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","source":"GitHub_M"},"assigner":"GitHub_M","products":["go-git go-git"],"affected":[{"vendor":"go-git","product":"go-git","versions":[{"version":"< 5.19.0","status":"affected"},{"version":">= 6.0.0-alpha.1, < 6.0.0-alpha.3","status":"affected"}]}],"references":["https://github.com/go-git/go-git/security/advisories/GHSA-389r-gv7p-r3rp"],"weaknesses":["CWE-180","CWE-345"],"ingestedAt":"2026-10-29T20:12:07.131Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/45xxx/CVE-2026-45022.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-45022","state":"PUBLISHED","datePublished":"2026-05-27T14:54:47.872Z","dateUpdated":"2026-05-27T15:43:32.693Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2026-05-08T16:58:28.896Z"},"containers":{"cna":{"title":"go-git: Improper parsing of specially crafted objects may lead to inconsistent interpretation compared to upstream Git","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"go-git","product":"go-git","versions":[{"version":"< 5.19.0","status":"affected"},{"version":">= 6.0.0-alpha.1, < 6.0.0-alpha.3","status":"affected"}]}],"references":[{"url":"https://github.com/go-git/go-git/security/advisories/GHSA-389r-gv7p-r3rp","name":"https://github.com/go-git/go-git/security/advisories/GHSA-389r-gv7p-r3rp","tags":["x_refsource_CONFIRM"]}],"metrics":[{"cvssV4_0":{"attackVector":"NETWORK","attackComplexity":"HIGH","attackRequirements":"NONE","privilegesRequired":"LOW","userInteraction":"NONE","vulnConfidentialityImpact":"NONE","vulnIntegrityImpact":"HIGH","vulnAvailabilityImpact":"NONE","subConfidentialityImpact":"NONE","subIntegrityImpact":"HIGH","subAvailabilityImpact":"NONE","baseScore":7,"baseSeverity":"HIGH","vectorString":"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","version":"4.0"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-180","lang":"en","description":"CWE-180: Incorrect Behavior Order: Validate Before Canonicalize","type":"CWE"}]},{"descriptions":[{"cweId":"CWE-345","lang":"en","description":"CWE-345: Insufficient Verification of Data Authenticity","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2026-05-27T14:54:47.872Z"},"source":{"advisory":"GHSA-389r-gv7p-r3rp","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-05-27T15:42:45.935586Z","id":"CVE-2026-45022","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-05-27T15:43:32.693Z"}}]}}}