CVE-2020-21531
Description
A global buffer overflow in fig2dev 3.2.7b's conv_pattern_index function can be triggered by a crafted FIG file, leading to a crash.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
A global buffer overflow in fig2dev 3.2.7b's conv_pattern_index function can be triggered by a crafted FIG file, leading to a crash.
Vulnerability
In fig2dev version 3.2.7b, the conv_pattern_index function in gencgm.c (line 533) contains a global buffer overflow vulnerability [1]. The function reads from a global array without proper bounds checking, allowing an out-of-bounds read when processing a specially crafted FIG file. The issue is triggered during the conversion of FIG files to CGM format.
Exploitation
An attacker can exploit this vulnerability by providing a malicious FIG file to the fig2dev utility. The user must run fig2dev on the crafted file, which causes the conv_pattern_index function to read beyond the bounds of a global array, as demonstrated by the AddressSanitizer output showing a READ of size 4 at an invalid address [1]. No authentication or special privileges are required beyond the ability to supply the input file.
Impact
Successful exploitation results in a denial of service (DoS) due to the application crash caused by the global buffer overflow. The crash is confirmed by the AddressSanitizer report [1]. The impact is limited to availability; there is no indication of code execution or information disclosure from the available references.
Mitigation
As of the latest available information, no official patch has been released for this vulnerability. The ticket on the project's issue tracker is closed but does not mention a fix [1]. Users should avoid processing untrusted FIG files with fig2dev 3.2.7b until a patched version is available. Upgrading to a newer version of fig2dev may address the issue, but no specific fixed version has been identified.
AI Insight generated on May 26, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.
Affected products
23- osv-coords22 versionspkg:rpm/opensuse/transfig&distro=openSUSE%20Leap%2015.2pkg:rpm/opensuse/transfig&distro=openSUSE%20Leap%2015.3pkg:rpm/opensuse/transfig&distro=openSUSE%20Tumbleweedpkg:rpm/suse/transfig&distro=HPE%20Helion%20OpenStack%208pkg:rpm/suse/transfig&distro=SUSE%20Linux%20Enterprise%20Point%20of%20Sale%2011%20SP3pkg:rpm/suse/transfig&distro=SUSE%20Linux%20Enterprise%20Server%2011%20SP4-LTSSpkg:rpm/suse/transfig&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP2-BCLpkg:rpm/suse/transfig&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP3-BCLpkg:rpm/suse/transfig&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP3-LTSSpkg:rpm/suse/transfig&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP4-LTSSpkg:rpm/suse/transfig&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP5pkg:rpm/suse/transfig&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2012%20SP3pkg:rpm/suse/transfig&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2012%20SP4pkg:rpm/suse/transfig&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2012%20SP5pkg:rpm/suse/transfig&distro=SUSE%20Linux%20Enterprise%20Workstation%20Extension%2015%20SP2pkg:rpm/suse/transfig&distro=SUSE%20Linux%20Enterprise%20Workstation%20Extension%2015%20SP3pkg:rpm/suse/transfig&distro=SUSE%20OpenStack%20Cloud%208pkg:rpm/suse/transfig&distro=SUSE%20OpenStack%20Cloud%209pkg:rpm/suse/transfig&distro=SUSE%20OpenStack%20Cloud%20Crowbar%208pkg:rpm/suse/transfig&distro=SUSE%20OpenStack%20Cloud%20Crowbar%209pkg:rpm/suse/transfig&distro=SUSE%20Package%20Hub%2015%20SP2pkg:rpm/suse/transfig&distro=SUSE%20Package%20Hub%2015%20SP3
< 3.2.8b-lp152.6.9.1+ 21 more
- (no CPE)range: < 3.2.8b-lp152.6.9.1
- (no CPE)range: < 3.2.8b-bp153.3.6.3
- (no CPE)range: < 3.2.8b-2.1
- (no CPE)range: < 3.2.8b-2.20.1
- (no CPE)range: < 3.2.8b-160.16.2
- (no CPE)range: < 3.2.8b-160.16.2
- (no CPE)range: < 3.2.8b-2.20.1
- (no CPE)range: < 3.2.8b-2.20.1
- (no CPE)range: < 3.2.8b-2.20.1
- (no CPE)range: < 3.2.8b-2.20.1
- (no CPE)range: < 3.2.8b-2.20.1
- (no CPE)range: < 3.2.8b-2.20.1
- (no CPE)range: < 3.2.8b-2.20.1
- (no CPE)range: < 3.2.8b-2.20.1
- (no CPE)range: < 3.2.8b-4.15.1
- (no CPE)range: < 3.2.8b-4.15.1
- (no CPE)range: < 3.2.8b-2.20.1
- (no CPE)range: < 3.2.8b-2.20.1
- (no CPE)range: < 3.2.8b-2.20.1
- (no CPE)range: < 3.2.8b-2.20.1
- (no CPE)range: < 3.2.8b-bp152.3.6.2
- (no CPE)range: < 3.2.8b-bp153.3.6.3
Patches
0No patches discovered yet.
Vulnerability mechanics
Root cause
"Missing bounds check on the pattern index in conv_pattern_index allows reading past the end of the 88-byte map_pattern global array."
Attack vector
An attacker provides a crafted FIG file that causes `conv_pattern_index` to access an index beyond the 88-byte `map_pattern` global array [ref_id=1]. The overflow is a read of 4 bytes at an address 0 bytes to the right of `map_pattern` [ref_id=1]. The bug is triggered during normal processing of the FIG file by fig2dev, requiring no special privileges beyond the ability to supply a malicious input file [ref_id=1].
Affected code
The vulnerability resides in the `conv_pattern_index` function at `gencgm.c:533` [ref_id=1]. The global buffer `map_pattern`, defined at `gencgm.c:138` with a size of 88 bytes, is read beyond its bounds [ref_id=1]. The call chain is `conv_pattern_index` → `hatchindex` (line 543) → `shape` (line 638) → `gencgm_line` (line 1044) [ref_id=1].
What the fix does
No patch is included in the bundle. The ticket [ref_id=1] reports the bug against fig2dev 3.2.7b and notes it is reproducible in git commit [3065ab], but no fix commit or remediation guidance is provided in the reference. The advisory does not specify a resolution.
Preconditions
- inputAttacker must supply a crafted FIG file that triggers an out-of-bounds index in conv_pattern_index
- inputThe fig2dev tool must process the malicious FIG file
Generated on May 31, 2026. Inputs: CWE entries + fix-commit diffs from this CVE's patches. Citations validated against bundle.
References
3- lists.debian.org/debian-lts-announce/2021/10/msg00002.htmlmitremailing-list
- lists.debian.org/debian-lts-announce/2023/01/msg00044.htmlmitremailing-list
- sourceforge.net/p/mcj/tickets/63/mitre
News mentions
0No linked articles in our index yet.