Vulnerabilities / CVE-2020-25412

critical

CVE-2020-25412

gnuplot: out-of-bounds-write from strncpy() may lead to arbitrary code execution

Published Modified CWE 787
In the Trivy database since at least 24 Oct 2026, 07:11 UTCWhen it arrived before that build is not recorded.

Severity by source

NVD9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Red Hat7.8CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

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

SourcePackageFixed in
Photon OS 3.0gnuplot5.4.6-1.ph3
Photon OS 4.0gnuplot5.4.0-2.ph4
debian 11gnuplotno fix listed
debian 12gnuplotno fix listed
debian 13gnuplot6.0.0+dfsg1-1
debian 14gnuplot6.0.0+dfsg1-1
echognuplot6.0.0+dfsg1-1
rapidfort debian 12gnuplot0:6.0.0+dfsg1-1
rapidfort debian 13gnuplot0:6.0.0+dfsg1-1
ubuntu 20.04-ESMgnuplot5.2.8+dfsg1-2ubuntu0.1~esm1

References

Vulnerability data compiled from the Trivy vulnerability database (trivy-db, Aqua Security, Apache License 2.0), which aggregates third-party advisories. CVE records are published by The MITRE Corporation under the CVE Terms of Use; CVE is a trademark of MITRE. This product uses data from the NVD API but is not endorsed or certified by the NVD. Severity, titles and advisory data from the GitHub Advisory Database (CC BY 4.0), Red Hat security data (CC BY 4.0) and the other sources linked on each entry. Entries may be summarised or re-formatted; the linked original is the authoritative record.