Heap-based buffer overflow in FontForge - CVE-2020-5496
Published: January 22, 2020 / Updated: March 9, 2022
Vulnerability details
The vulnerability allows a remote attacker to execute arbitrary code on the target system.
The vulnerability exists due to a boundary error within the the "Type2NotDefSplines()" function in splinesave.c. A remote attacker can trigger heap-based buffer overflow and execute arbitrary code on the target system.
Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.
Affected software
Gentoo Linux
Opensuse
Ubuntu
python-fontforge (Ubuntu package)
fontforge-nox (Ubuntu package)
fontforge (Ubuntu package)
libfontforge1 (Ubuntu package)
libfontforge2 (Ubuntu package)
libfontforge3 (Ubuntu package)
python3-fontforge (Ubuntu package)
How to mitigate CVE-2020-5496
fontforge-nox (Ubuntu package) - addressed in versions 20120731.b-7.1ubuntu0.1+esm2, 1:20170731~dfsg-1ubuntu0.1~esm2, 1:20190801~dfsg-4ubuntu0.1+esm1
fontforge (Ubuntu package) - addressed in versions 20120731.b-7.1ubuntu0.1+esm2, 1:20170731~dfsg-1ubuntu0.1~esm2, 1:20190801~dfsg-4ubuntu0.1+esm1
libfontforge1 (Ubuntu package) - update to 20120731.b-7.1ubuntu0.1+esm2
libfontforge2 (Ubuntu package) - update to 1:20170731~dfsg-1ubuntu0.1~esm2
libfontforge3 (Ubuntu package) - update to 1:20190801~dfsg-4ubuntu0.1+esm1
python3-fontforge (Ubuntu package) - update to 1:20190801~dfsg-4ubuntu0.1+esm1