High
cppcheck — security advisory
An issue in Cppcheck 2.12 dev allows a local attacker to execute arbitrary code via the removeContradiction parameter in token.cpp:1934.
- Products
- cppcheck
- Affected versions
- 1.60.1-1, 1.61-1, 1.69-1build1, 1.70-2, 1.71-1, 1.72-1, 1.80-1, 1.81-1, 1.81-1build1, 1.82-1, 1.88-1, 1.89-4, 1.90-1, 1.90-2, 1.90-3, 1.90-4, 1.90-4build1, 2.11-3, 2.12.0-1, 2.13.0-2, 2.13.0-2ubuntu1, 2.13.0-2ubuntu2, 2.13.0-2ubuntu3, 2.17.1-1, 2.17.1-2, 2.17.1-2build1, 2.18.0-2, 2.19.0-3, 2.20.0-2, 2.21.0-1, 2.3-1, 2.6-1, 2.6-2, 2.7-1
- Fixed versions
- Not specified
- CVEs
- CVE-2023-39070
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 01:05 UTC · Revision 1
Source evidence
An issue in Cppcheck 2.12 dev allows a local attacker to execute arbitrary code via the removeContradiction parameter in token.cpp:1934.
osv:UBUNTU-CVE-2023-39070
cppcheck
Fixed versions: Not specified
cppcheck
Fixed versions: Not specified
cppcheck
Fixed versions: Not specified
cppcheck
Fixed versions: Not specified
cppcheck
Fixed versions: Not specified
cppcheck
Fixed versions: Not specified
cppcheck
Fixed versions: Not specified
cppcheck
Fixed versions: Not specified
cppcheck
Fixed versions: Not specified
Complete source record
{
"id": "7d2f2a44ba3d77b20a0783cb25a84e855fd54d62e08f4998f46a4b10d477c805",
"url": "https://osv.dev/vulnerability/UBUNTU-CVE-2023-39070",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "UBUNTU-CVE-2023-39070",
"summary": "An issue in Cppcheck 2.12 dev allows a local attacker to execute arbitrary code via the removeContradiction parameter in token.cpp:1934.",
"evidence": "osv:UBUNTU-CVE-2023-39070",
"products": [
{
"name": {
"value": "cppcheck",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1.60.1-1",
"evidence": "/affected/0/versions"
},
{
"value": "1.61-1",
"evidence": "/affected/0/versions"
}
]
},
{
"name": {
"value": "cppcheck",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1.69-1build1",
"evidence": "/affected/1/versions"
},
{
"value": "1.70-2",
"evidence": "/affected/1/versions"
},
{
"value": "1.71-1",
"evidence": "/affected/1/versions"
},
{
"value": "1.72-1",
"evidence": "/affected/1/versions"
}
]
},
{
"name": {
"value": "cppcheck",
"evidence": "/affected/2/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1.80-1",
"evidence": "/affected/2/versions"
},
{
"value": "1.81-1",
"evidence": "/affected/2/versions"
},
{
"value": "1.81-1build1",
"evidence": "/affected/2/versions"
},
{
"value": "1.82-1",
"evidence": "/affected/2/versions"
}
]
},
{
"name": {
"value": "cppcheck",
"evidence": "/affected/3/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1.88-1",
"evidence": "/affected/3/versions"
},
{
"value": "1.89-4",
"evidence": "/affected/3/versions"
},
{
"value": "1.90-1",
"evidence": "/affected/3/versions"
},
{
"value": "1.90-2",
"evidence": "/affected/3/versions"
},
{
"value": "1.90-3",
"evidence": "/affected/3/versions"
},
{
"value": "1.90-4",
"evidence": "/affected/3/versions"
},
{
"value": "1.90-4build1",
"evidence": "/affected/3/versions"
}
]
},
{
"name": {
"value": "cppcheck",
"evidence": "/affected/4/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "2.3-1",
"evidence": "/affected/4/versions"
},
{
"value": "2.6-1",
"evidence": "/affected/4/versions"
},
{
"value": "2.6-2",
"evidence": "/affected/4/versions"
},
{
"value": "2.7-1",
"evidence": "/affected/4/versions"
}
]
},
{
"name": {
"value": "cppcheck",
"evidence": "/affected/5/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "2.11-3",
"evidence": "/affected/5/versions"
},
{
"value": "2.12.0-1",
"evidence": "/affected/5/versions"
},
{
"value": "2.13.0-2",
"evidence": "/affected/5/versions"
},
{
"value": "2.13.0-2ubuntu1",
"evidence": "/affected/5/versions"
},
{
"value": "2.13.0-2ubuntu2",
"evidence": "/affected/5/versions"
},
{
"value": "2.13.0-2ubuntu3",
"evidence": "/affected/5/versions"
}
]
},
{
"name": {
"value": "cppcheck",
"evidence": "/affected/6/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "2.17.1-1",
"evidence": "/affected/6/versions"
},
{
"value": "2.17.1-2",
"evidence": "/affected/6/versions"
},
{
"value": "2.17.1-2build1",
"evidence": "/affected/6/versions"
}
]
},
{
"name": {
"value": "cppcheck",
"evidence": "/affected/7/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "2.19.0-3",
"evidence": "/affected/7/versions"
},
{
"value": "2.20.0-2",
"evidence": "/affected/7/versions"
},
{
"value": "2.21.0-1",
"evidence": "/affected/7/versions"
}
]
},
{
"name": {
"value": "cppcheck",
"evidence": "/affected/8/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "2.17.1-2build1",
"evidence": "/affected/8/versions"
},
{
"value": "2.18.0-2",
"evidence": "/affected/8/versions"
},
{
"value": "2.19.0-3",
"evidence": "/affected/8/versions"
}
]
}
],
"severity": "high",
"structured": {
"id": "UBUNTU-CVE-2023-39070",
"aliases": [
"UBUNTU-CVE-2023-39070"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
},
{
"type": "Ubuntu",
"score": "medium"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "cppcheck",
"purl": "pkg:deb/ubuntu/cppcheck?arch=source&distro=trusty",
"ecosystem": "Ubuntu:14.04:LTS"
},
"versions": [
"1.60.1-1",
"1.61-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-39070.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "cppcheck",
"binary_version": "1.61-1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "cppcheck",
"purl": "pkg:deb/ubuntu/cppcheck?arch=source&distro=xenial",
"ecosystem": "Ubuntu:16.04:LTS"
},
"versions": [
"1.69-1build1",
"1.70-2",
"1.71-1",
"1.72-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-39070.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "cppcheck",
"binary_version": "1.72-1"
},
{
"binary_name": "cppcheck-gui",
"binary_version": "1.72-1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "cppcheck",
"purl": "pkg:deb/ubuntu/cppcheck?arch=source&distro=bionic",
"ecosystem": "Ubuntu:18.04:LTS"
},
"versions": [
"1.80-1",
"1.81-1",
"1.81-1build1",
"1.82-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-39070.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "cppcheck",
"binary_version": "1.82-1"
},
{
"binary_name": "cppcheck-gui",
"binary_version": "1.82-1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "cppcheck",
"purl": "pkg:deb/ubuntu/cppcheck?arch=source&distro=focal",
"ecosystem": "Ubuntu:20.04:LTS"
},
"versions": [
"1.88-1",
"1.89-4",
"1.90-1",
"1.90-2",
"1.90-3",
"1.90-4",
"1.90-4build1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-39070.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "cppcheck",
"binary_version": "1.90-4build1"
},
{
"binary_name": "cppcheck-gui",
"binary_version": "1.90-4build1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "cppcheck",
"purl": "pkg:deb/ubuntu/cppcheck?arch=source&distro=jammy",
"ecosystem": "Ubuntu:22.04:LTS"
},
"versions": [
"2.3-1",
"2.6-1",
"2.6-2",
"2.7-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-39070.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "cppcheck",
"binary_version": "2.7-1"
},
{
"binary_name": "cppcheck-gui",
"binary_version": "2.7-1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "cppcheck",
"purl": "pkg:deb/ubuntu/cppcheck?arch=source&distro=noble",
"ecosystem": "Ubuntu:24.04:LTS"
},
"versions": [
"2.11-3",
"2.12.0-1",
"2.13.0-2",
"2.13.0-2ubuntu1",
"2.13.0-2ubuntu2",
"2.13.0-2ubuntu3"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-39070.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "cppcheck",
"binary_version": "2.13.0-2ubuntu3"
},
{
"binary_name": "cppcheck-gui",
"binary_version": "2.13.0-2ubuntu3"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "cppcheck",
"purl": "pkg:deb/ubuntu/cppcheck?arch=source&distro=questing",
"ecosystem": "Ubuntu:25.10"
},
"versions": [
"2.17.1-1",
"2.17.1-2",
"2.17.1-2build1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-39070.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "cppcheck",
"binary_version": "2.17.1-2build1"
},
{
"binary_name": "cppcheck-gui",
"binary_version": "2.17.1-2build1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "cppcheck",
"purl": "pkg:deb/ubuntu/cppcheck?arch=source&distro=stonking",
"ecosystem": "Ubuntu:26.10"
},
"versions": [
"2.19.0-3",
"2.20.0-2",
"2.21.0-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-39070.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "cppcheck",
"binary_version": "2.21.0-1"
},
{
"binary_name": "cppcheck-gui",
"binary_version": "2.21.0-1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "cppcheck",
"purl": "pkg:deb/ubuntu/cppcheck?arch=source&distro=resolute",
"ecosystem": "Ubuntu:26.04:LTS"
},
"versions": [
"2.17.1-2build1",
"2.18.0-2",
"2.19.0-3"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-39070.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "cppcheck",
"binary_version": "2.19.0-3"
},
{
"binary_name": "cppcheck-gui",
"binary_version": "2.19.0-3"
}
]
}
}
],
"modified": "2026-10-17T12:56:25.681790396Z",
"provider": "osv",
"upstream": [
"CVE-2023-39070"
],
"references": [
"https://ubuntu.com/security/CVE-2023-39070",
"https://sourceforge.net/p/cppcheck/discussion/general/thread/fa43fb8ab1/",
"https://www.cve.org/CVERecord?id=CVE-2023-39070"
]
},
"related_cves": [
{
"value": "CVE-2023-39070",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 355625,
"published_at": "2023-09-11T19:15:00+00:00"
}