Heap-Use-After-Free Vulnerability in kimageformats Package

kimageformats Updated 04 Jun 2026

Summary

29/05/2026
HIGH
Yes i
High
Not published

OSV-2026-822: Heap-use-after-free in slice_segment_header::operator=. Affects kimageformats versions >= 9ddad1676718f8c12f72a8ac7357552586f1a9a7, < f450e5c9a9c31ed0b49f0f6fe3d38b7864013222. Fixed in f450e5c9a9c31ed0b49f0f6fe3d38b7864013222. 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 MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

The kimageformats package is a part of the KDE Frameworks, providing support for various image formats in applications. It allows developers to easily integrate image processing capabilities into their software. However, like many software libraries, it can be susceptible to vulnerabilities that may compromise the integrity and security of applications using it.

Vulnerability Detail

This vulnerability is classified as a heap-use-after-free issue, which occurs when a program continues to use a memory location after it has been freed. Specifically, this vulnerability arises in the slice_segment_header::operator= function, leading to potential crashes or exploitation. The origin of this vulnerability was reported through OSS-Fuzz, indicating that it can lead to a crash state during image processing tasks, which may allow an attacker to execute arbitrary code or cause denial of service.

How To Fix

Minimum fixed version

f450e5c9a9c31ed0b49f0f6fe3d38b7864013222

This is the first release that contains the fix.

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

Workaround

As a temporary workaround, consider avoiding the use of the affected functions in the kimageformats package until the update can be applied. Additionally, ensure that your application includes proper error handling to mitigate potential crashes.

Conclusion

The heap-use-after-free vulnerability in the kimageformats package poses significant risks to applications utilizing this library. It is crucial to update to the patched version to ensure security and stability. Utilizing tools like Vulert can help monitor and alert for such vulnerabilities in real-time.

See every vulnerability recorded for kimageformats →

Share this vulnerability

FAQ

A heap-use-after-free vulnerability occurs when a program continues to access memory that has already been freed, potentially leading to crashes or exploitation.

You can use Vulert, which monitors open-source vulnerabilities in real-time. By uploading your manifest file like package-lock.json, you can check for vulnerabilities without needing to access the code.

The risks include potential crashes, data corruption, and the possibility of arbitrary code execution, which can compromise the security of applications.

While the best solution is to update to the patched version, you can temporarily avoid using the affected functions and implement robust error handling in your application.

More information can be found in the OSS-Fuzz report linked in the vulnerability details, which provides insights into the crash state and technical aspects.

Related vulnerabilities

Recent vulnerabilities recorded for kimageformats.

How To Fix

Minimum fixed version

f450e5c9a9c31ed0b49f0f6fe3d38b7864013222

This is the first release that contains the fix.

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