CVE-2025-31162 fig2dev float point exception

Medium 6.6 Published Updated

A floating point exception in fig2dev allows local attackers to cause a denial of service via manipulated input.

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

What is CVE-2025-31162?

CVE-2025-31162 is a medium-severity denial of service vulnerability in xfig fig2dev, published on 28 Mar 2025. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

Floating point exception in fig2dev in version 3.2.9a allows an attacker to availability via local input manipulation via get_slope function.

Weakness: CWE-369

Which versions are affected by CVE-2025-31162?

It affects 1 product.

Products include Fig2dev Project Fig2dev.

How do I fix CVE-2025-31162?

Upgrade to a fixed version.

Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.

Is CVE-2025-31162 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-31162 exists.

Sources

Also known as DEBIAN-CVE-2025-31162, GHSA-2c99-hrrc-j3vh, UBUNTU-CVE-2025-31162.

Is CVE-2025-31162 in your software?

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

Check your SBOMs for free