Out of Bounds Vulnerability in fig2dev: Memory Corruption Risk

fig2dev Updated 02 Oct 2025

Summary

26/05/2021
N/A
Yes i
High
7.1

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 ↓

Free scan

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.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

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 →

Share this vulnerability

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.

Related vulnerabilities

Recent vulnerabilities recorded for fig2dev.

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 →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback