Integer overflow in CImg - CVE-2020-25693

 

Integer overflow in CImg - CVE-2020-25693

Published: December 3, 2020 / Updated: December 6, 2020


Vulnerability identifier: #VU48794
CSH Severity: High
CVSS v4: 8.6 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2020-25693
CWE-ID: CWE-190
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 integer overflow within the load_pnm() function. A remote attacker can pass specially crafted file to the application, trigger integer overflow and execute arbitrary code on the target system.

Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.


Affected software

CImg
Arch Linux
Fedora
CImg
gmic

How to mitigate CVE-2020-25693

Install updates from vendor's website.

CImg - update to 2.9.3
CImg - addressed in versions 2.9.7-1.fc32, 2.9.7-1.fc33, 2.9.7-1.fc34
gmic - addressed in versions 2.9.7-1.fc32, 2.9.7-1.fc33, 2.9.7-1.fc34

External References

Related Security Bulletins