CVE-2020-25412
gnuplot: out-of-bounds-write from strncpy() may lead to arbitrary code execution
Severity by source
Trivy's own label is CRITICAL. Rated critical by NVD, Photon OS. Rated lower by Red Hat (medium), Ubuntu (low).
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.
Affected packages and fixed versions
| Source | Package | Fixed in |
|---|---|---|
| Photon OS 3.0 | gnuplot | 5.4.6-1.ph3 |
| Photon OS 4.0 | gnuplot | 5.4.0-2.ph4 |
| debian 11 | gnuplot | no fix listed |
| debian 12 | gnuplot | no fix listed |
| debian 13 | gnuplot | 6.0.0+dfsg1-1 |
| debian 14 | gnuplot | 6.0.0+dfsg1-1 |
| echo | gnuplot | 6.0.0+dfsg1-1 |
| rapidfort debian 12 | gnuplot | 0:6.0.0+dfsg1-1 |
| rapidfort debian 13 | gnuplot | 0:6.0.0+dfsg1-1 |
| ubuntu 20.04-ESM | gnuplot | 5.2.8+dfsg1-2ubuntu0.1~esm1 |
References
- https://access.redhat.com/security/cve/CVE-2020-25412
- https://github.com/gnuplot/gnuplot/commit/963c7df3e0c5266efff260d0dff757dfe03d3632
- https://nvd.nist.gov/vuln/detail/CVE-2020-25412
- https://sourceforge.net/p/gnuplot/bugs/2303/
- https://ubuntu.com/security/notices/USN-7589-1
- https://www.cve.org/CVERecord?id=CVE-2020-25412