Description
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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Code::Blocks | Code::Blocks | 17.12 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | codeblocks | No fix yet | — |
| Ubuntu 26.04 LTS | codeblocks | No fix yet | — |
| Ubuntu 25.10 | codeblocks | No fix yet | — |
| Ubuntu 24.04 LTS | codeblocks | No fix yet | — |
| Ubuntu 22.04 LTS | codeblocks | No fix yet | — |
Show 3 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 20.04 LTS | codeblocks | No fix yet | — |
| Ubuntu 18.04 LTS | codeblocks | No fix yet | — |
| Ubuntu 16.04 LTS | codeblocks | No fix yet | — |
References
- ExploitDB-48594 exploit
- Code Blocks Official Website product
- Code Blocks SourceForge Page product
- VulnCheck Advisory: Code Blocks 17.12 - 'File Name' Local Buffer Overflow third-party-advisory