Stack-based buffer overflow in fig2dev - CVE-2020-21680
Published: June 27, 2025
Vulnerability identifier: #VU111998
CSH Severity: Medium
CVSS v4: 4.6 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N]
CVE-ID: CVE-2020-21680
CWE-ID: CWE-121
Exploitation vector: Remote access
Exploit availability:
No public exploit available
Vulnerability details
The vulnerability allows a remote attacker to perform a denial of service (DoS) attack.
The vulnerability exists due to a boundary error when converting a xfig file into pict2e format. A remote attacker can trigger a stack-based buffer overflow and crash the application.
Affected software
fig2dev
SUSE Linux Enterprise Workstation Extension
Ubuntu
fig2dev (Ubuntu package)
transfig
transfig-debuginfo
transfig-debugsource
SUSE Linux Enterprise Workstation Extension
Ubuntu
fig2dev (Ubuntu package)
transfig
transfig-debuginfo
transfig-debugsource
How to mitigate CVE-2020-21680
Install update from vendor's website.
fig2dev - update to 3.2.8
fig2dev (Ubuntu package) - addressed in versions 1:3.2.6a-6ubuntu1.1+esm1, 1:3.2.7a-7ubuntu0.1+esm1, 1:3.2.8b-1ubuntu0.1~esm1, 1:3.2.9-3ubuntu0.1~esm1, 1:3.2.9-4ubuntu0.1
transfig - update to 3.2.8b-4.15.1
transfig-debuginfo - update to 3.2.8b-4.15.1
transfig-debugsource - update to 3.2.8b-4.15.1
fig2dev (Ubuntu package) - addressed in versions 1:3.2.6a-6ubuntu1.1+esm1, 1:3.2.7a-7ubuntu0.1+esm1, 1:3.2.8b-1ubuntu0.1~esm1, 1:3.2.9-3ubuntu0.1~esm1, 1:3.2.9-4ubuntu0.1
transfig - update to 3.2.8b-4.15.1
transfig-debuginfo - update to 3.2.8b-4.15.1
transfig-debugsource - update to 3.2.8b-4.15.1