Heap Buffer Overflow Vulnerability in gnuplot: CVE-2025-31177

gnuplot Updated 02 Oct 2025

Summary

07/05/2025
N/A
No i
Medium
5.5

CVE-2025-31177: gnuplot is affected by a heap buffer overflow at function utf8_copy_one. Affects gnuplot versions 5.4.1+dfsg1-1 – 6.0.3+dfsg1-1~exp2. No fix is published. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

Gnuplot is a portable command-line driven graphing utility that is widely used for plotting mathematical functions and data. It supports various output formats and is commonly utilized in academic and scientific environments. The package is known for its flexibility and ability to generate high-quality graphics. However, it has been identified to have a vulnerability that could lead to severe security issues.

Vulnerability Detail

CVE-2025-31177 is a heap buffer overflow vulnerability found in the utf8_copy_one function of gnuplot. This vulnerability arises from improper handling of UTF-8 encoded strings, which can lead to memory corruption. If exploited, it could allow an attacker to execute arbitrary code, potentially compromising the integrity and confidentiality of the system. The vulnerability affects multiple versions of gnuplot across different Debian ecosystems.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

As a temporary workaround, users can avoid using features that involve UTF-8 string processing until the package is updated. Additionally, running gnuplot in a controlled environment or sandbox may help mitigate risks until a fix is applied.

Conclusion

The CVE-2025-31177 vulnerability in gnuplot poses significant risks due to its potential for memory corruption and arbitrary code execution. Users are strongly advised to update their gnuplot installations to the latest patched version to ensure system security. For those unable to update immediately, temporary workarounds are available.

See every vulnerability recorded for gnuplot →

Share this vulnerability

FAQ

CVE-2025-31177 is a heap buffer overflow vulnerability in gnuplot that can lead to memory corruption and potential code execution.

You can check if your version is affected by using the Vulert playground at Vulert Scanner, which allows you to monitor vulnerabilities without needing to sign up.

The risks include potential arbitrary code execution, which could compromise system security and data integrity.

Yes, a patched version of gnuplot is available. Users should update to the latest version to mitigate the vulnerability.

If immediate updates are not possible, consider using workarounds such as avoiding UTF-8 string processing features or running gnuplot in a sandboxed environment.

Related vulnerabilities

Recent vulnerabilities recorded for gnuplot.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback