{"id":"CVE-2020-37040","aliases":["DEBIAN-CVE-2020-37040","EUVD-2020-30938","GHSA-6rp6-p89c-5fpr","UBUNTU-CVE-2020-37040"],"status":"published","title":"Code Blocks 17.12 - 'File Name' Local Buffer Overflow","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.","severity":{"version":"4.0","score":8.4,"vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","level":"high","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-09","score":0.00208,"percentile":0.11002,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":false},"cwes":["CWE-120"],"published":"2026-01-30T22:07:14Z","modified":"2026-10-17T12:55:53Z","affected":[{"source":"osv","ecosystem":"Ubuntu:16.04:LTS","package":"codeblocks","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["13.12-3.1build1","13.12+dfsg-4"]},{"source":"osv","ecosystem":"Ubuntu:18.04:LTS","package":"codeblocks","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["16.01+dfsg-2.1"]},{"source":"osv","ecosystem":"Ubuntu:20.04:LTS","package":"codeblocks","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["16.01+dfsg-2.1","17.12+dfsg-1","17.12+dfsg-1build1","20.03-3"]},{"source":"osv","ecosystem":"Ubuntu:22.04:LTS","package":"codeblocks","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["20.03-3","20.03-3.1"]},{"source":"osv","ecosystem":"Ubuntu:24.04:LTS","package":"codeblocks","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["20.03+svn13046-0.1build1","20.03+svn13046-0.2","20.03+svn13046-0.3build1","20.03+svn13046-0.3build2"]},{"source":"osv","ecosystem":"Ubuntu:25.10","package":"codeblocks","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["20.03+svn13046-0.4","25.03+dfsg-2"]},{"source":"osv","ecosystem":"Ubuntu:26.10","package":"codeblocks","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["25.03+dfsg-2.1","25.03+dfsg-3"]},{"source":"osv","ecosystem":"Ubuntu:26.04:LTS","package":"codeblocks","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["25.03+dfsg-2","25.03+dfsg-2.1"]}],"products":[{"vendor":"code::blocks","product":"code::blocks"}],"references":[{"url":"https://www.exploit-db.com/exploits/48594","tags":["exploit","report"]},{"url":"http://www.codeblocks.org/","tags":["product","report"]},{"url":"https://sourceforge.net/projects/codeblocks","tags":["product","report"]},{"url":"https://www.vulncheck.com/advisories/code-blocks-file-name-local-buffer-overflow","tags":["third-party-advisory","report"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-37040"},{"url":"http://www.codeblocks.org"},{"url":"https://github.com/advisories/GHSA-6rp6-p89c-5fpr"},{"url":"https://security-tracker.debian.org/tracker/CVE-2020-37040","tags":["advisory"]},{"url":"https://ubuntu.com/security/CVE-2020-37040","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2020-37040","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2020-37040","title":"Code Blocks 17.12 - 'File Name' Local Buffer Overflow","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.","status":"published","published":"2026-01-30T22:07:14.851Z","modified":"2026-07-28T01:47:07.875Z","cvss":[{"version":"4.0","score":8.4,"vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","level":"high","assessor":"cna"},{"version":"3.1","score":8.4,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"high","assessor":"cna"}],"cwes":["CWE-120"],"updated_at":"2026-11-02T14:35:47.22408Z"}],"euvd":[{"id":"EUVD-2020-30938","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.","status":"published","published":"2026-01-30T22:07:14Z","modified":"2026-07-28T01:47:07Z","cvss":[{"version":"4.0","score":8.4,"vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","level":"high"}],"updated_at":"2026-11-02T18:02:32.984181Z"}],"ghsa":[{"id":"GHSA-6rp6-p89c-5fpr","title":"Code Blocks 17.12 contains a local buffer overflow vulnerability that allows attackers to execute...","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.","status":"published","published":"2026-01-31T00:30:29Z","modified":"2026-01-31T00:30:36Z","cvss":[{"version":"3.1","score":8.4,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"high"},{"version":"4.0","score":8.4,"vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","level":"high"}],"cwes":["CWE-120"],"updated_at":"2026-11-02T15:05:59.660813Z"}],"nvd":[{"id":"CVE-2020-37040","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.","status":"published","published":"2026-01-30T23:16:09.587Z","modified":"2026-06-17T03:16:49.417Z","cvss":[{"version":"4.0","score":8.4,"vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","level":"high","assessor":"secondary"},{"version":"3.1","score":8.4,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"high","assessor":"secondary"}],"cwes":["CWE-120"],"updated_at":"2026-11-02T14:06:48.591569Z"}],"osv":[{"id":"DEBIAN-CVE-2020-37040","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.","status":"withdrawn","published":"2026-01-30T23:16:09.587Z","modified":"2026-05-01T20:01:49.379453Z","cvss":[{"version":"3.1","score":8.4,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:45:34.019707Z"},{"id":"UBUNTU-CVE-2020-37040","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.","status":"published","published":"2026-01-30T23:16:00Z","modified":"2026-10-17T12:55:53.309151006Z","cvss":[{"version":"3.1","score":8.4,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"high"},{"version":"4.0","score":8.4,"vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","level":"high"}],"updated_at":"2026-11-02T15:54:25.179924Z"}]}}
