{"id":"CVE-2020-25412","aliases":["DEBIAN-CVE-2020-25412","EUVD-2020-18099","GHSA-fw2x-mx3p-5gr5","UBUNTU-CVE-2020-25412","USN-7589-1","openSUSE-SU-2024:10800-1"],"status":"published","title":"gnuplot 5.4 is affected by a segmentation fault in com_line () at command.c, which may result in...","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.","severity":{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-10","score":0.02631,"percentile":0.85656,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-787"],"published":"2020-09-16T13:53:04Z","modified":"2026-10-26T12:02:40Z","fixes":[{"ecosystem":"Debian:13","package":"gnuplot","fixed_in":["6.0.0+dfsg1-1"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"gnuplot","fixed_in":["6.0.0+dfsg1-1"],"sources":["osv"]},{"ecosystem":"Ubuntu:Pro:20.04:LTS","package":"gnuplot","fixed_in":["5.2.8+dfsg1-2ubuntu0.1~esm1"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Debian:12","package":"gnuplot","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["5.4.4+dfsg1-2","6.0.0+dfsg1-1","6.0.0+dfsg1-2","6.0.0+dfsg1-3","6.0.2+dfsg1-1","6.0.2+dfsg1-2","6.0.3+dfsg1-1","6.0.3+dfsg1-1~exp1","6.0.3+dfsg1-1~exp2"]},{"source":"osv","ecosystem":"Debian:13","package":"gnuplot","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"6.0.0+dfsg1-1"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"gnuplot","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"6.0.0+dfsg1-1"}]}]},{"source":"osv","ecosystem":"Ubuntu:Pro:20.04:LTS","package":"gnuplot","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.2.8+dfsg1-2ubuntu0.1~esm1"}]}],"versions":["5.2.6+dfsg1-2","5.2.7+dfsg1-6","5.2.8+dfsg1-1","5.2.8+dfsg1-2"]},{"source":"osv","ecosystem":"Ubuntu:Pro:14.04:LTS","package":"gnuplot","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.6.4-2ubuntu0.1~esm1"}]}],"versions":["4.6.3-2","4.6.4-1","4.6.4-2"],"bundled":7},{"source":"osv","ecosystem":"Ubuntu:Pro:16.04:LTS","package":"gnuplot","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.6.6-3ubuntu0.1+esm1"}]}],"versions":["4.6.6-2","4.6.6-3","4.6.6-3ubuntu0.1"],"bundled":7},{"source":"osv","ecosystem":"Ubuntu:Pro:18.04:LTS","package":"gnuplot","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.2.2+dfsg1-2ubuntu1+esm1"}]}],"versions":["5.0.7+dfsg1-1","5.2.2+dfsg1-2","5.2.2+dfsg1-2ubuntu1"],"bundled":7},{"source":"osv","ecosystem":"Ubuntu:Pro:20.04:LTS","package":"gnuplot","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.2.8+dfsg1-2ubuntu0.1~esm1"}]}],"versions":["5.2.6+dfsg1-2","5.2.7+dfsg1-6","5.2.8+dfsg1-1","5.2.8+dfsg1-2"],"bundled":7},{"source":"osv","ecosystem":"openSUSE:Tumbleweed","package":"gnuplot","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.4.2-1.3"}]}],"bundled":5}],"products":[{"vendor":"gnuplot","product":"gnuplot"}],"references":[{"url":"https://sourceforge.net/p/gnuplot/bugs/2303/","tags":["x_refsource_MISC","x_transferred","Exploit","Third Party Advisory","evidence","report"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-25412"},{"url":"https://sourceforge.net/p/gnuplot/bugs/2303"},{"url":"https://github.com/advisories/GHSA-fw2x-mx3p-5gr5"},{"url":"https://security-tracker.debian.org/tracker/CVE-2020-25412","tags":["advisory"]},{"url":"https://ubuntu.com/security/CVE-2020-25412","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2020-25412","tags":["report"]},{"url":"https://ubuntu.com/security/notices/USN-7589-1","tags":["advisory"]},{"url":"https://ubuntu.com/security/CVE-2018-19490","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2018-19491","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2018-19492","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2020-25559","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2020-25969","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2021-44917","tags":["report"]},{"url":"","tags":["advisory"]},{"url":"https://www.suse.com/security/cve/CVE-2017-9670","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2018-19490","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2018-19492","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2020-25412","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2020-25559","tags":["web"]}],"sources":{"cve":[{"id":"CVE-2020-25412","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.","status":"published","published":"2020-09-16T13:53:04Z","modified":"2024-08-04T15:33:05.587Z","updated_at":"2026-11-02T14:35:48.52216Z"}],"euvd":[{"id":"EUVD-2020-18099","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.","status":"published","published":"2020-09-16T13:53:04Z","modified":"2024-08-04T15:33:05Z","updated_at":"2026-11-03T03:07:17.764085Z"}],"ghsa":[{"id":"GHSA-fw2x-mx3p-5gr5","title":"gnuplot 5.4 is affected by a segmentation fault in com_line () at command.c, which may result in...","description":"gnuplot 5.4 is affected by a segmentation fault in com_line () at command.c, which may result in context-dependent arbitrary code execution.","status":"published","published":"2022-05-24T17:28:28Z","modified":"2025-08-04T18:31:35Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"cwes":["CWE-787"],"updated_at":"2026-11-02T15:03:10.73907Z"}],"nvd":[{"id":"CVE-2020-25412","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.","status":"published","published":"2020-09-16T14:15:12.953Z","modified":"2026-06-17T03:06:48.44Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"primary"},{"version":"2.0","score":7.5,"vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","level":"high","assessor":"primary"}],"cwes":["CWE-787"],"updated_at":"2026-11-02T14:06:14.981587Z"}],"osv":[{"id":"CVE-2020-25412","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.","status":"published","published":"2020-09-16T14:15:12.953Z","modified":"2026-10-24T10:30:55.763730324Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T15:44:15.879068Z"},{"id":"DEBIAN-CVE-2020-25412","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.","status":"published","published":"2020-09-16T14:15:12.953Z","modified":"2026-10-26T12:02:40.42226683Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T15:45:33.729655Z"},{"id":"UBUNTU-CVE-2020-25412","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.","status":"published","published":"2020-09-16T14:15:00Z","modified":"2026-02-04T03:35:40.931963Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T15:54:23.905183Z"},{"id":"openSUSE-SU-2024:10800-1","title":"gnuplot-5.4.2-1.3 on GA media","description":"These are all security issues fixed in the gnuplot-5.4.2-1.3 package on the GA media of openSUSE Tumbleweed.","status":"published","published":"2024-06-15T00:00:00Z","modified":"2026-02-04T03:56:19.386336Z","updated_at":"2026-11-02T16:58:34.487567Z"},{"id":"USN-7589-1","title":"gnuplot vulnerabilities","description":"Tim Blazytko, Cornelius Aschermann, Sergej Schumilo, and Nils Bars\ndiscovered that Gnuplot had several memory-related issues. An\nattacker could possibly use these issues to cause Gnuplot to\nexperience a buffer overflow, resulting in a denial of service or\narbitrary code execution. These issues only affected Ubuntu\n14.04 LTS and Ubuntu 18.04 LTS. (CVE-2018-19490, CVE-2018-19491,\nCVE-2018-19492)\n\nIt was discovered that Gnuplot could write out-of-bounds due to\nthe use of strncpy(). An attacker could possibly use this issue\nto enable the execution of arbitrary code. This issue only\naffected Ubuntu 20.04 LTS. (CVE-2020-25412)\n\nIt was discovered that Gnuplot incorrectly freed memory when\nexecuting print_set_output(). An attacker could possibly use this\nissue to enable the execution of arbitrary code. (CVE-2020-25559)\n\nIt was discovered that Gnuplot's plotrequest() function contained\na buffer overflow. An attacker could possibly use this issue to\ncause Gnuplot to crash, resulting in a denial of service or\narbitrary code execution. (CVE-2020-25969)\n\nIt was discovered that Gnuplot's boundary3d() function could be\nmade to divide by zero. An attacker could possibly use this issue\nto cause Gnuplot to crash, resulting in a denial of service.\n(CVE-2021-44917)","status":"published","published":"2025-06-23T12:12:04Z","modified":"2026-06-25T13:32:30.390896706Z","updated_at":"2026-11-02T16:58:19.988474Z"}]}}
