CVE-2025-40843: Buffer overflow in CodeChecker log command

Published Sep 22, 2025
·
Updated

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 CCLOGGERDEFDIRS=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.

Other sources

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.

MITRE

Affected Software

2 affected componentsFixes available
pip/codechecker<=6.26.1
6.26.2
Ericsson CodeChecker<6.26.2

Event History

Sep 22, 2025
Advisory Published
via GitHub·06:04 PM
Data Sourced
via GitHub·06:04 PM
DescriptionSeverityWeaknessAffected Software
Oct 28, 2025
CVE Published
via MITRE·06:49 PM
Data Sourced
via MITRE·06:49 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·07:15 PM
DescriptionSeverityWeaknessAffected Software
Dec 11, 57841
Event
via NVD·03:15 PM
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2025-40843?

The severity of CVE-2025-40843 is classified as critical due to the potential for remote code execution.

2

How do I fix CVE-2025-40843?

To fix CVE-2025-40843, upgrade to CodeChecker version 6.26.2 or later.

3

Which versions of CodeChecker are affected by CVE-2025-40843?

CodeChecker versions up to 6.26.1 are affected by CVE-2025-40843.

4

What is the vulnerability type of CVE-2025-40843?

CVE-2025-40843 is a buffer overflow vulnerability.

5

What is the cause of CVE-2025-40843?

CVE-2025-40843 is caused by unsafe usage of the strcpy() function in the ldlogger library.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203