Heap-based buffer overflow in FontForge - CVE-2020-5496

 

Heap-based buffer overflow in FontForge - CVE-2020-5496

Published: January 22, 2020 / Updated: March 9, 2022


Vulnerability identifier: #VU24485
CSH Severity: High
CVSS v4: 9.3 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2020-5496
CWE-ID: CWE-122
Exploitation vector: Remote access
Exploit availability: No public exploit available

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

FontForge
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

Install update from vendor's website.

python-fontforge (Ubuntu package) - addressed in versions 20120731.b-7.1ubuntu0.1+esm2, 1:20170731~dfsg-1ubuntu0.1~esm2
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

External References

Related Security Bulletins