Out of Bounds Read Vulnerability in libexif: Local Information Disclosure Risk

libexif Updated 02 Oct 2025

Summary

14/05/2020
N/A
Yes i
Medium
5.0

ALPINE-CVE-2020-0093: In exif_data_save_data_entry of exif-data.c, there is a possible out of bounds read due to a missing bounds check. Affects libexif versions < 0.6.22-r0. Fixed in 0.6.22-r0. 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 Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

libexif is a library used for reading and writing EXIF (Exchangeable Image File Format) metadata in image files. It is commonly utilized in applications that handle image processing and manipulation. The library provides functionalities to extract and modify metadata, which is crucial for managing image attributes. However, a vulnerability has been identified that could potentially expose sensitive information due to inadequate bounds checking.

Vulnerability Detail

The vulnerability arises in the function exif_data_save_data_entry within the exif-data.c file, where a missing bounds check can lead to an out of bounds read. This flaw allows an attacker to access memory locations that they should not have access to, resulting in local information disclosure. The exploitation of this vulnerability requires user interaction, making it a potential risk in scenarios where users handle untrusted image files. The CVSS score for this vulnerability is 5.0, indicating a moderate severity level.

How To Fix

Minimum fixed version

0.6.22-r0

This is the first release that contains the fix.

sudo apk add --upgrade libexif

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

Workaround

As a temporary workaround, users should avoid opening untrusted image files that may contain EXIF data until the package is updated. Additionally, consider implementing stricter input validation in applications that utilize libexif to mitigate the risk of exploitation.

Conclusion

The identified out of bounds read vulnerability in libexif poses a risk of local information disclosure. Users are advised to update to the patched version 0.6.22-r0 to mitigate this risk. Until the update is applied, caution should be exercised when handling image files containing EXIF data.

See every vulnerability recorded for libexif →

Share this vulnerability

FAQ

libexif is a library designed for reading and writing EXIF metadata in image files, commonly used in image processing applications.

The vulnerability allows for an out of bounds read due to a missing bounds check, potentially leading to local information disclosure.

You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.

The CVSS score for this vulnerability is 5.0, indicating a moderate severity level.

If immediate updates are not possible, avoid opening untrusted image files and implement stricter input validation in your applications.

Related vulnerabilities

Recent vulnerabilities recorded for libexif.

How To Fix

Minimum fixed version

0.6.22-r0

This is the first release that contains the fix.

sudo apk add --upgrade 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