Lucene search

K
veracodeVeracode Vulnerability DatabaseVERACODE:38912
HistoryJan 18, 2023 - 8:22 p.m.

Integer Overflow

2023-01-1820:22:07
Veracode Vulnerability Database
sca.analysiscenter.veracode.com
19
git
integer overflow
vulnerability
commit formatting
software
padding operators
memcpy
export-subst mechanism

0.003 Low

EPSS

Percentile

69.1%

git is vulnerable to integer overflows. When processing the padding operators, there is a integer overflow in pretty.c::format_and_pad_commit() where a size_t is stored improperly as an int, and then added as an offset to a memcpy(). This overflow can be triggered directly by a user running a command which invokes the commit formatting machinery (e.g., git log --format=...). It may also be triggered indirectly through git archive via the export-subst mechanism.