CVE-2023-47993
Medium · 6.5CVSS
6.5
EPSS
0.6%
Published
Jan 9, 2024
CISA due date
—
Cloudanix analysis
A flaw in a widely used image-processing library can make programs crash when they open certain picture files.
- Exploitation
- Requires User Interaction
- Attacker needs
- User Interaction
- Complexity
- Low
- Impact
- Denial Of Service
- Component
- Library
- Class
- Memory Corruption
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Out-of-bounds read in Exif.cpp::ReadInt32 during EXIF metadata parsing in FreeImage 3.18.0 allows reading past allocated buffer boundaries, resulting in denial of service via application crash.
Why it matters to the business
Services and applications that process images with FreeImage may crash when handling attacker-supplied files, interrupting workflows that depend on reliable image handling; more than 1000 days after disclosure and with public exploits available, unpatched deployments remain exposed.
How an attack unfolds
An attacker supplies a crafted image containing malformed EXIF data to an application using FreeImage; during parsing the ReadInt32 function performs an out-of-bounds read that crashes the process. Public exploit code exists for this issue.
How to fix it
Upgrade FreeImage to a version containing bounds checks in ReadInt32 once released by the project; until then, isolate image-processing components or reject untrusted image inputs.
How to confirm the fix worked
Re-test parsing of known trigger images after any code change; confirm absence of crashes and verify that buffer-length checks now exist in Exif.cpp::ReadInt32.
Typical attack path
- Attacker crafts a malicious image file with malformed EXIF metadata
- Victim application receives and processes the image using FreeImage
- Exif.cpp::ReadInt32 executes an out-of-bounds memory read
- Application terminates or becomes unresponsive
How to detect it
Monitor application and system logs for crashes or access-violation events that occur while processing image files with FreeImage; correlate such events with receipt of external image content.
What your security team should do
- Inventory all products and services that embed FreeImage 3.18.0
- Apply updates immediately when fixed versions become available
- Implement sandboxing or process isolation around image parsing
- Block or sanitize untrusted image uploads until remediation is complete
The record
A Buffer out-of-bound read vulnerability in Exif.cpp::ReadInt32 in FreeImage 3.18.0 allows attackers to cause a denial-of-service.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Debian:11 | freeimage | 0 | No fix |
| Debian:12 | freeimage | 0 | No fix |
| Debian:13 | freeimage | 0 | No fix |
| Ubuntu:20.04:LTS | freeimage | 0 | No fix |
| Ubuntu:22.04:LTS | freeimage | 0 | No fix |
| Ubuntu:24.04:LTS | freeimage | 0 | No fix |
| Ubuntu:24.10 | freeimage | 0 | No fix |
| Ubuntu:25.04 | freeimage | 0 | No fix |
| Ubuntu:25.10 | freeimage | 0 | No fix |
| Ubuntu:Pro:14.04:LTS | freeimage | 0 | No fix |
| Ubuntu:Pro:16.04:LTS | freeimage | 0 | No fix |
| Ubuntu:Pro:18.04:LTS | freeimage | 0 | No fix |
| Ubuntu:Pro:20.04:LTS | freeimage | 0 | No fix |
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