Memory Allocation Vulnerability in imlib2 Package

imlib2 Updated 02 Oct 2025

Summary

09/02/2024
N/A
Yes i
Unrated
Not published

DEBIAN-CVE-2024-25450: imlib2 v1.9.1 was discovered to mishandle memory allocation in the function init_imlib_fonts(). Affects imlib2 versions < 1.7.1-2+deb11u1. Fixed in 1.7.1-2+deb11u1. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

imlib2 is a widely used image loading library that provides functionalities for manipulating images in various formats. It is known for its efficiency and ease of use, making it a popular choice among developers for applications that require image processing capabilities. However, a vulnerability has been identified in versions prior to 1.7.1-2+deb11u1 for Debian 11, and 1.10.0-2 for Debian 12, 13, and 14, which affects its memory management during font initialization.

Vulnerability Detail

The vulnerability, identified as DEBIAN-CVE-2024-25450, originates from a flaw in the memory allocation process within the function init_imlib_fonts() of imlib2 version 1.9.1. This mishandling can lead to potential memory corruption, which may allow an attacker to exploit the application using imlib2, resulting in crashes or arbitrary code execution. The implications of this vulnerability can be severe, especially in applications that rely heavily on image processing.

How To Fix

Minimum fixed version

1.7.1-2+deb11u1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade imlib2

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, if updating the package is not immediately feasible, consider disabling any features that utilize font initialization in imlib2 until the package can be updated.

Conclusion

The imlib2 package has a critical vulnerability related to memory allocation that can lead to severe security issues. It is crucial for users to update to the latest patched versions to mitigate risks. Utilizing tools like Vulert can help monitor and alert for such vulnerabilities in real-time.

See every vulnerability recorded for imlib2 →

Share this vulnerability

FAQ

The vulnerability involves improper memory allocation in the init_imlib_fonts() function, which can lead to memory corruption.

You can use Vulert, which monitors open-source vulnerabilities in your software. Simply upload your manifest file like package-lock.json to check for vulnerabilities.

Exploitation of this vulnerability can lead to application crashes or arbitrary code execution, posing significant security risks.

Yes, for Debian 11, upgrade to version 1.7.1-2+deb11u1 or later. For Debian 12, 13, and 14, upgrade to version 1.10.0-2 or later.

Detailed information can be found in the Debian CVE database, specifically for DEBIAN-CVE-2024-25450.

Related vulnerabilities

Recent vulnerabilities recorded for imlib2.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

How To Fix

Minimum fixed version

1.7.1-2+deb11u1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade imlib2

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback