Out of Bounds Vulnerability in fig2dev: Memory Corruption Risk
Summary
CVE-2021-3561: An Out of Bounds flaw was found fig2dev version 3.2.8a. Affects fig2dev versions < 1:3.2.8-3. Fixed in 1:3.2.8-3. 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 FIG (a graphics format) files into various other formats, such as PostScript and PDF. It is widely used in the Debian ecosystem for generating high-quality graphics from vector files. The package is known for its ease of use and versatility, making it a popular choice among developers and graphic designers. However, a recent vulnerability has been identified that could compromise the integrity and availability of systems using this package.
Vulnerability Detail
An Out of Bounds flaw was discovered in fig2dev version 3.2.8a, specifically within the read_objects() function. This flaw arises from a flawed bounds check that allows an attacker to provide crafted malicious input. The consequences of this vulnerability can lead to application crashes or, in severe cases, memory corruption. The highest threat posed by this vulnerability is to the integrity of the system and its availability, as it could potentially allow unauthorized access or manipulation of data.
How To Fix
Minimum fixed version
1:3.2.8-3
This is the first release that contains the fix.
sudo apt-get install --only-upgrade fig2dev
Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →
Workaround
As a temporary measure, users can avoid using fig2dev until the package is updated. Additionally, ensuring that input files are from trusted sources can help mitigate the risk of exploitation until a fix is applied.
Conclusion
The Out of Bounds vulnerability in fig2dev poses significant risks to system integrity and availability. It is crucial for users to update to the latest version to mitigate these risks. Utilizing tools like Vulert can help monitor and alert for such vulnerabilities in real-time, ensuring better security for open-source software.
See every vulnerability recorded for fig2dev →
FAQ
CVE-2021-3561 is a unique identifier for a specific vulnerability found in fig2dev that allows for out-of-bounds memory access, potentially leading to crashes or memory corruption.
You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.
The vulnerability can lead to system crashes, memory corruption, and unauthorized access to sensitive data, affecting the integrity and availability of the system.
Yes, updating to version 1:3.2.8-3 or later will resolve the vulnerability and ensure that your system is protected.
If an immediate update is not possible, avoid using fig2dev and ensure that any input files are from trusted sources to minimize risk.
References
Related vulnerabilities
Recent vulnerabilities recorded for fig2dev.