CVE-2024-28583
High · 7.8CVSS
7.8
EPSS
0.4%
Published
Mar 20, 2024
CISA due date
—
Cloudanix analysis
A flaw in image-handling software on certain Linux systems lets someone who already has access to the computer run harmful programs by feeding it a specially made picture file.
- Exploitation
- Local Privilege
- Attacker needs
- Local User
- Complexity
- Low
- Impact
- Full Compromise
- Component
- Library
- Class
- Buffer Overflow
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Buffer overflow in the readLine() function of FreeImage 3.19.0 when parsing XPM format images enables local arbitrary code execution with the privileges of the calling process.
Why it matters to the business
Attackers with local access can gain full control of affected systems, potentially leading to data theft, ransomware deployment, or lateral movement; the flaw affects AlmaLinux 8 systems using the listed libmbim packages and carries moderate urgency due to its age and lack of widespread exploitation evidence.
How an attack unfolds
An attacker prepares a malicious XPM image file that triggers the overflow in readLine(), places the file in a location read by the vulnerable library (for example via libmbim utilities), and causes the target process to open the image, resulting in code execution on the local system.
How to fix it
Upgrade libmbim and libmbim-utils on AlmaLinux 8 to version 1.26.0-2.el8 or later; rebuild or reinstall any dependent packages that embed the vulnerable FreeImage code; verify the update via package manager and restart affected services.
How to confirm the fix worked
Confirm the installed package versions match or exceed the fixed releases using rpm -q or dnf list; test by attempting to process a known-good XPM image after the update and monitor for crashes or unexpected behavior during image handling.
Typical attack path
- Craft a malicious XPM image that overflows the readLine buffer
- Place the image file in a location or workflow processed by libmbim or dependent utilities on AlmaLinux 8
- Trigger the vulnerable code path by causing the process to read the image
- Achieve arbitrary code execution with the privileges of the affected process
How to detect it
Review system logs and process execution history for unexpected crashes or code execution when libmbim utilities or dependent services handle image files; look for anomalous child processes spawned from image-parsing routines and correlate with file creation or access events involving .xpm files.
What your security team should do
- Apply the AlmaLinux 8 package updates immediately on all affected hosts
- Scan for any custom applications or scripts that invoke FreeImage or libmbim with untrusted XPM input
- Restrict local user access to image-processing workflows until patches are deployed
- Add package version checks to existing vulnerability scanning and compliance reporting
The record
Buffer Overflow vulnerability in open source FreeImage v.3.19.0 [r1909] allows a local attacker to execute arbitrary code via the readLine() function when reading images in XPM format.
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-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
- CVE-2024-28577 Null Pointer Dereference vulnerability in open source FreeImage v.3.19.0 [r1909] allows a… Also affects freeimage