GitHub Advisoryadvisory · PyPI

GHSA-5xf2-f6ch-6p8r CodeChecker has a buffer overflow in the log command

MEDIUM Published 2025-09-22 Modified 2026-06-05 Official page ↗
Aliases
CVE-2025-40843
Ecosystem
PyPI
Packages
codechecker
Severity
Moderate
CVSS vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
Weaknesses
CWE-121
Reviewed
2025-09-22

Affected packages

• PyPI codechecker: < 6.26.2 → fixed in 6.26.2

Description

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. ```bash !/bin/bash export CC_LOGGER_DEF_DIRS=1; payload=''; for i in $(seq 1 4090); do payload+='A'; done CodeChecker log -b "/very/long/path/to/$payload/gcc a.c" -o compilation.json ``` Impact Any environment where the vulnerable `CodeChecker log` command is executed with untrusted user input is affected by this vulnerability.

Related

Alias · CVE (1)

  • CVE-2025-40843 CodeChecker is an analyzer tooling, defect database and viewer extension for the Clang Static Analyzer and Clang Tidy. vulnerability

Weakness · CWE (1)

  • CWE-121 Stack-based Buffer Overflow weakness

References