CVE-2025-31177: gnuplot is affected by a heap buffer overflow at function utf8_copy_one
Affects gnuplotSource GCVE Database
Not known to be exploited · CVSS 5.5 Medium · fixed in 5.2.2+dfsg1-2ubuntu1+esm2 : update gnuplot when convenient.
Data as of 24 Nov 2026, 19:55 UTC
Thin evidence
One scorer or none| CNA (redhat) | CVSS 3.1 | 5.5 |
|---|
- Patch
- Available – fixed in 5.2.2+dfsg1-2ubuntu1+esm2, 5.2.8+dfsg1-2ubuntu0.1~esm2, 5.4.2+dfsg2-2ubuntu0.1~esm1 +2
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HExploitation evidence
Disclosed: evidence found.
CVE published 7 May 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 23 Nov 2026.
What to do
Upgrade to a fixed release listed under Affected software.
Patches and advisories
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu 26.04 LTSgnuplotpkg:deb/ubuntu/gnuplot?arch=source&distro=resoluteOther threats | Affected
| Fixed in
|
Ubuntu 25.10gnuplotpkg:deb/ubuntu/gnuplot?arch=source&distro=questingOther threats | Affected
| Fixed in
|
Ubuntu Pro 24.04 LTSgnuplotpkg:deb/ubuntu/gnuplot?arch=source&distro=esm-apps/nobleOther threats | Affected
| Fixed in
|
Ubuntu Pro 22.04 LTSgnuplotpkg:deb/ubuntu/gnuplot?arch=source&distro=esm-apps/jammyOther threats | Affected
| Fixed in
|
Ubuntu Pro 20.04 LTSgnuplotpkg:deb/ubuntu/gnuplot?arch=source&distro=esm-apps/focalOther threats | Affected
| Fixed in
|
Ubuntu Pro 18.04 LTSgnuplotpkg:deb/ubuntu/gnuplot?arch=source&distro=esm-apps/bionicOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
Description
gnuplot is affected by a heap buffer overflow at function utf8_copy_one.