GitHub · GitHub Blog
Git security flaws introduced
Compiled by KHAO Editorial — aggregated from 1 source. See llms.txt for citation guidance.
★ Tier-1 Source
Today, the Git project is releasing new versions to address six security vulnerabilities.
Key facts
- The fixes are included in Git 2.56.1, with backports to Git 2.55.1, 2.54.1, 2.53.1, 2.52.1, 2.51.3, and 2.50.2
- Git rejects patches larger than approximately 1 GiB because its patch application code cannot safely handle larger inputs
- Elijah Newren is a Staff Software Engineer at GitHub
- When stripping GPG signatures from a message, Git assumed there would be at most two signatures
Summary
The fixes are included in Git 2.56.1, with backports to Git 2.55.1, 2.54.1, 2.53.1, 2.52.1, 2.51.3, and 2.50.2. Git checks paths before writing files into a working tree, including rejecting paths that would overwrite its own repository metadata. An attacker can use this discrepancy to replace a submodule’s.git file with a symbolic link pointing to a directory containing malicious configuration or hooks. The fix rejects extremely long index entry paths before their lengths can be truncated.