Bug 2005474 (CVE-2020-21532) - CVE-2020-21532 transfig: global buffer overflow in the setfigfont() in genepic.c
Summary: CVE-2020-21532 transfig: global buffer overflow in the setfigfont() in genepic.c
Status: NEW
Alias: CVE-2020-21532
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Nobody
QA Contact:
Depends On: 2006006 2006007
Blocks: 2005482
TreeView+ depends on / blocked
Reported: 2021-09-17 18:17 UTC by Guilherme de Almeida Suckevicz
Modified: 2023-07-24 22:55 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
In transfig's fig2dev 3.2.7b it is possible for an attacker to create a specially crafted file that causes a buffer overflow due to accepting an invalid value. This leads to a denial of service, impacting availability of the program.
Clone Of:
Last Closed:

Attachments (Terms of Use)

Description Guilherme de Almeida Suckevicz 2021-09-17 18:17:42 UTC
fig2dev 3.2.7b contains a global buffer overflow in the setfigfont function in genepic.c.


Comment 1 Garrett Tucker 2021-09-20 16:43:46 UTC
After analysis of this flaw, all versions of RHEL 8 and 9 are affected. The patch that can be applied to fix this flaw is: https://sourceforge.net/p/mcj/fig2dev/ci/00cdedac7a0b029846dee891769a1e77df83a01b/ and https://sourceforge.net/p/mcj/fig2dev/ci/421afa17d8cb8dafcaf3e6044a70790fa4fe307b/.This flaw was caused by accepting -1 as a value for a tex font. This lead to an out of bounds error and resulted in a global buffer overflow.

Comment 3 Garrett Tucker 2021-10-19 17:11:02 UTC
Analysis did not show any sign of being able to achieve code execution with this flaw. The flaw present caused a denial of service to the program affecting availability, but with no found effects on Integrity or Confidentiality of data. As such the CVSS score should be 5.5/CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H

Note You need to log in before you can comment on or make changes to this bug.