CVE-2024-9029
NoneCVSS
—
EPSS
0.5%
Published
Sep 27, 2024
CISA due date
—
Cloudanix analysis
A bug in image handling code can make programs crash when they receive certain specially made images, briefly stopping related services.
- Exploitation
- Remote Unauthenticated
- Attacker needs
- None
- Complexity
- Low
- Impact
- Denial Of Service
- Component
- Library
- Class
- Buffer Overflow
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
A one-byte buffer over-read occurs in read_iptc_profile when the IPTC profile size is not sanitized before access, causing the linked application to crash.
Why it matters to the business
Processing of crafted images triggers application crashes and denial of service, leading to operational downtime in image-handling components of dependent packages.
How an attack unfolds
An attacker crafts an image containing an IPTC profile with an unsanitized size value and supplies it to an application using the vulnerable library; processing the image triggers the buffer over-read and immediate crash.
How to fix it
Upgrade github.com/cloudflare/cfrpki (Go) to version 1.4.0 or later to resolve the unsanitized size handling.
How to confirm the fix worked
Confirm package version meets or exceeds the fixed release, then attempt processing of test images containing oversized IPTC profiles to verify absence of crashes.
Typical attack path
- Create image file with malformed IPTC profile
- Deliver the image to the target application
- Trigger metadata parsing via normal image ingestion
- Induce crash and denial of service
How to detect it
Review application crash logs and stack traces for references to read_iptc_profile or IPTC metadata processing failures after image ingestion.
What your security team should do
- Upgrade to the fixed version 1.4.0 without delay
- Add runtime monitoring for image-processing crashes
- Restrict untrusted image ingestion until patches are applied
The record
A flaw was found in the freeimage library. Processing a crafted image can cause a buffer over-read of 1 byte in the read_iptc_profile function in the Source/Metadata/IPTC.cpp file because the size of the profile is not being sanitized, causing a crash in the application linked to the library, resulting in a denial of service.
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-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
- CVE-2024-28577 Null Pointer Dereference vulnerability in open source FreeImage v.3.19.0 [r1909] allows a… Also affects freeimage