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.
#!/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.
Betroffene Software
Klicken Sie auf eine Technologie, um alle zugehörigen Schwachstellen anzuzeigen.
| Plattform | Paket | Anfällige Versionen | Behoben in |
|---|---|---|---|
| Python (PyPI) | codechecker | < 6.26.2 | 6.26.2 |
Verweise
- https://github.com/Ericsson/codechecker/security/advisories/GHSA-5xf2-f6ch-6p8r
- https://nvd.nist.gov/vuln/detail/CVE-2025-40843
- https://github.com/Ericsson/codechecker/commit/4122eb1b43d00c880e4f0747d2ca0a674feb7a50
- https://github.com/Ericsson/codechecker
- https://github.com/pypa/advisory-database/tree/main/vulns/codechecker/PYSEC-2025-100.yaml
- CVSS-Vektor
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L- Schwäche (CWE)
CWE-121- Plattform
- Python (PyPI)
- Paket
codechecker- Veröffentlicht
- 22.09.2025
- Aktualisiert
- 11.10.2026 12:19
Quellen und Lizenzen
OSV / GitHub Advisory Database - PYSEC-2025-100 - PyPA Advisory Database; CC BY 4.0
OSV / GitHub Advisory Database - GHSA-5xf2-f6ch-6p8r - CC BY 4.0
Schwachstellenhistorie: codechecker
Alle veröffentlichten Schwachstellen dieses Pakets (Python (PyPI)), neueste zuerst. Zeigt, ob es ein einmaliger Ausrutscher ist oder ein Paket, das man im Auge behalten muss.
- Einträge insgesamt
- 8
- Erste → letzte
- 01.2022 05.2026
- Ohne Fix
- 1
- In Angriffen ausgenutzt
- 0
Verteilung nach Schweregrad
- Kritisch 3
- Hoch 1
- Mittel 4
Veröffentlichungen pro Jahr
- 2022: 1
- 2023: 0
- 2024: 3
- 2025: 3
- 2026: 1
-
CodeChecker has a buffer overflow in the log command dieser Eintrag
Erkennen Sie Schwachstellen in Ihrer Anwendung
Mit der DockRay-Integration und aktivierter Softwareinventarisierung prüft DockRay gemeldete Komponentenversionen auf bekannte Schwachstellen und benachrichtigt Sie über bestätigte Treffer. Die Abdeckung hängt von der unterstützten Technologie und den verfügbaren Meldungen ab.