Cloudanix VulnDB

CVE-2024-25448

High · 8.8

CVSS

8.8

EPSS

0.7%

Published

Feb 9, 2024

CISA due date

—

Cloudanix analysis

Monitor only SSVC: Track

A problem in widely used image software can let attackers take control of computers by sending specially made picture files.

Exploit Available
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

  1. Craft a malicious image file that exploits the buffer overflow in imlib_free_image_and_decache
  2. Deliver the image to an application or service using imlib2
  3. Trigger image parsing through normal application workflows
  4. 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