CVE-2025-40843: 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.
Published Sep 22, 2025 · Updated Jun 5, 2026
Affected packages
codechecker
- Ecosystem
- PyPI
- Affected
- <= 6.26.1
- Fixed in
- 6.26.2
- Check
pip show codechecker
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
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.jsonImpact
Any environment where the vulnerable CodeChecker log command is executed with untrusted user input is affected by this vulnerability.
Credited to barnabasdomozi.
References
- https://github.com/Ericsson/codechecker/security/advisories/GHSA-5xf2-f6ch-6p8r
- https://github.com/Ericsson/codechecker/commit/4122eb1b43d00c880e4f0747d2ca0a674feb7a50
- https://nvd.nist.gov/vuln/detail/CVE-2025-40843
- https://github.com/pypa/advisory-database/tree/main/vulns/codechecker/PYSEC-2025-100.yaml
- https://github.com/advisories/GHSA-5xf2-f6ch-6p8r
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More PyPI vulnerabilities
All PyPI entriesCVE-2026-25660
Codechecker has an authentication bypass for certain API calls
critical9.3No fixMay 5, 2026CVE-2025-1300
CodeChecker open redirect when URL contains multiple slashes after the product name
medium6.1Mar 3, 2025CVE-2024-53829
Cross-Site Request Forgery in CodeChecker API
high8.2Jan 21, 2025CVE-2024-10081
codechecker vulnerable to authentication bypass when using specifically crafted URLs
critical10.0Nov 6, 2024CVE-2024-10082
codechecker authentication method confusion vulnerability allows logging in as the built-in root user from an external service
critical8.7Nov 6, 2024CVE-2023-49793
CodeChecker has a Path traversal in `CodeChecker server` in the endpoint of `CodeChecker store`
medium6.5Jun 24, 2024
