CVE-2019-12211
High · 7.5CVSS
7.5
EPSS
4.2%
Published
May 20, 2019
CISA due date
—
Cloudanix analysis
A bug in image-handling software can let attackers crash programs or potentially take control when a specially crafted picture file is opened.
- Exploitation
- Remote Unauthenticated
- Attacker needs
- None
- Complexity
- Low
- Impact
- Denial Of Service
- Component
- Library
- Class
- Memory Corruption
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Heap buffer overflow via unchecked memcpy in PluginTIFF.cpp Load function when processing TIFF files in FreeImage 3.18.0.
Why it matters to the business
Applications handling untrusted image files risk crashes or remote code execution, potentially disrupting services or enabling system compromise; low urgency given age and stable low EPSS.
How an attack unfolds
An attacker supplies a malicious TIFF image to an application using the vulnerable FreeImage library; the TIFF plugin performs an unbounded memcpy leading to heap corruption that can be leveraged for code execution.
How to fix it
Upgrade FreeImage to a version containing the fix; for Alpine v3.10 sudo packages update to 1.8.27-r2 or later.
How to confirm the fix worked
Confirm FreeImage version is newer than 3.18.0 and test TIFF parsing with known-good and boundary-case files; review package manifests for sudo 1.8.27-r2 on Alpine v3.10.
Typical attack path
- Craft a malicious TIFF file exploiting the memcpy bounds issue
- Deliver the file to a target application or service that uses FreeImage
- Trigger image loading through normal application workflows
- Exploit resulting heap overflow for denial of service or code execution
How to detect it
Review application logs for crashes during TIFF image processing; inspect for heap corruption indicators in crash dumps or memory analysis tools; search for unexpected process behavior after image loads.
What your security team should do
- Prioritize patching any systems still using FreeImage 3.18.0 or older
- Scan dependency trees for FreeImage usage across the ecosystem
- Implement input validation or sandboxing around image processing libraries
- Monitor EPSS and exploit availability trends for any increase in activity
The record
When FreeImage 3.18.0 reads a tiff file, it will be handed to the Load function of the PluginTIFF.cpp file, but a memcpy occurs in which the destination address and the size of the copied data are not considered, resulting in a heap overflow.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Debian:10 | freeimage | 0 | 3.18.0+ds2-1+deb10u1 |
| Debian:11 | freeimage | 0 | 3.18.0+ds2-3 |
| Debian:12 | freeimage | 0 | 3.18.0+ds2-3 |
| Debian:13 | freeimage | 0 | 3.18.0+ds2-3 |
| Debian:8 | freeimage | 0 | 3.15.4-4.2+deb8u2 |
| Debian:9 | freeimage | 0 | 3.17.0+ds1-5+deb9u1 |
| Mageia:7 | freeimage | 0 | 3.18.0-2.mga7 |
| Ubuntu:18.04:LTS | freeimage | 0 | 3.17.0+ds1-5+deb9u1build0.18.04.1 |
| Ubuntu:20.04:LTS | freeimage | 0 | 3.18.0+ds2-1ubuntu3.1 |
| Ubuntu:22.04:LTS | freeimage | 0 | 3.18.0+ds2-6ubuntu5.1 |
| Ubuntu:23.10 | freeimage | 0 | 3.18.0+ds2-9.1ubuntu0.1 |
| Ubuntu:Pro:14.04:LTS | freeimage | 0 | 3.15.4-3ubuntu0.1+esm2 |
| Ubuntu:Pro:14.04:LTS | freeimage | 0 | 3.15.4-3ubuntu0.1+esm3 |
| Ubuntu:Pro:16.04:LTS | freeimage | 0 | 3.17.0+ds1-2ubuntu0.1+esm1 |
| Ubuntu:Pro:18.04:LTS | freeimage | 0 | 3.17.0+ds1-5+deb9u1ubuntu0.1~esm1 |
| openSUSE:Tumbleweed | freeimage | 0 | 3.18.0-4.4 |
Related vulnerabilities
- CVE-2024-9029 A flaw was found in the freeimage library. Also affects freeimage
- CVE-2024-31570 In FreeImage library version 3.19.0 [r1909], when reading images in XPM format, the… Also affects freeimage
- CVE-2024-28583 Buffer Overflow vulnerability in open source FreeImage v.3.19.0 [r1909] allows a local… Also affects freeimage
- CVE-2024-28584 Null Pointer Dereference vulnerability in open source FreeImage v.3.19.0 [r1909] allows a… Also affects freeimage
- CVE-2024-28578 Buffer Overflow vulnerability in open source FreeImage v.3.19.0 [r1909] allows a local… Also affects freeimage
- CVE-2024-28579 Buffer Overflow vulnerability in open source FreeImage v.3.19.0 [r1909] allows a local… Also affects freeimage
- CVE-2024-28580 Buffer Overflow vulnerability in open source FreeImage v.3.19.0 [r1909] allows a local… Also affects freeimage
- CVE-2024-28582 Buffer Overflow vulnerability in open source FreeImage v.3.19.0 [r1909] allows a local… Also affects freeimage