CVE-2025-46398 Xfig: fig2dev stack-overflow via read_objects

Medium 5.5 Published Updated

A stack overflow in Xfig's fig2dev allows local attackers to cause memory corruption and potential code execution via crafted 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-46398?

CVE-2025-46398 is a medium-severity memory corruption vulnerability in Redhat Enterprise Linux, published on 23 Apr 2025. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

In xfig diagramming tool, a stack-overflow while running fig2dev allows memory corruption via local input manipulation via read_objects function.

Weakness: CWE-121

Which versions are affected by CVE-2025-46398?

It affects 2 products.

Products include Fig2dev Project Fig2dev, Redhat Enterprise Linux.

How do I fix CVE-2025-46398?

Apply the vendor's patch.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2025-46398 being exploited?

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

All Redhat Enterprise Linux vulnerabilities

Sources

Also known as DEBIAN-CVE-2025-46398, GHSA-vv86-jpff-556f.

Is CVE-2025-46398 in your software?

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

Check your SBOMs for free