CVE-2026-45022High▾ Twilightgo-git's improper parsing of specially crafted objects may lead to inconsistent interpretation compared to upstream Git
▾ Twilight zone — High severity, or a signal on a lesser flaw
impact 41.3 · likelihood 0 · exploitation 0
Need a working PoC? Pro members can cast a request and our team develops one — it lands right here.
Exploit-prediction probability, daily snapshots since Jul 25.
Disclosure to exploitation, from the record and what we observed since indexing it.
Disclosed via OSV
0.2%
Last analysed / modified upstream
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.
Users should upgrade to a patched version in order to mitigate this vulnerability. Versions prior to v5 are likely to be affected, users are recommended to upgrade to a supported go-git version.
Thanks to @bugbunny-research (https://bugbunny.ai/) for reporting this to sigstore/gitsign, and to @wlynch, @patzielinski and @adityasaky for coordinating the disclosure with the go-git project. :bow: :1st_place_medal:
Thanks to @wayphinder for reporting this to the go-git project. :bow:
github.com/go-git/go-git/v6 >= 6.0.0-alpha.1, < 6.0.0-alpha.3github.com/go-git/go-git/v5 < 5.19.0Upgrade to a patched release:
github.com/go-git/go-git/v6 6.0.0-alpha.3github.com/go-git/go-git/v5 5.19.0Connected by shared product, vendor, weakness, or advisory.
GHSA-w5pp-99ch-qj29Medium· 6.5go-git: Malformed Git object data may cause panics or resource exhaustion
CVE-2026-45571Medium· 5.4go-git: Crafted repositories may modify main and submodule .git directories
CVE-2026-41506Medium· 4.7go-git: Credential leak via cross-host redirect in smart HTTP transport
CVE-2023-49568High· 7.5Maliciously crafted Git server replies can cause DoS on go-git clients
CVE-2023-49569Critical· 9.8Maliciously crafted Git server replies can lead to path traversal and RCE on go-git clients
GO-2026-5693NoneGo-git: Malformed Git object data may cause panics or resource exhaustion in github.com/go-git/go-git