CVE-2020-25412
gnuplot 5.4 is affected by a segmentation fault in com_line () at command.c, which may result in...
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.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- None
What an attacker can affect
- Confidentiality
- High
- Integrity
- High
- Availability
- High
Exploit likelihood
What each source reports
NVD Score used
9.8
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.
- Record
CVE-2020-25412- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - CVSS 2.0
- 7.5 High
AV:N/AC:L/Au:N/C:P/I:P/A:P - Weakness
- CWE-787
- Updated
- 2026-11-02
CVE List No score
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.
- Record
CVE-2020-25412- Updated
- 2026-11-02
EUVDEUVD-2020-18099 No score
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.
- Record
EUVD-2020-18099- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-fw2x-mx3p-5gr5
9.8
gnuplot 5.4 is affected by a segmentation fault in com_line () at command.c, which may result in...
gnuplot 5.4 is affected by a segmentation fault in com_line () at command.c, which may result in context-dependent arbitrary code execution.
- Record
GHSA-fw2x-mx3p-5gr5- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Weakness
- CWE-787
- Updated
- 2026-11-02
OSV
9.8
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.
- Record
CVE-2020-25412- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVDEBIAN-CVE-2020-25412
9.8
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.
- Record
DEBIAN-CVE-2020-25412- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVUBUNTU-CVE-2020-25412
9.8
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.
- Record
UBUNTU-CVE-2020-25412- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVopenSUSE-SU-2024:10800-1 No score
gnuplot-5.4.2-1.3 on GA media
These are all security issues fixed in the gnuplot-5.4.2-1.3 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2024:10800-1- Updated
- 2026-11-02
OSVUSN-7589-1 No score
gnuplot vulnerabilities
Tim Blazytko, Cornelius Aschermann, Sergej Schumilo, and Nils Bars discovered that Gnuplot had several memory-related issues. An attacker could possibly use these issues to cause Gnuplot to experience a buffer overflow, resulting in a denial of service or arbitrary code execution. These issues only affected Ubuntu 14.04 LTS and Ubuntu 18.04 LTS. (CVE-2018-19490, CVE-2018-19491, CVE-2018-19492)
It was discovered that Gnuplot could write out-of-bounds due to the use of strncpy(). An attacker could possibly use this issue to enable the execution of arbitrary code. This issue only affected Ubuntu 20.04 LTS. (CVE-2020-25412)
It was discovered that Gnuplot incorrectly freed memory when executing print_set_output(). An attacker could possibly use this issue to enable the execution of arbitrary code. (CVE-2020-25559)
It was discovered that Gnuplot's plotrequest() function contained a buffer overflow. An attacker could possibly use this issue to cause Gnuplot to crash, resulting in a denial of service or arbitrary code execution. (CVE-2020-25969)
It was discovered that Gnuplot's boundary3d() function could be made to divide by zero. An attacker could possibly use this issue to cause Gnuplot to crash, resulting in a denial of service. (CVE-2021-44917)
- Record
USN-7589-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
gnuplotDebian:12 |
All versions, plus listed versions 5.4.4+dfsg1-26.0.0+dfsg1-16.0.0+dfsg1-26.0.0+dfsg1-36.0.2+dfsg1-1 Show 4 moreShow less6.0.2+dfsg1-26.0.3+dfsg1-16.0.3+dfsg1-1~exp16.0.3+dfsg1-1~exp2 |
None known |
gnuplotDebian:13 |
before 6.0.0+dfsg1-1 | 6.0.0+dfsg1-1 |
gnuplotDebian:14 |
before 6.0.0+dfsg1-1 | 6.0.0+dfsg1-1 |
gnuplotUbuntu:Pro:20.04:LTS |
before 5.2.8+dfsg1-2ubuntu0.1~esm1, plus listed versions 5.2.6+dfsg1-25.2.7+dfsg1-65.2.8+dfsg1-15.2.8+dfsg1-2 |
5.2.8+dfsg1-2ubuntu0.1~esm1 |
gnuplotUbuntu:Pro:14.04:LTS From an advisory covering 7 CVEs |
before 4.6.4-2ubuntu0.1~esm1, plus listed versions 4.6.3-24.6.4-14.6.4-2 |
4.6.4-2ubuntu0.1~esm1 |
gnuplotUbuntu:Pro:16.04:LTS From an advisory covering 7 CVEs |
before 4.6.6-3ubuntu0.1+esm1, plus listed versions 4.6.6-24.6.6-34.6.6-3ubuntu0.1 |
4.6.6-3ubuntu0.1+esm1 |
gnuplotUbuntu:Pro:18.04:LTS From an advisory covering 7 CVEs |
before 5.2.2+dfsg1-2ubuntu1+esm1, plus listed versions 5.0.7+dfsg1-15.2.2+dfsg1-25.2.2+dfsg1-2ubuntu1 |
5.2.2+dfsg1-2ubuntu1+esm1 |
gnuplotUbuntu:Pro:20.04:LTS From an advisory covering 7 CVEs |
before 5.2.8+dfsg1-2ubuntu0.1~esm1, plus listed versions 5.2.6+dfsg1-25.2.7+dfsg1-65.2.8+dfsg1-15.2.8+dfsg1-2 |
5.2.8+dfsg1-2ubuntu0.1~esm1 |
gnuplotopenSUSE:Tumbleweed From an advisory covering 5 CVEs |
before 5.4.2-1.3 | 5.4.2-1.3 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, facts | ||
| aliases | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2020-25412 is a critical vulnerability (CVSS 9.8) in Gnuplot, published September 16, 2020. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 2.63%, the 85th percentile. Fixed in gnuplot 6.0.0+dfsg1-1.
References
sourceforge.net/p/gnuplot/bugs/2303
nvd.nist.gov/vuln/detail/CVE-2020-25412
github.com/advisories/GHSA-fw2x-mx3p-5gr5
security-tracker.debian.org/tracker/CVE-2020-25412
ubuntu.com/security/CVE-2020-25412
cve.org/CVERecord?id=CVE-2020-25412
Show 12 moreShow less
ubuntu.com/security/notices/USN-7589-1
ubuntu.com/security/CVE-2018-19490
ubuntu.com/security/CVE-2018-19491
ubuntu.com/security/CVE-2018-19492
ubuntu.com/security/CVE-2020-25559
ubuntu.com/security/CVE-2020-25969
ubuntu.com/security/CVE-2021-44917
suse.com/security/cve/CVE-2017-9670
suse.com/security/cve/CVE-2018-19490
suse.com/security/cve/CVE-2018-19492
suse.com/security/cve/CVE-2020-25412
suse.com/security/cve/CVE-2020-25559