Description
com_line() in command.c in gnuplot 5.4 leads to an out-of-bounds-write from strncpy() that may lead to arbitrary code execution.
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 | gnuplot | 6.0.0+dfsg1-1 | — |
| Debian 13 | gnuplot | 6.0.0+dfsg1-1 | — |
| Debian 12 | gnuplot | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 20.04 LTS | gnuplot | 5.2.8+dfsg1-2ubuntu0.1~esm1 | USN-7589-1 |
| Ubuntu Pro 18.04 LTS | gnuplot | 5.2.2+dfsg1-2ubuntu1+esm1 | USN-7589-1 |
| Ubuntu Pro 16.04 LTS | gnuplot | 4.6.6-3ubuntu0.1+esm1 | USN-7589-1 |
Show 1 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 14.04 LTS | gnuplot | 4.6.4-2ubuntu0.1~esm1 | USN-7589-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | gnuplot | 5.4.2-1.3 | openSUSE-SU-2024:10800-1 |
Advisories 2
- USN-7589-1 gnuplot vulnerabilities Ubuntu Security Notices (USN) · Jun 25, 2026
- openSUSE-SU-2024:10800-1 gnuplot-5.4.2-1.3 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026