{"id":"UBUNTU-CVE-2023-39070","details":"An issue in Cppcheck 2.12 dev allows a local attacker to execute arbitrary code via the removeContradiction parameter in token.cpp:1934.","modified":"2026-05-20T16:13:46.941302583Z","published":"2023-09-11T19:15:00Z","upstream":["CVE-2023-39070"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2023-39070"},{"type":"REPORT","url":"https://sourceforge.net/p/cppcheck/discussion/general/thread/fa43fb8ab1/"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2023-39070"}],"affected":[{"package":{"name":"cppcheck","ecosystem":"Ubuntu:14.04:LTS","purl":"pkg:deb/ubuntu/cppcheck?arch=source&distro=trusty"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.60.1-1","1.61-1"],"ecosystem_specific":{"binaries":[{"binary_name":"cppcheck","binary_version":"1.61-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-39070.json"}},{"package":{"name":"cppcheck","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/cppcheck?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.69-1build1","1.70-2","1.71-1","1.72-1"],"ecosystem_specific":{"binaries":[{"binary_name":"cppcheck","binary_version":"1.72-1"},{"binary_name":"cppcheck-gui","binary_version":"1.72-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-39070.json"}},{"package":{"name":"cppcheck","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/cppcheck?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.80-1","1.81-1","1.81-1build1","1.82-1"],"ecosystem_specific":{"binaries":[{"binary_name":"cppcheck","binary_version":"1.82-1"},{"binary_name":"cppcheck-gui","binary_version":"1.82-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-39070.json"}},{"package":{"name":"cppcheck","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/cppcheck?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.88-1","1.89-4","1.90-1","1.90-2","1.90-3","1.90-4","1.90-4build1"],"ecosystem_specific":{"binaries":[{"binary_name":"cppcheck","binary_version":"1.90-4build1"},{"binary_version":"1.90-4build1","binary_name":"cppcheck-gui"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-39070.json"}},{"package":{"name":"cppcheck","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/cppcheck?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.3-1","2.6-1","2.6-2","2.7-1"],"ecosystem_specific":{"binaries":[{"binary_name":"cppcheck","binary_version":"2.7-1"},{"binary_version":"2.7-1","binary_name":"cppcheck-gui"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-39070.json"}},{"package":{"name":"cppcheck","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/cppcheck?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.11-3","2.12.0-1","2.13.0-2","2.13.0-2ubuntu1","2.13.0-2ubuntu2","2.13.0-2ubuntu3"],"ecosystem_specific":{"binaries":[{"binary_name":"cppcheck","binary_version":"2.13.0-2ubuntu3"},{"binary_name":"cppcheck-gui","binary_version":"2.13.0-2ubuntu3"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-39070.json"}},{"package":{"name":"cppcheck","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/cppcheck?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.17.1-1","2.17.1-2","2.17.1-2build1"],"ecosystem_specific":{"binaries":[{"binary_name":"cppcheck","binary_version":"2.17.1-2build1"},{"binary_version":"2.17.1-2build1","binary_name":"cppcheck-gui"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-39070.json"}},{"package":{"name":"cppcheck","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/cppcheck?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.17.1-2build1","2.18.0-2","2.19.0-3"],"ecosystem_specific":{"binaries":[{"binary_name":"cppcheck","binary_version":"2.19.0-3"},{"binary_name":"cppcheck-gui","binary_version":"2.19.0-3"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-39070.json"}}],"schema_version":"1.7.5","severity":[{"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"}]}