Security Vulnerabilities fixed in Git GHSA-475x-2q3q-hvwq

description-logoDescription

When parsing gitattributes, multiple integer overflows can occur when there is a huge number of path patterns, a huge number of attributes for a single pattern, or when the declared attribute names are huge. These overflows can be triggered via a crafted .gitattributes file that may be part of the commit history. Git silently splits lines longer than 2KB when parsing gitattributes from a file, but not when parsing them from the index. Consequentially, the failure mode depends on whether the file exists in the working tree, the index or both. Also when processing the padding operators an integer overflow can occur in pretty.c::format_and_pad_commit() where a size_t is improperly stored as an int, and then added as an offset to a subsequent memcpy() call. This integer overflow can result in arbitrary heap reads and writes, which may result in remote code execution.

affected-products-logoAffected Applications

Git