CVE-2024-25448
High · 8.8CVSS
8.8
EPSS
0.7%
Published
Feb 9, 2024
CISA due date
—
Cloudanix analysis
A problem in widely used image software can let attackers take control of computers by sending specially made picture files.
- Exploitation
- Requires User Interaction
- Attacker needs
- User Interaction
- Complexity
- Low
- Impact
- Full Compromise
- Component
- Library
- Class
- Memory Corruption
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
The vulnerability is a heap buffer overflow in the imlib_free_image_and_decache function of imlib2 1.9.1 triggered during parsing of a crafted image.
Why it matters to the business
Applications that use imlib2 for image handling face elevated risk of remote code execution or denial of service when processing untrusted images, increasing exposure for any systems or services that rely on this library.
How an attack unfolds
An attacker creates a specially crafted image file designed to trigger the vulnerable function, delivers it to a target application that uses imlib2 for image processing, and causes a heap buffer overflow that can be leveraged for code execution; public exploit code is available.
How to fix it
Upgrade imlib2 to a version newer than 1.9.1 that resolves the buffer overflow in imlib_free_image_and_decache; until a fixed release is available, consider disabling image processing features that rely on this library or apply vendor patches.
How to confirm the fix worked
Confirm the installed imlib2 version is newer than 1.9.1, review source or binary for the patched imlib_free_image_and_decache function, and test with known malicious image samples in a controlled environment.
Typical attack path
- Craft a malicious image file that exploits the buffer overflow in imlib_free_image_and_decache
- Deliver the image to an application or service using imlib2
- Trigger image parsing through normal application workflows
- Exploit the resulting heap corruption for code execution or crash
How to detect it
Inspect application and system logs for crashes or errors originating from imlib2 image parsing routines, and search for unexpected process behavior or memory corruption indicators when handling image files.
What your security team should do
- Prioritize upgrade of imlib2 across all affected systems given the availability of public exploit code
- Implement strict input validation and sandboxing for any image processing workflows
- Monitor application logs and process behavior for signs of heap corruption during image handling
- Evaluate replacement libraries if a timely patch is not released
The record
An issue in the imlib_free_image_and_decache function of imlib2 v1.9.1 allows attackers to cause a heap buffer overflow via parsing a crafted image.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Debian:11 | imlib2 | 0 | 1.7.1-2+deb11u1 |
| Debian:12 | imlib2 | 0 | 1.10.0-2 |
| Debian:13 | imlib2 | 0 | 1.10.0-2 |
| Ubuntu:14.04:LTS | imlib2 | 0 | No fix |
| Ubuntu:16.04:LTS | imlib2 | 0 | No fix |
| Ubuntu:18.04:LTS | imlib2 | 0 | No fix |
| Ubuntu:20.04:LTS | imlib2 | 0 | No fix |
| Ubuntu:22.04:LTS | imlib2 | 0 | No fix |
| Ubuntu:24.04:LTS | imlib2 | 0 | No fix |
| Ubuntu:24.10 | imlib2 | 0 | No fix |
| Ubuntu:25.04 | imlib2 | 0 | No fix |
| Ubuntu:25.10 | imlib2 | 0 | No fix |
| Ubuntu:Pro:14.04:LTS | imlib2 | 0 | No fix |
| Ubuntu:Pro:16.04:LTS | imlib2 | 0 | No fix |
| Ubuntu:Pro:18.04:LTS | imlib2 | 0 | No fix |
| Ubuntu:Pro:20.04:LTS | imlib2 | 0 | No fix |
Related vulnerabilities
- CVE-2024-25450 imlib2 v1.9.1 was discovered to mishandle memory allocation in the function… Also affects imlib2
- CVE-2024-25447 An issue in the imlib_load_image_with_error_return function of imlib2 v1.9.1 allows… Also affects imlib2
- CVE-2020-12761 modules/loaders/loader_ico.c in imlib2 1.6.0 has an integer overflow (with resultant… Also affects imlib2
- CVE-2011-5326 imlib2 before 1.4.9 allows remote attackers to cause a denial of service (divide-by-zero… Also affects imlib2
- CVE-2026-111497 A buffer overflow vulnerability in the Brotli decoder (c/dec/decode.c) in Google Brotli… CWE-787
- CVE-2026-112397 Pillow is a Python imaging library. CWE-787
- CVE-2026-112059 libLAS through 1.8.1 contains a heap out-of-bounds write vulnerability in the point… CWE-787
- CVE-2026-89088 A flaw was found in parted. CWE-787