CVE-2025-46398 Xfig: fig2dev stack-overflow via read_objects
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.
Other vulnerabilities in Redhat Enterprise Linux
- CVE-2025-46397 Xfig: xfig: stack-overflow allows possible code execution via local input manipulation
- CVE-2025-31162 fig2dev float point exception
- CVE-2025-31163 fig2dev segmentation fault
- CVE-2025-31164 fig2dev heap-buffer overflow
- CVE-2025-46399 Xfig: transfig: fig2dev segmentation fault vulnerability
Sources
Also known as DEBIAN-CVE-2025-46398, GHSA-vv86-jpff-556f.