Medium

CodeChecker has a buffer overflow in the log command

  • Disclosed: 22.09.2025
  • Updated: 11.10.2026 12:19

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.

Affected software

Click a technology to see all vulnerabilities affecting it.

PlatformPackageVulnerable versionsFixed in
Python (PyPI) codechecker < 6.26.2 6.26.2

References

CVSS score 5.9/10
CVSS vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
Weakness (CWE)
CWE-121
Platform
Python (PyPI)
Package
codechecker
Disclosed
22.09.2025
Updated
11.10.2026 12:19

Sources and licenses

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

Vulnerability history: codechecker

All published vulnerabilities of this package (Python (PyPI)), newest first. Shows whether this is a one-off slip or a package that needs watching.

Total entries
8
First → latest
01.2022 05.2026
Without a fix
1
Exploited in attacks
0

Severity breakdown

  • Critical 3
  • High 1
  • Medium 4

Disclosures per year

  1. 2022: 1
  2. 2023: 0
  3. 2024: 3
  4. 2025: 3
  5. 2026: 1
  1. Critical CVE-2026-25660 <= 6.27.3 no fix
  2. CodeChecker has a buffer overflow in the log command this entry
    Medium · 5.9 CVE-2025-40843 < 6.26.2 6.26.2
  3. High · 8.2 CVE-2024-53829 < 6.24.5 6.24.5
  4. Medium · 6.1 CVE-2021-44217 < 6.18.2 6.18.2

Know which vulnerabilities affect your application

With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.