CVE-2024-28582
High · 8.4CVSS
8.4
EPSS
0.4%
Published
Mar 20, 2024
CISA due date
—
Cloudanix analysis
A flaw in a common image library lets attackers who can supply a specially crafted picture file take over the computer without needing a password.
- 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 rgbe_RGBEToFloat() during HDR image parsing in FreeImage 3.19.0 allows local arbitrary code execution with full system privileges.
Why it matters to the business
Local compromise of systems that process HDR images can lead to full attacker control, data theft, or ransomware deployment; the issue affects many AlmaLinux 8 installations through dependent packages with a remediation deadline that has long passed.
How an attack unfolds
An attacker supplies a malicious HDR file to any application linked against the vulnerable FreeImage library; the malformed RGBE data triggers the overflow in rgbe_RGBEToFloat(), overwriting memory and executing attacker-controlled code without authentication or user interaction.
How to fix it
Upgrade all listed AlmaLinux 8 packages to the fixed versions: git, git-all, git-core, git-core-doc, git-credential-libsecret, git-daemon, git-email, git-gui, git-instaweb, git-subtree, git-svn, gitk, gitweb, perl-Git, and perl-Git-SVN to 2.27.0-1.el8 or later; rebuild or replace any custom builds that statically link the vulnerable FreeImage library.
How to confirm the fix worked
Verify package versions match the fixed releases, scan for the vulnerable FreeImage binary, and test HDR image processing with known-good and known-bad samples to confirm the overflow is no longer reachable.
Typical attack path
- Locate or deliver a malicious HDR image to a target system running vulnerable FreeImage
- Trigger image loading via any application that uses the library
- Exploit buffer overflow to gain arbitrary code execution
- Establish persistence or escalate privileges on the compromised host
How to detect it
Review system and application logs for unexpected crashes or errors during HDR image loading; monitor process creation and memory anomalies around image-processing binaries; check for post-exploitation artifacts such as new scheduled tasks or unusual outbound connections initiated after image handling.
What your security team should do
- Immediately apply the listed package updates across all AlmaLinux 8 systems
- Inventory applications that depend on FreeImage and prioritize patching of image-processing workflows
- Add HDR file handling to the list of high-risk inputs monitored by endpoint detection
The record
Buffer Overflow vulnerability in open source FreeImage v.3.19.0 [r1909] allows a local attacker to execute arbitrary code via the rgbe_RGBEToFloat() function when reading images in HDR 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-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-28577 Null Pointer Dereference vulnerability in open source FreeImage v.3.19.0 [r1909] allows a… Also affects freeimage