Critical Security Update for libexif: Addressing Vulnerabilities CVE-2026-40385 and CVE-2026-40386

libexif Updated 23 Jun 2026

Summary

17/06/2026
N/A
Yes i
Medium
4.0

RHSA-2026:26276: Red Hat Security Advisory: libexif security update. Affects libexif versions < 0:0.6.22-6.el9_2.1. Fixed in 0:0.6.22-6.el9_2.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 used for reading and writing EXIF (Exchangeable Image File Format) metadata in image files. It is commonly utilized in various applications that handle image processing and manipulation. The library's functionality includes parsing image files to extract metadata such as camera settings, date taken, and GPS information. However, vulnerabilities have been identified in libexif that could potentially compromise the security of applications relying on this library.

Vulnerability Detail

The vulnerabilities identified as CVE-2026-40385 and CVE-2026-40386 stem from improper handling of certain image files, which may allow an attacker to exploit these weaknesses. If successfully exploited, these vulnerabilities could lead to unauthorized access to sensitive information or even arbitrary code execution. The vulnerabilities are particularly concerning as they affect the integrity and confidentiality of the data processed by applications using libexif.

How To Fix

Minimum fixed version

0:0.6.22-6.el9_2.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, if updating the package is not immediately feasible, consider limiting the use of libexif in applications that process untrusted image files. Additionally, implement strict input validation to mitigate potential exploitation of the vulnerabilities.

Conclusion

In summary, the libexif library has critical vulnerabilities that require immediate attention. Updating to the latest patched version is essential to safeguard applications from potential exploits. Utilizing tools like Vulert can help monitor and manage vulnerabilities effectively.

See every vulnerability recorded for libexif →

Share this vulnerability

FAQ

These are identifiers for specific vulnerabilities found in the libexif library that could lead to security breaches.

You can use Vulert, which monitors open-source vulnerabilities in real-time. Visit Vulert Scanner to check your application without needing to sign up.

The vulnerabilities have a CVSS score of 4.0, indicating a moderate level of severity.

Yes, if exploited, these vulnerabilities could lead to unauthorized access to sensitive data, potentially resulting in data loss.

Implement input validation and limit the use of libexif with untrusted image files as a temporary workaround.

Related vulnerabilities

Recent vulnerabilities recorded for libexif.

How To Fix

Minimum fixed version

0:0.6.22-6.el9_2.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