The hash of a signed Git commit is not the unique name that many in the software industry believe it to be, according to new study. Even if a second contribution with the same files, author, date, and valid signature is created by someone without the signing key, GitHub will still mark it as “Verified.”
Everything is in line with what a reviewer would look for. The hash of the commit does not. This is significant because a confirmed commit hash is regarded by numerous systems as a permanent, distinct name for its contents.
This is the specific failure: if you block a faulty commit based on its hash, an attacker can re-push the identical content under a new hash that is still “Verified” and has never been viewed by your blocklist. The same soft point is inherited by reproducible-build records, provenance logs, and deduplication that key on the hash.
Cloners may get legitimately signed commits with hashes different from those on the canonical forge from a hacked or hostile mirror.
This is not a method of getting a different code through a signature check. Since all copies of the files are identical, a hash you pinned will either fail or still return the precise material you were hoping for read more about GitHub ‘Verified’ Commits Can Be Rewritten Into New Hashes Without Breaking Signatures
Get up to date on the latest cybersecurity news and enhance your knowledge of cybersecurity with our thorough coverage of the dangers, breaches, and solutions.
