CVE-2024-28572
Medium · 6.2CVSS
6.2
EPSS
0.3%
Published
Mar 20, 2024
CISA due date
—
Cloudanix analysis
A bug in a picture-handling library can let someone on the same computer crash a program by giving it a specially made image file, briefly stopping whatever service relies on that program.
- Exploitation
- Local Privilege
- Attacker needs
- Local User
- Complexity
- Low
- Impact
- Denial Of Service
- Component
- Library
- Class
- Buffer Overflow
- Remediation
- No Fix Yet
- Effort
- Other
- Patch risk
- Other
What it actually does
Buffer overflow in FreeImage_SetTagValue during JPEG tag value handling allows a local attacker to trigger memory corruption resulting in denial of service.
Why it matters to the business
Successful exploitation can interrupt availability of services that rely on the vulnerable image library for processing, leading to unplanned downtime without data loss or remote code execution.
How an attack unfolds
An attacker with local access crafts a malformed JPEG image that triggers the overflow when FreeImage_SetTagValue processes its tags; the resulting crash produces a denial-of-service condition on the affected process.
How to fix it
Upgrade the affected package to the fixed version memcached (AlmaLinux:8): 1.5.22-2.el8 or later; rebuild or redeploy any dependent components that statically link the vulnerable FreeImage library.
How to confirm the fix worked
Confirm the installed package version meets or exceeds the fixed release, then re-test JPEG ingestion paths with both benign and boundary-case images to verify the crash is no longer reproducible.
Typical attack path
- Locate an application or service that invokes FreeImage to read JPEG files
- Prepare a JPEG with oversized or malformed tag data designed to overflow the buffer
- Cause the target process to load and parse the malicious image
- Trigger the crash and resulting denial of service
How to detect it
Inspect application and system logs for segmentation faults or abrupt terminations during JPEG decoding; correlate with processes that call FreeImage functions.
What your security team should do
- Apply the listed package update across all affected systems within the next maintenance window
- Review image-processing code paths for unnecessary local file handling by untrusted users
- Add runtime monitoring for unexpected process terminations during image operations
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 FreeImage_SetTagValue() function when reading images in JPEG 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