CVE-2023-47994
High · 8.8CVSS
8.8
EPSS
0.7%
Published
Jan 9, 2024
CISA due date
—
Cloudanix analysis
A problem in software that reads certain image files can let attackers crash programs or take control of systems when users open a specially made picture.
- Exploitation
- Requires User Interaction
- Attacker needs
- User Interaction
- Complexity
- Moderate
- Impact
- Remote Code Execution
- Component
- Library
- Class
- Memory Corruption
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
An integer overflow in the LoadPixelDataRLE4 function of the BMP plugin allows out-of-bounds memory access, resulting in information disclosure, denial of service, or arbitrary code execution.
Why it matters to the business
Applications handling BMP images can be crashed, have data leaked, or be fully compromised by remote attackers, increasing risk of service disruption or unauthorized access; moderate urgency applies given stable low exploitation probability and public exploit availability.
How an attack unfolds
An attacker supplies a malicious BMP image crafted to trigger the integer overflow during RLE4 decoding; when the image is processed by a vulnerable application using the affected library, memory corruption occurs that can be leveraged for code execution or denial of service.
How to fix it
Upgrade to fixed commits f1e89f78dd72dcac3ba66d3d6f93db3f7f649219 or 978671323e157eee060880c9a17d2fcea437b724; rebuild or redeploy applications that embed the vulnerable library to ensure BMP plugin is corrected.
How to confirm the fix worked
Confirm the running application or library reports a fixed commit hash; attempt processing of known trigger BMP samples in a test environment and verify absence of crashes or unexpected memory behavior.
Typical attack path
- Craft a malicious BMP image that triggers integer overflow in RLE4 pixel loading
- Deliver the image to the target through email, download, or shared storage
- Victim opens or previews the image in an affected application
- Overflow causes memory corruption leading to RCE, data leak, or crash
How to detect it
Review application and system logs for crashes or errors during BMP file processing; inspect memory dumps or process behavior for signs of corruption when handling RLE4-encoded images.
What your security team should do
- Apply the listed commit upgrades immediately to all instances using the affected library
- Disable BMP image support or add input sanitization where patching is delayed
- Monitor public exploit repositories for weaponized samples given available exploit maturity
The record
An integer overflow vulnerability in LoadPixelDataRLE4 function in PluginBMP.cpp in Freeimage 3.18.0 allows attackers to obtain sensitive information, cause a denial of service and/or run arbitrary code.
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