UBUNTU-CVE-2020-37040

Source
https://ubuntu.com/security/CVE-2020-37040
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-37040.json
JSON Data
https://api.osv.dev/v1/vulns/UBUNTU-CVE-2020-37040
Upstream
  • CVE-2020-37040
Published
2026-01-30T23:16:00Z
Modified
2026-02-04T17:03:15Z
Severity
  • 8.4 (High) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
  • 8.4 (High) CVSS_V4 - 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 CVSS Calculator
  • Ubuntu - medium
Summary
[none]
Details

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.

References

Affected packages

Ubuntu:16.04:LTS
codeblocks

Package

Name
codeblocks
Purl
pkg:deb/ubuntu/codeblocks@13.12+dfsg-4?arch=source&distro=xenial

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

13.*
13.12-3.1build1
13.12+dfsg-4

Ecosystem specific

{
    "binaries": [
        {
            "binary_version": "13.12+dfsg-4",
            "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": "codeblocks-dev"
        },
        {
            "binary_version": "13.12+dfsg-4",
            "binary_name": "libcodeblocks0"
        },
        {
            "binary_version": "13.12+dfsg-4",
            "binary_name": "libwxsmithlib-dev"
        },
        {
            "binary_version": "13.12+dfsg-4",
            "binary_name": "libwxsmithlib0"
        },
        {
            "binary_version": "13.12+dfsg-4",
            "binary_name": "libwxsmithlib0-dev"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-37040.json"
Ubuntu:18.04:LTS
codeblocks

Package

Name
codeblocks
Purl
pkg:deb/ubuntu/codeblocks@16.01+dfsg-2.1?arch=source&distro=bionic

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

16.*
16.01+dfsg-2.1

Ecosystem specific

{
    "binaries": [
        {
            "binary_version": "16.01+dfsg-2.1",
            "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": "codeblocks-dev"
        },
        {
            "binary_version": "16.01+dfsg-2.1",
            "binary_name": "libcodeblocks0"
        },
        {
            "binary_version": "16.01+dfsg-2.1",
            "binary_name": "libwxsmithlib-dev"
        },
        {
            "binary_version": "16.01+dfsg-2.1",
            "binary_name": "libwxsmithlib0"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-37040.json"
Ubuntu:20.04:LTS
codeblocks

Package

Name
codeblocks
Purl
pkg:deb/ubuntu/codeblocks@20.03-3?arch=source&distro=focal

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

16.*
16.01+dfsg-2.1
17.*
17.12+dfsg-1
17.12+dfsg-1build1
20.*
20.03-3

Ecosystem specific

{
    "binaries": [
        {
            "binary_version": "20.03-3",
            "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": "codeblocks-dev"
        },
        {
            "binary_version": "20.03-3",
            "binary_name": "libcodeblocks0"
        },
        {
            "binary_version": "20.03-3",
            "binary_name": "libwxsmithlib-dev"
        },
        {
            "binary_version": "20.03-3",
            "binary_name": "libwxsmithlib0"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-37040.json"
Ubuntu:22.04:LTS
codeblocks

Package

Name
codeblocks
Purl
pkg:deb/ubuntu/codeblocks@20.03-3.1?arch=source&distro=jammy

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

20.*
20.03-3
20.03-3.1

Ecosystem specific

{
    "binaries": [
        {
            "binary_version": "20.03-3.1",
            "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": "codeblocks-dev"
        },
        {
            "binary_version": "20.03-3.1",
            "binary_name": "libcodeblocks0"
        },
        {
            "binary_version": "20.03-3.1",
            "binary_name": "libwxsmithlib-dev"
        },
        {
            "binary_version": "20.03-3.1",
            "binary_name": "libwxsmithlib0"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-37040.json"
Ubuntu:24.04:LTS
codeblocks

Package

Name
codeblocks
Purl
pkg:deb/ubuntu/codeblocks@20.03+svn13046-0.3build2?arch=source&distro=noble

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

20.*
20.03+svn13046-0.1build1
20.03+svn13046-0.2
20.03+svn13046-0.3build1
20.03+svn13046-0.3build2

Ecosystem specific

{
    "binaries": [
        {
            "binary_version": "20.03+svn13046-0.3build2",
            "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": "codeblocks-dev"
        },
        {
            "binary_version": "20.03+svn13046-0.3build2",
            "binary_name": "libcodeblocks0t64"
        },
        {
            "binary_version": "20.03+svn13046-0.3build2",
            "binary_name": "libwxsmithlib-dev"
        },
        {
            "binary_version": "20.03+svn13046-0.3build2",
            "binary_name": "libwxsmithlib0t64"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-37040.json"
Ubuntu:25.10
codeblocks

Package

Name
codeblocks
Purl
pkg:deb/ubuntu/codeblocks@25.03+dfsg-2?arch=source&distro=questing

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

20.*
20.03+svn13046-0.4
25.*
25.03+dfsg-2

Ecosystem specific

{
    "binaries": [
        {
            "binary_version": "25.03+dfsg-2",
            "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": "codeblocks-dev"
        },
        {
            "binary_version": "25.03+dfsg-2",
            "binary_name": "libcodeblocks0t64"
        },
        {
            "binary_version": "25.03+dfsg-2",
            "binary_name": "libwxsmithlib-dev"
        },
        {
            "binary_version": "25.03+dfsg-2",
            "binary_name": "libwxsmithlib0t64"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-37040.json"