Critical Vulnerability in libexif: Unrestricted Size Handling in Canon EXIF MakerNote Data

libexif Updated 02 Oct 2025

Summary

21/05/2020
N/A
Yes i
High
7.5

ALPINE-CVE-2020-13114: An issue was discovered in libexif before 0.6.22. 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 Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

libexif is a library used for reading and writing EXIF (Exchangeable Image File Format) metadata in image files. It is widely utilized in various applications that handle image processing and manipulation. The library's ability to decode EXIF data makes it essential for ensuring that images retain their metadata, which can include camera settings, timestamps, and other important information. However, a vulnerability has been identified that allows for unrestricted size handling of Canon EXIF MakerNote data, potentially leading to significant performance issues.

Vulnerability Detail

An issue was discovered in libexif before version 0.6.22, where an unrestricted size in handling Canon EXIF MakerNote data could lead to excessive consumption of compute resources when decoding EXIF data. This vulnerability can result in denial of service conditions, as the system may become unresponsive due to the high computational load. The vulnerability is classified with a CVSS score of 7.5, indicating a high severity level, and it affects all versions prior to 0.6.22.

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, you may consider limiting the size of the EXIF data being processed or implementing checks to validate the size of the MakerNote data before decoding. However, this is not a permanent solution and updating the library is strongly recommended.

Conclusion

The vulnerability in libexif poses a significant risk due to its potential to cause denial of service through excessive resource consumption. It is crucial for users to update to the patched version 0.6.22-r0 to mitigate this risk. Additionally, utilizing tools like Vulert can help monitor and alert for open-source vulnerabilities in real-time.

See every vulnerability recorded for libexif →

Share this vulnerability

FAQ

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

The vulnerability allows for unrestricted size handling of Canon EXIF MakerNote data, potentially leading to excessive CPU usage and denial of service.

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

The CVSS score of this vulnerability is 7.5, indicating a high severity level.

You can update libexif by running the command 'apk add libexif=0.6.22-r0' in your Alpine Linux environment.

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