CVE-2024-28576
Medium · 5.5CVSS
5.5
EPSS
0.3%
Published
Mar 20, 2024
CISA due date
—
Cloudanix analysis
A flaw in an image library can let someone on the same computer crash programs that open certain picture files, interrupting normal work until the software is updated.
- Exploitation
- Local Privilege
- Attacker needs
- Local User
- Complexity
- Low
- Impact
- Denial Of Service
- Component
- Library
- Class
- Buffer Overflow
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Medium
What it actually does
Buffer overflow in the opj_j2k_tcp_destroy function of FreeImage 3.19.0 when parsing J2K format images allows a local process to trigger a denial of service by supplying a malicious image file.
Why it matters to the business
Applications that process J2K images on the affected system can be crashed by a local user, leading to service outages or loss of image-handling functionality until the process is restarted.
How an attack unfolds
A local attacker crafts a J2K image that triggers the vulnerable function path in FreeImage during image loading, causing the overflow and immediate crash of the calling application.
How to fix it
Upgrade the affected package to the fixed version js-d3-flame-graph 3.0.2-2.el8 (AlmaLinux 8) or later; rebuild or redeploy any applications that statically link the vulnerable FreeImage library.
How to confirm the fix worked
Confirm the installed package version matches or exceeds the fixed release; test image loading with known-good J2K files to verify continued operation without crashes.
Typical attack path
- Obtain local access to a system running the vulnerable FreeImage library
- Prepare a specially crafted J2K image file that exercises the opj_j2k_tcp_destroy code path
- Cause a local application to load the malicious image
- Trigger the buffer overflow resulting in denial of service
How to detect it
Review system logs and application crash reports for unexpected terminations during J2K image processing; correlate with file-access events involving .j2k or .jp2 files shortly before crashes.
What your security team should do
- Apply the vendor-supplied package update immediately on all affected AlmaLinux 8 systems
- Scan for any custom builds or containers that embed the vulnerable FreeImage version and rebuild them
- Restrict local user access to image-processing services until patches are deployed
The record
Buffer Overflow vulnerability in open source FreeImage v.3.19.0 [r1909] allows a local attacker to cause a denial of service (DoS) via the opj_j2k_tcp_destroy() function when reading images in J2K 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-28582 Buffer Overflow vulnerability in open source FreeImage v.3.19.0 [r1909] allows a local… Also affects freeimage