Buffer overflow in Code::blocks

CVE-2020-37040

Code Blocks 17.12 contains a local buffer overflow vulnerability that allows attackers to execute arbitrary code by crafting a malicious file name with Unicode characters. Attackers can trigger the vulnerability by pasting a specially crafted payload into the file name field during project creation, potentially executing system commands like calc.exe.

Vulnerability class: Buffer Overflow

EPSS: 0.002 (8.7th percentile) — read the EPSS interpretation.

CVSS v3 metric

CVSS v3 base score 8.4 (High). Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.

Affected products

Weakness classification (CWE)

References

Frequently asked questions

What is CVE-2020-37040?
CVE-2020-37040 is a high-severity vulnerability in Code::blocks, classified under Buffer Copy without Checking Size of Input (Classic Buffer Overflow). CVSS score: 8.4/10. Published 2026-01-30.
How severe is CVE-2020-37040?
High severity. CVSS v3 base score is 8.4 out of 10.