Vulnerabilities in pkg:pypi/codechecker
PACKAGECVE-2025-40843 is a MODERATE (CVSS 5.9) codechecker has a buffer overflow vulnerability (CWE-121: Stack-based Buffer Overflow) affecting Codechecker libraries in the PyPI ecosystem. The issue involves codechecker has a buffer overflow in the log command. Remediation is available by upgrading affected packages to version 6.26.2.
pkg:pypi/codechecker
Vulnerability advisories affecting package pkg:pypi/codechecker. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-5xf2-f6ch-6p8r | CVE-2025-40843 | MODERATE | CodeChecker has a buffer overflow in the log command |
| GHSA-fxmx-pfm2-85m2 | CVE-2021-44217 | MODERATE | Cross-site Scripting in Ericsson CodeChecker |
| GHSA-4v9x-cqc5-j645 | CVE-2026-25660 | CRITICAL | Codechecker has an authentication bypass for certain API calls |
| GHSA-fpm5-2wcj-vfr7 | CVE-2024-10082 | CRITICAL | codechecker authentication method confusion vulnerability allows logging in as the built-in root user from an external service |
| GHSA-f3f8-vx3w-hp5q | CVE-2024-10081 | CRITICAL | codechecker vulnerable to authentication bypass when using specifically crafted URLs |
| GHSA-f8c8-4pm7-w885 | CVE-2024-53829 | HIGH | Cross-Site Request Forgery in CodeChecker API |
| GHSA-g839-x3p3-g5fm | CVE-2025-1300 | MODERATE | CodeChecker open redirect when URL contains multiple slashes after the product name |
| GHSA-h26w-r4m5-8rrf | CVE-2023-49793 | MODERATE | CodeChecker has a Path traversal in `CodeChecker server` in the endpoint of `CodeChecker store` |
CVE-2025-40843 at a Glance
Security Impact
CVSS: 5.9
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L).
How to Fix CVE-2025-40843
To remediate this vulnerability, upgrade all affected Codechecker dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install codechecker>=6.26.2
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show codechecker
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2025-40843, inspect your installed packages using pip:
pip show codechecker
Analyze the terminal output to locate any version of Codechecker in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 6.26.2), your application is affected.
Note: The pip show codechecker command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-121: Stack-based Buffer Overflow, where a stack-based buffer overflow condition is a condition where the buffer being overwritten is allocated on the stack (i.e., is a local variable or, rarely, a parameter to a function). In Codechecker, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2025-40843 Affected Codechecker Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
codechecker
|
PyPI |
< 6.26.2
|
6.26.2
|
References
Frequently Asked Questions
What is CVE-2025-40843?
Which Codechecker versions are affected?
What version fixes CVE-2025-40843?
Is codechecker affected?
What is the CVSS score of CVE-2025-40843?
What CWE is associated with CVE-2025-40843?
How can I check PyPI dependencies for CVE-2025-40843?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-5xf2-f6ch-6p8r",
"modified" : "2026-06-05T14:33:10Z",
"published" : "2025-09-22T18:04:20Z",
"aliases" : [ "CVE-2025-40843" ],
"summary" : "CodeChecker has a buffer overflow in the log command",
"details" : "### Summary\nCodeChecker versions up to 6.26.1 contain a buffer overflow vulnerability in the internal `ldlogger` library, which is executed by the `CodeChecker log` command.\n\n### Details\nUnsafe 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.\n\n### PoC\nExample script is included below to illustrate how this vulnerability can be exploited.\n```bash\n#!/bin/bash\n\nexport CC_LOGGER_DEF_DIRS=1; \npayload=''; for i in $(seq 1 4090); do payload+='A'; done\n\nCodeChecker log -b \"/very/long/path/to/$payload/gcc a.c\" -o compilation.json\n```\n\n### Impact\nAny environment where the vulnerable `CodeChecker log` command is executed with untrusted user input is affected by this vulnerability.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "codechecker"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "6.26.2"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 6.26.1"
}
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/Ericsson/codechecker/security/advisories/GHSA-5xf2-f6ch-6p8r"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-40843"
}, {
"type" : "WEB",
"url" : "https://github.com/Ericsson/codechecker/commit/4122eb1b43d00c880e4f0747d2ca0a674feb7a50"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/Ericsson/codechecker"
}, {
"type" : "WEB",
"url" : "https://github.com/pypa/advisory-database/tree/main/vulns/codechecker/PYSEC-2025-100.yaml"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-121" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2025-09-22T18:04:20Z",
"nvd_published_at" : "2025-10-28T19:15:41Z"
}
}