Описание
CodeChecker has a buffer overflow in the log command
Summary
CodeChecker versions up to 6.26.1 contain a buffer overflow vulnerability in the internal ldlogger library, which is executed by the CodeChecker log command.
Details
Unsafe usage of strcpy() function in the internal ldlogger library allows attackers to trigger a buffer overflow by supplying crafted inputs from the command line. Specifically, the destination buffer is stack-allocated with a fixed size of 4096 bytes, while strcpy() is called without any length checks, enabling an attacker to overrun the buffer.
PoC
Example script is included below to illustrate how this vulnerability can be exploited.
Impact
Any environment where the vulnerable CodeChecker log command is executed with untrusted user input is affected by this vulnerability.
Пакеты
codechecker
<= 6.26.1
6.26.2
Связанные уязвимости
CodeChecker is an analyzer tooling, defect database and viewer extension for the Clang Static Analyzer and Clang Tidy. CodeChecker versions up to 6.26.1 contain a buffer overflow vulnerability in the internal ldlogger library, which is executed by the CodeChecker log command. This issue affects CodeChecker: through 6.26.1.