Security Update for libexif: Addressing Information Disclosure and Denial of Service Vulnerabilities

libexif Updated 04 Jun 2026

Summary

02/06/2026
N/A
Yes i
Unrated
Not published

ALSA-2026:22553: Moderate: libexif security update. Affects libexif versions < 0.6.22-6.el9_8.1. Fixed in 0.6.22-6.el9_8.1. 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

libexif is a library designed for extracting metadata from image files, particularly useful for handling EXIF data embedded in photographs. It is widely utilized in various applications that process images, enabling them to read additional information such as camera settings, timestamps, and GPS coordinates. However, vulnerabilities in libexif can lead to severe security risks, including information disclosure and application crashes.

Vulnerability Detail

The vulnerabilities identified in libexif stem from improper handling of Nikon MakerNote data, which can lead to integer overflow and underflow conditions. Specifically, CVE-2026-40385 allows for information disclosure and application crashes due to integer overflow, while CVE-2026-40386 results in Denial of Service and potential information leakage through integer underflow during MakerNote decoding. These vulnerabilities can be exploited by maliciously crafted image files, posing significant risks to applications that rely on libexif for image processing.

How To Fix

Minimum fixed version

0.6.22-6.el9_8.1

This is the first release that contains the fix.

sudo dnf update libexif

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

Workaround

As a temporary measure, avoid processing untrusted or unknown image files with applications that utilize libexif until the packages are updated. This can help mitigate the risk of exploitation until a proper fix is applied.

Conclusion

In summary, the libexif library has been identified with critical vulnerabilities that could lead to information disclosure and Denial of Service. It is crucial for users and developers to update their packages to the latest patched versions to safeguard against potential exploits. Additionally, utilizing tools like Vulert can help monitor and alert for such vulnerabilities in real-time.

See every vulnerability recorded for libexif →

Share this vulnerability

FAQ

The main vulnerabilities include information disclosure and Denial of Service due to integer overflow and underflow in Nikon MakerNote handling.

You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without requiring any signup.

If immediate updates are not possible, refrain from processing untrusted image files to minimize the risk of exploitation.

More details can be found on the CVE pages for CVE-2026-40385 and CVE-2026-40386.

While the vulnerabilities primarily lead to information disclosure and application crashes, it is advisable to handle sensitive data with caution until the vulnerabilities are resolved.

Related vulnerabilities

Recent vulnerabilities recorded for libexif.

How To Fix

Minimum fixed version

0.6.22-6.el9_8.1

This is the first release that contains the fix.

sudo dnf update libexif

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