Heap-Based Buffer Overflow in Gnuplot: CVE-2018-19490

gnuplot Updated 03 Oct 2025

Summary

23/11/2018
N/A
No i
High
7.8

UBUNTU-CVE-2018-19490: An issue was discovered in datafile.c in Gnuplot 5.2.5. Affects gnuplot versions 4.6.3-2 – 4.6.4-2ubuntu0.1~esm2. 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 Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

Gnuplot is a portable command-line driven graphing utility that is widely used for plotting mathematical functions and data visualization. It supports various output formats and can be used in different environments, including command-line interfaces and graphical interfaces. The vulnerability in question affects specific versions of Gnuplot, allowing for potential exploitation through improper handling of input data.

Vulnerability Detail

An issue was discovered in datafile.c in Gnuplot 5.2.5, which allows an attacker to conduct a heap-based buffer overflow by passing an overlong string as the right bound of the range argument to the plot function. This vulnerability can lead to arbitrary code execution, data corruption, or denial of service, making it critical for users who rely on Gnuplot for data visualization.

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 passing overly long strings as arguments to the plot function until the package is updated. This can help mitigate the risk of exploitation until a permanent fix is applied.

Conclusion

The CVE-2018-19490 vulnerability in Gnuplot presents a significant risk due to its potential for exploitation through heap-based buffer overflow. Users are strongly advised to update their Gnuplot installations to the patched versions to mitigate this risk. Additionally, employing tools like Vulert can help in monitoring for such vulnerabilities in the future.

See every vulnerability recorded for gnuplot →

Share this vulnerability

FAQ

CVE-2018-19490 is a vulnerability in Gnuplot that allows for a heap-based buffer overflow due to improper input handling.

You can check your Gnuplot version by running 'gnuplot --version' in the terminal. Compare it with the affected versions listed in the vulnerability report.

Exploitation of this vulnerability can lead to arbitrary code execution, data corruption, or denial of service, posing significant risks to users.

Yes, tools like Vulert can monitor and alert in real-time for open-source vulnerabilities in your software without requiring code access.

Detailed information about CVE-2018-19490 can be found in the official security notices and vulnerability databases.

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