Advisory

GHSA-5xf2-f6ch-6p8r

Also known as: CVE-2025-40843, PYSEC-2025-100

Summary

CodeChecker has a buffer overflow in the log command

Details

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.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2025-09-22 18:04 UTC
Modified
2026-06-05 14:45 UTC

Affected packages and fixes

codechecker

PyPI · All systems

Affected

  • introduced 0, fixed 6.26.2 (ecosystem)

Fixed versions

6.26.2

Fix

  • Fixed version 6.26.2
    pip install --upgrade codechecker==6.26.2

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences