CVE-2025-46398
Medium · 5.5CVSS
5.5
EPSS
0.3%
Published
Apr 23, 2025
CISA due date
—
Cloudanix analysis
A flaw in a diagramming tool lets someone with access to the computer corrupt memory by feeding it a bad file.
- Exploitation
- Local Privilege
- Attacker needs
- Local User
- Complexity
- Low
- Impact
- Data Tampering
- Component
- Application
- Class
- Buffer Overflow
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Stack-based buffer overflow in the read_objects function of fig2dev allows memory corruption via local input manipulation.
Why it matters to the business
Local attackers can corrupt memory on affected systems, potentially disrupting diagramming workflows or causing integrity issues with no remote or privilege escalation impact.
How an attack unfolds
An attacker with local access crafts a malicious input file that triggers the stack overflow when processed by fig2dev through the read_objects function, leading to memory corruption.
How to fix it
Upgrade katex/katex (GIT) to the fixed commit ff289955e81aab89086eef09254cbf88573d415c.
How to confirm the fix worked
Verify the installed version matches the fixed commit ff289955e81aab89086eef09254cbf88573d415c and test processing of sample inputs without triggering overflow conditions.
Typical attack path
- Obtain local access to a system with the vulnerable tool
- Craft a specially formatted input file to trigger the overflow
- Invoke fig2dev on the malicious input to cause memory corruption
How to detect it
Review local process execution logs and file access records for invocations of fig2dev on untrusted inputs around the time of any memory-related crashes.
What your security team should do
- Apply the fixed commit immediately due to the 535 days since publication
- Restrict local execution of fig2dev to trusted users
- Monitor for any local file processing anomalies
The record
In xfig diagramming tool, a stack-overflow while running fig2dev allows memory corruption via local input manipulation via read_objects function.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Debian:11 | fig2dev | 0 | 1:3.2.8-3+deb11u3 |
| Debian:12 | fig2dev | 0 | No fix |
| Debian:13 | fig2dev | 0 | 1:3.2.9a-4 |
| Debian:14 | fig2dev | 0 | 1:3.2.9a-4 |
| Mageia:9 | transfig | 0 | 3.2.9a-1.1.mga9 |
| SUSE:Linux Enterprise Module for Package Hub 15 SP6 | transfig | 0 | 3.2.9a-150600.3.5.1 |
| SUSE:Linux Enterprise Server LTSS Extended Security 12 SP5 | transfig | 0 | 3.2.8b-2.26.1 |
| SUSE:Linux Enterprise Workstation Extension 15 SP6 | transfig | 0 | 3.2.9a-150600.3.5.1 |
| Ubuntu:20.04:LTS | fig2dev | 0 | No fix |
| Ubuntu:22.04:LTS | fig2dev | 0 | No fix |
| Ubuntu:24.04:LTS | fig2dev | 0 | No fix |
| Ubuntu:24.10 | fig2dev | 0 | No fix |
| Ubuntu:25.04 | fig2dev | 0 | No fix |
| Ubuntu:Pro:18.04:LTS | fig2dev | 0 | No fix |
| openSUSE:Leap 15.6 | transfig | 0 | 3.2.9a-150600.3.5.1 |
| openSUSE:Tumbleweed | transfig | 0 | 3.2.9a-3.1 |
Related vulnerabilities
- CVE-2025-46400 In xfig diagramming tool, a segmentation fault while running fig2dev allows an attacker… Also affects fig2dev
- CVE-2025-46399 A flaw was found in fig2dev. Also affects fig2dev
- CVE-2025-46397 A flaw was found in xfig. Also affects fig2dev
- CVE-2026-107705 Poppler 0.42.0 through 26.10.0 contains a stack-based buffer overflow in… CWE-121
- CVE-2026-95818 A stack-based buffer overflow in the dynamic loader (ld.so) of the GNU C Library (glibc)… CWE-121
- CVE-2026-61548 Rsyslog is a rocket-fast system for log processing. CWE-121
- CVE-2026-19774 BlueZ A2DP Stack-based Buffer Overflow Remote Code Execution Vulnerability. CWE-121
- CVE-2026-19542 Calling tdelete on a sufficiently deep tree in the GNU C Library version 2.1 to 2.44 may… CWE-121