Cloudanix VulnDB

CVE-2025-46398

Medium · 5.5

CVSS

5.5

EPSS

0.3%

Published

Apr 23, 2025

CISA due date

—

Cloudanix analysis

Monitor only SSVC: Track

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

  1. Obtain local access to a system with the vulnerable tool
  2. Craft a specially formatted input file to trigger the overflow
  3. 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