CVE Vulnerabilities

CVE-2019-12212

Uncontrolled Recursion

Published: May 20, 2019 | Modified: Aug 24, 2020
CVSS 3.x
7.5
HIGH
Source:
NVD
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
CVSS 2.x
5 MEDIUM
AV:N/AC:L/Au:N/C:N/I:N/A:P
RedHat/V2
RedHat/V3
Ubuntu
MEDIUM

When FreeImage 3.18.0 reads a special JXR file, the StreamCalcIFDSize function of JXRMeta.c repeatedly calls itself due to improper processing of the file, eventually causing stack exhaustion. An attacker can achieve a remote denial of service attack by sending a specially constructed file.

Weakness

The product does not properly control the amount of recursion that takes place, consuming excessive resources, such as allocated memory or the program stack.

Affected Software

Name Vendor Start Version End Version
Freeimage Freeimage_project 3.18.0 (including) 3.18.0 (including)
Freeimage Ubuntu bionic *
Freeimage Ubuntu cosmic *
Freeimage Ubuntu disco *
Freeimage Ubuntu eoan *
Freeimage Ubuntu groovy *
Freeimage Ubuntu hirsute *
Freeimage Ubuntu impish *
Freeimage Ubuntu kinetic *
Freeimage Ubuntu lunar *
Freeimage Ubuntu mantic *
Freeimage Ubuntu trusty *
Freeimage Ubuntu trusty/esm *
Freeimage Ubuntu xenial *

Potential Mitigations

References