codeblocks — security advisory
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.
- Products
- codeblocks
- Affected versions
- 13.12+dfsg-4, 13.12-3.1build1, 16.01+dfsg-2.1, 17.12+dfsg-1, 17.12+dfsg-1build1, 20.03+svn13046-0.1build1, 20.03+svn13046-0.2, 20.03+svn13046-0.3build1, 20.03+svn13046-0.3build2, 20.03+svn13046-0.4, 20.03-3, 20.03-3.1, 25.03+dfsg-2, 25.03+dfsg-2.1, 25.03+dfsg-3
- Fixed versions
- Not specified
- CVEs
- CVE-2020-37040
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 00:38 UTC · Revision 1
Source evidence
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.
osv:UBUNTU-CVE-2020-37040
codeblocks
Fixed versions: Not specified
codeblocks
Fixed versions: Not specified
codeblocks
Fixed versions: Not specified
codeblocks
Fixed versions: Not specified
codeblocks
Fixed versions: Not specified
codeblocks
Fixed versions: Not specified
codeblocks
Fixed versions: Not specified
codeblocks
Fixed versions: Not specified
Complete source record
{
"id": "b90f2ce79c3e56f60cee7568b8398c44563f36814984c67a773e0bdbd3244b7b",
"url": "https://osv.dev/vulnerability/UBUNTU-CVE-2020-37040",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "UBUNTU-CVE-2020-37040",
"summary": "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.",
"evidence": "osv:UBUNTU-CVE-2020-37040",
"products": [
{
"name": {
"value": "codeblocks",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "13.12-3.1build1",
"evidence": "/affected/0/versions"
},
{
"value": "13.12+dfsg-4",
"evidence": "/affected/0/versions"
}
]
},
{
"name": {
"value": "codeblocks",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "16.01+dfsg-2.1",
"evidence": "/affected/1/versions"
}
]
},
{
"name": {
"value": "codeblocks",
"evidence": "/affected/2/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "16.01+dfsg-2.1",
"evidence": "/affected/2/versions"
},
{
"value": "17.12+dfsg-1",
"evidence": "/affected/2/versions"
},
{
"value": "17.12+dfsg-1build1",
"evidence": "/affected/2/versions"
},
{
"value": "20.03-3",
"evidence": "/affected/2/versions"
}
]
},
{
"name": {
"value": "codeblocks",
"evidence": "/affected/3/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "20.03-3",
"evidence": "/affected/3/versions"
},
{
"value": "20.03-3.1",
"evidence": "/affected/3/versions"
}
]
},
{
"name": {
"value": "codeblocks",
"evidence": "/affected/4/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "20.03+svn13046-0.1build1",
"evidence": "/affected/4/versions"
},
{
"value": "20.03+svn13046-0.2",
"evidence": "/affected/4/versions"
},
{
"value": "20.03+svn13046-0.3build1",
"evidence": "/affected/4/versions"
},
{
"value": "20.03+svn13046-0.3build2",
"evidence": "/affected/4/versions"
}
]
},
{
"name": {
"value": "codeblocks",
"evidence": "/affected/5/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "20.03+svn13046-0.4",
"evidence": "/affected/5/versions"
},
{
"value": "25.03+dfsg-2",
"evidence": "/affected/5/versions"
}
]
},
{
"name": {
"value": "codeblocks",
"evidence": "/affected/6/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "25.03+dfsg-2.1",
"evidence": "/affected/6/versions"
},
{
"value": "25.03+dfsg-3",
"evidence": "/affected/6/versions"
}
]
},
{
"name": {
"value": "codeblocks",
"evidence": "/affected/7/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "25.03+dfsg-2",
"evidence": "/affected/7/versions"
},
{
"value": "25.03+dfsg-2.1",
"evidence": "/affected/7/versions"
}
]
}
],
"severity": "high",
"structured": {
"id": "UBUNTU-CVE-2020-37040",
"aliases": [
"UBUNTU-CVE-2020-37040"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
},
{
"type": "CVSS_V4",
"score": "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"
},
{
"type": "Ubuntu",
"score": "medium"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "codeblocks",
"purl": "pkg:deb/ubuntu/codeblocks?arch=source&distro=xenial",
"ecosystem": "Ubuntu:16.04:LTS"
},
"versions": [
"13.12-3.1build1",
"13.12+dfsg-4"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-37040.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "codeblocks",
"binary_version": "13.12+dfsg-4"
},
{
"binary_name": "codeblocks-common",
"binary_version": "13.12+dfsg-4"
},
{
"binary_name": "codeblocks-contrib",
"binary_version": "13.12+dfsg-4"
},
{
"binary_name": "libcodeblocks0",
"binary_version": "13.12+dfsg-4"
},
{
"binary_name": "libwxsmithlib0",
"binary_version": "13.12+dfsg-4"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "codeblocks",
"purl": "pkg:deb/ubuntu/codeblocks?arch=source&distro=bionic",
"ecosystem": "Ubuntu:18.04:LTS"
},
"versions": [
"16.01+dfsg-2.1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-37040.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "codeblocks",
"binary_version": "16.01+dfsg-2.1"
},
{
"binary_name": "codeblocks-common",
"binary_version": "16.01+dfsg-2.1"
},
{
"binary_name": "codeblocks-contrib",
"binary_version": "16.01+dfsg-2.1"
},
{
"binary_name": "libcodeblocks0",
"binary_version": "16.01+dfsg-2.1"
},
{
"binary_name": "libwxsmithlib0",
"binary_version": "16.01+dfsg-2.1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "codeblocks",
"purl": "pkg:deb/ubuntu/codeblocks?arch=source&distro=focal",
"ecosystem": "Ubuntu:20.04:LTS"
},
"versions": [
"16.01+dfsg-2.1",
"17.12+dfsg-1",
"17.12+dfsg-1build1",
"20.03-3"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-37040.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "codeblocks",
"binary_version": "20.03-3"
},
{
"binary_name": "codeblocks-common",
"binary_version": "20.03-3"
},
{
"binary_name": "codeblocks-contrib",
"binary_version": "20.03-3"
},
{
"binary_name": "libcodeblocks0",
"binary_version": "20.03-3"
},
{
"binary_name": "libwxsmithlib0",
"binary_version": "20.03-3"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "codeblocks",
"purl": "pkg:deb/ubuntu/codeblocks?arch=source&distro=jammy",
"ecosystem": "Ubuntu:22.04:LTS"
},
"versions": [
"20.03-3",
"20.03-3.1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-37040.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "codeblocks",
"binary_version": "20.03-3.1"
},
{
"binary_name": "codeblocks-common",
"binary_version": "20.03-3.1"
},
{
"binary_name": "codeblocks-contrib",
"binary_version": "20.03-3.1"
},
{
"binary_name": "libcodeblocks0",
"binary_version": "20.03-3.1"
},
{
"binary_name": "libwxsmithlib0",
"binary_version": "20.03-3.1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "codeblocks",
"purl": "pkg:deb/ubuntu/codeblocks?arch=source&distro=noble",
"ecosystem": "Ubuntu:24.04:LTS"
},
"versions": [
"20.03+svn13046-0.1build1",
"20.03+svn13046-0.2",
"20.03+svn13046-0.3build1",
"20.03+svn13046-0.3build2"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-37040.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "codeblocks",
"binary_version": "20.03+svn13046-0.3build2"
},
{
"binary_name": "codeblocks-common",
"binary_version": "20.03+svn13046-0.3build2"
},
{
"binary_name": "codeblocks-contrib",
"binary_version": "20.03+svn13046-0.3build2"
},
{
"binary_name": "libcodeblocks0t64",
"binary_version": "20.03+svn13046-0.3build2"
},
{
"binary_name": "libwxsmithlib0t64",
"binary_version": "20.03+svn13046-0.3build2"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "codeblocks",
"purl": "pkg:deb/ubuntu/codeblocks?arch=source&distro=questing",
"ecosystem": "Ubuntu:25.10"
},
"versions": [
"20.03+svn13046-0.4",
"25.03+dfsg-2"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-37040.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "codeblocks",
"binary_version": "25.03+dfsg-2"
},
{
"binary_name": "codeblocks-common",
"binary_version": "25.03+dfsg-2"
},
{
"binary_name": "codeblocks-contrib",
"binary_version": "25.03+dfsg-2"
},
{
"binary_name": "libcodeblocks0t64",
"binary_version": "25.03+dfsg-2"
},
{
"binary_name": "libwxsmithlib0t64",
"binary_version": "25.03+dfsg-2"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "codeblocks",
"purl": "pkg:deb/ubuntu/codeblocks?arch=source&distro=stonking",
"ecosystem": "Ubuntu:26.10"
},
"versions": [
"25.03+dfsg-2.1",
"25.03+dfsg-3"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-37040.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "codeblocks",
"binary_version": "25.03+dfsg-3"
},
{
"binary_name": "codeblocks-common",
"binary_version": "25.03+dfsg-3"
},
{
"binary_name": "codeblocks-contrib",
"binary_version": "25.03+dfsg-3"
},
{
"binary_name": "libcodeblocks0t64",
"binary_version": "25.03+dfsg-3"
},
{
"binary_name": "libwxsmithlib0t64",
"binary_version": "25.03+dfsg-3"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "codeblocks",
"purl": "pkg:deb/ubuntu/codeblocks?arch=source&distro=resolute",
"ecosystem": "Ubuntu:26.04:LTS"
},
"versions": [
"25.03+dfsg-2",
"25.03+dfsg-2.1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-37040.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "codeblocks",
"binary_version": "25.03+dfsg-2.1"
},
{
"binary_name": "codeblocks-common",
"binary_version": "25.03+dfsg-2.1"
},
{
"binary_name": "codeblocks-contrib",
"binary_version": "25.03+dfsg-2.1"
},
{
"binary_name": "libcodeblocks0t64",
"binary_version": "25.03+dfsg-2.1"
},
{
"binary_name": "libwxsmithlib0t64",
"binary_version": "25.03+dfsg-2.1"
}
]
}
}
],
"modified": "2026-10-17T12:55:53.309151006Z",
"provider": "osv",
"upstream": [
"CVE-2020-37040"
],
"references": [
"https://ubuntu.com/security/CVE-2020-37040",
"https://www.cve.org/CVERecord?id=CVE-2020-37040",
"https://www.exploit-db.com/exploits/48594",
"https://sourceforge.net/projects/codeblocks",
"https://www.vulncheck.com/advisories/code-blocks-file-name-local-buffer-overflow"
]
},
"related_cves": [
{
"value": "CVE-2020-37040",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 354226,
"published_at": "2026-01-30T23:16:00+00:00"
}