CVE-2025-31181 Gnuplot: gnuplot segmentation fault on x11_graphics

Medium 6.2 Published Updated

A segmentation fault in Gnuplot's X11 graphics function allows attackers to cause a system crash via crafted input.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2025-31181?

CVE-2025-31181 is a medium-severity vulnerability in Red Hat Enterprise Linux 6, published on 27 Mar 2025. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

A flaw was found in gnuplot. The X11_graphics() function may lead to a segmentation fault and cause a system crash.

Weakness: CWE-476

Which versions are affected by CVE-2025-31181?

It affects 1 product.

Products include Gnuplot Gnuplot.

How do I fix CVE-2025-31181?

Apply the vendor's patch.

Is CVE-2025-31181 being exploited?

There is no known exploitation of CVE-2025-31181 in the wild and no public exploit code.

Sources

Also known as AZL-59312, AZL-59319, DEBIAN-CVE-2025-31181, GHSA-fccp-q48g-r5f8, JLSEC-2026-359, UBUNTU-CVE-2025-31181.

Is CVE-2025-31181 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free