Global Buffer Overflow Vulnerability in KMime Package

kmime Updated 04 May 2026

Summary

11/04/2026
N/A
Yes i
Unrated
Not published

OSV-2026-561: Global-buffer-overflow in nameMatch. Affects kmime versions >= 203b456991a1104bb0e3e6ea943b8328aa0b8d08, < 004fa5a8abaf96509350dd6c1aa18029de81697d. Fixed in 004fa5a8abaf96509350dd6c1aa18029de81697d. 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

KMime is a library used for parsing and handling email messages in the KDE ecosystem. It provides functionalities for managing MIME types and headers, allowing applications to process email content effectively. The library is crucial for applications that rely on email communication, making its security paramount. However, KMime has been found to be vulnerable to a global buffer overflow, which can lead to potential exploitation if not addressed.

Vulnerability Detail

The vulnerability identified is a global buffer overflow occurring in the 'nameMatch' function of the KMime library. This issue was reported through OSS-Fuzz, indicating that it can lead to a crash during the parsing of encoded words in email headers. The crash state reveals that the overflow happens during the conversion of QString objects, which can potentially allow attackers to execute arbitrary code or cause denial of service. The vulnerability was introduced in commit 203b456991a1104bb0e3e6ea943b8328aa0b8d08 and has been fixed in commit 004fa5a8abaf96509350dd6c1aa18029de81697d.

How To Fix

Minimum fixed version

004fa5a8abaf96509350dd6c1aa18029de81697d

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, users may avoid processing potentially malicious email headers or implement additional validation checks before parsing encoded words. However, this is not a permanent solution and updating the package is strongly advised.

Conclusion

The global buffer overflow vulnerability in the KMime package poses significant risks to applications that rely on it for email processing. It is crucial for users to update to the patched version to ensure the security and stability of their applications. Utilizing tools like Vulert can help in monitoring and managing open-source vulnerabilities effectively.

See every vulnerability recorded for kmime →

Share this vulnerability

FAQ

A global buffer overflow occurs when a program writes more data to a buffer than it can hold, potentially overwriting adjacent memory and leading to unpredictable behavior or security vulnerabilities.

If your application uses the KMime library to process emails, this vulnerability could allow attackers to crash the application or execute arbitrary code, compromising the security of your system.

Yes, a patch has been released in the fixed version of the KMime package. Users are encouraged to update to this version to mitigate the risk.

You can use Vulert, which monitors open-source vulnerabilities in your software. By simply uploading your manifest file like package-lock.json, you can receive real-time alerts about vulnerabilities, including this one.

If an immediate update is not possible, consider implementing input validation to mitigate the risk of exploitation and monitor for any unusual behavior in your application.

Related vulnerabilities

Recent vulnerabilities recorded for kmime.

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

004fa5a8abaf96509350dd6c1aa18029de81697d

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