Description
An issue in Cppcheck 2.12 dev allows a local attacker to execute arbitrary code via the removeContradiction parameter in token.cpp:1934.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | cppcheck | No fix yet | — |
| Debian 13 | cppcheck | No fix yet | — |
| Debian 12 | cppcheck | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | cppcheck | No fix yet | — |
| Ubuntu 26.04 LTS | cppcheck | No fix yet | — |
| Ubuntu 25.10 | cppcheck | No fix yet | — |
| Ubuntu 24.04 LTS | cppcheck | No fix yet | — |
| Ubuntu 22.04 LTS | cppcheck | No fix yet | — |
Show 4 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 20.04 LTS | cppcheck | No fix yet | — |
| Ubuntu 18.04 LTS | cppcheck | No fix yet | — |
| Ubuntu 16.04 LTS | cppcheck | No fix yet | — |
| Ubuntu 14.04 LTS | cppcheck | No fix yet | — |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SUSE Package Hub 15 SP5 | cppcheck | 2.12.1-bp155.2.3.1 | openSUSE-SU-2023:0413-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | cppcheck | 2.12.1-3.1 | openSUSE-SU-2024:13526-1 |
| openSUSE Leap 15.5 | cppcheck | 2.12.1-bp155.2.3.1 | openSUSE-SU-2023:0413-1 |
Azure Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Azure Linux 3 | cppcheck | 2.18.3-1 | — |
| Azure Linux 2 (CBL-Mariner) | cppcheck | No fix yet | — |
Advisories 2
- openSUSE-SU-2024:13526-1 cppcheck-2.12.1-3.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2023:0413-1 Security update for cppcheck SUSE / openSUSE Security Updates · Feb 4, 2026