{"id":"CVE-2025-40843","aliases":["CVE-2025-40843","GHSA-5xf2-f6ch-6p8r","PYSEC-2025-100"],"related":[],"kind":"vulnerability","state":"published","title":"Buffer overflow in CodeChecker log command","summary":"CodeChecker is an analyzer tooling, defect database and viewer extension for the Clang Static Analyzer and Clang Tidy. \n\n\n\n\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\n\n\n\nThis issue affects CodeChecker: through 6.26.1.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"CodeChecker is an analyzer tooling, defect database and viewer extension for the Clang Static Analyzer and Clang Tidy. \n\n\n\n\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\n\n\n\nThis issue affects CodeChecker: through 6.26.1.","source":"cvelist"},{"lang":"en","text":"### 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.","format":"markdown","source":"ghsa"},{"lang":"es","text":"CodeChecker es una herramienta de análisis, base de datos de defectos y extensión de visualizador para Clang Static Analyzer y Clang Tidy.\n\nLas versiones de CodeChecker hasta la 6.26.1 contienen una vulnerabilidad de desbordamiento de búfer en la biblioteca interna ldlogger, que es ejecutada por el comando CodeChecker log.\n\nEste problema afecta a CodeChecker: hasta la 6.26.1.","source":"nvd"}],"published":"2025-09-22T18:04:20.000Z","modified":"2026-10-08T11:10:00.250Z","severity":{"scorer":"ERIC","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","score":5.9,"rating":"MEDIUM"},"severities":[{"scorer":"ERIC","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","score":5.9,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","score":5.9,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":["CWE-121"],"affected":[{"ranges":[{"type":"python","introduced":"0","lastAffected":"6.26.1","status":"affected"}],"vendor":"Ericsson","product":"CodeChecker","platforms":["Linux"],"source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"6.26.2"}],"ecosystem":"PyPI","package":"codechecker","purl":"pkg:pypi/codechecker","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"6.26.2"}],"vendor":"ericsson","product":"codechecker","cpe":"cpe:2.3:a:ericsson:codechecker:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"6.26.2"}],"ecosystem":"PyPI","package":"codechecker","purl":"pkg:pypi/codechecker","source":"pysec"}],"references":[{"url":"https://github.com/Ericsson/codechecker/security/advisories/GHSA-5xf2-f6ch-6p8r","tags":["evidence","exploit","vendor-advisory","web"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-40843","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/Ericsson/codechecker/commit/4122eb1b43d00c880e4f0747d2ca0a674feb7a50","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/Ericsson/codechecker","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/codechecker/PYSEC-2025-100.yaml","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"ERIC","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2025-10-28T19:30:15.826Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-40843","url":"https://www.cve.org/CVERecord?id=CVE-2025-40843","licence":"CVE Terms of Use","modified":"2025-10-28T19:30:25.737Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-5xf2-f6ch-6p8r","url":"https://github.com/advisories/GHSA-5xf2-f6ch-6p8r","licence":"CC-BY-4.0","modified":"2026-06-05T14:45:49.832Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-40843","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-40843","licence":"Public domain","modified":"2026-10-08T11:10:00.250Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2025-100","url":"https://osv.dev/vulnerability/PYSEC-2025-100","licence":"CC-BY-4.0","modified":"2026-05-20T09:18:55.290Z"}],"updatedAt":"2026-11-25T22:59:06.967Z","epss":{"score":0.00197,"percentile":0.09849,"date":"2026-12-01T12:00:22.000Z"}}