5.9medium
Buffer overflow in CodeChecker log command
- Severity
- 5.9medium CVSS:3.1 by ERIC
- Exploit likelihood
- 0.20% (higher than 9% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- ERIC
- Also known as
- GHSA-5xf2-f6ch-6p8rPYSEC-2025-100
Description
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Ericsson CodeChecker | up to 6.26.1, before 6.26.2 | CVE List, NVD |
| codechecker (PyPI) | before 6.26.2 | GitHub Advisory Database, PyPA Advisory Database |
All scores
| ERIC | 5.9medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L |
| GitHub | 5.9medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L |
| NVD | 7.8high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| PyPA Advisory Database | 7.8high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Classification
SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial.
What each source says
CVE List
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.
GitHub Advisory Database
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.
#!/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.
NVD (es)
CodeChecker es una herramienta de análisis, base de datos de defectos y extensión de visualizador para Clang Static Analyzer y Clang Tidy. Las versiones de CodeChecker hasta la 6.26.1 contienen una vulnerabilidad de desbordamiento de búfer en la biblioteca interna ldlogger, que es ejecutada por el comando CodeChecker log. Este problema afecta a CodeChecker: hasta la 6.26.1.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-40843 changed 2025-10-28 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-5xf2-f6ch-6p8r changed 2026-06-05 | CC-BY-4.0 |
| NVD | CVE-2025-40843 changed 2026-10-08 | Public domain |
| PyPA Advisory Database | PYSEC-2025-100 changed 2026-05-20 | CC-BY-4.0 |