Critical Stack Overflow Vulnerability in fig2dev Package
Summary
UBUNTU-CVE-2025-46398: Stack-overflow in fig2dev in version 3.2.9a allows an attacker possible code execution via local input manipulation via read_objects function. Affects fig2dev versions 1:3.2.6a-3 – 1:3.2.6a-6ubuntu1.1. No fix is published. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
fig2dev is a utility that converts figures from various formats into device-independent formats for use in LaTeX and other typesetting systems. It is widely used in academic and scientific communities for its ability to handle complex graphics. However, recent findings have revealed a critical stack overflow vulnerability that could allow attackers to execute arbitrary code through local input manipulation.
Vulnerability Detail
The vulnerability, identified as CVE-2025-46398, originates from a stack overflow in the read_objects function of fig2dev version 3.2.9a. This flaw allows an attacker to manipulate local input, potentially leading to code execution. The severity of this vulnerability is underscored by its CVSS score of 7.1, indicating a high risk to systems using affected versions of the package. If exploited, this vulnerability could compromise system integrity and confidentiality.
How To Fix
No fixed version is published for this vulnerability.
Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →
Workaround
As a temporary workaround, users can limit the access of the fig2dev application to untrusted inputs or run it in a controlled environment to mitigate the risk of exploitation until the package is updated.
Conclusion
The stack overflow vulnerability in the fig2dev package poses a significant risk to users, allowing potential code execution through local input manipulation. It is crucial for users to update to the latest patched version to mitigate this risk. Additionally, utilizing tools like Vulert can help monitor and manage vulnerabilities effectively.
See every vulnerability recorded for fig2dev →
FAQ
CVE-2025-46398 is a critical stack overflow vulnerability in the fig2dev package that allows for potential code execution through local input manipulation.
You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.
The CVSS score of this vulnerability is 7.1, indicating a high severity level.
If an immediate update is not possible, consider limiting access to the application or running it in a controlled environment to reduce the risk of exploitation.
Vulert is a tool that monitors and alerts for open-source vulnerabilities in software using just a manifest file. More information can be found at https://vulert.com.
Related vulnerabilities
Recent vulnerabilities recorded for fig2dev.