The giftrans function in giftrans 1.12.2 contains a stack-based buffer overflow because a value inside the input file determines the amount of data to write. This allows an attacker to overwrite up to 250 bytes outside of the allocated buffer with arbitrary data.
The product receives input that is expected to specify a quantity (such as size or length), but it does not validate or incorrectly validates that the quantity has the required properties.
Name | Vendor | Start Version | End Version |
---|---|---|---|
Giftrans | Giftrans_project | 1.12.2 (including) | 1.12.2 (including) |
Giftrans | Ubuntu | bionic | * |
Giftrans | Ubuntu | hirsute | * |
Giftrans | Ubuntu | impish | * |
Giftrans | Ubuntu | kinetic | * |
Giftrans | Ubuntu | lunar | * |
Giftrans | Ubuntu | mantic | * |
Giftrans | Ubuntu | trusty | * |
Giftrans | Ubuntu | xenial | * |
Specified quantities include size, length, frequency, price, rate, number of operations, time, and others. Code may rely on specified quantities to allocate resources, perform calculations, control iteration, etc. When the quantity is not properly validated, then attackers can specify malicious quantities to cause excessive resource allocation, trigger unexpected failures, enable buffer overflows, etc.