CVE-2018-20096: exiv2 - Heap-based Buffer Over-read in pngimage.cpp

exiv2 Updated 02 Oct 2025

Summary

12/12/2018
No i
Medium
6.5

CVE-2018-20096: There is a heap-based buffer over-read in the Exiv2::tEXtToDataBuf function of pngimage.cpp in Exiv2 0.27-RC3. Affects exiv2 versions 0.1 – 0.3.1. No fix is published. 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

Exiv2 is an open-source image metadata library and toolset. It provides functionality for reading, writing, and manipulating metadata in various image file formats. The library is widely used in applications that deal with image processing and management. However, Exiv2 versions up to 0.27-RC3 are vulnerable to a heap-based buffer over-read in the pngimage.cpp file, specifically in the Exiv2::tEXtToDataBuf function. This vulnerability can be exploited remotely and may result in a denial of service attack.

Vulnerability Detail

The vulnerability arises due to improper handling of crafted input in the Exiv2 library. When processing a specially crafted PNG image, the tEXtToDataBuf function reads beyond the bounds of a heap buffer, leading to a buffer over-read. An attacker can exploit this flaw by providing a malicious PNG image to an application that uses the Exiv2 library, causing the application to crash or become unresponsive. The impact of this vulnerability is limited to denial of service, as it does not allow for arbitrary code execution or privilege escalation.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

As a temporary workaround, users can avoid processing untrusted PNG images with applications that utilize the vulnerable Exiv2 library. By refraining from opening or manipulating suspicious PNG files, the risk of encountering this vulnerability can be minimized.

Conclusion

The Exiv2 library versions up to 0.27-RC3 are vulnerable to a heap-based buffer over-read in the pngimage.cpp file. This vulnerability can be exploited remotely, leading to a denial of service attack. To mitigate the risk, users should update their Exiv2 installations to a patched version and avoid processing untrusted PNG images. For further assistance or support in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for exiv2 →

Share this vulnerability

FAQ

The vulnerability can lead to a denial of service attack, causing affected applications to crash or become unresponsive. However, it does not allow for arbitrary code execution or privilege escalation.

Versions up to 0.27-RC3 of the Exiv2 library are vulnerable to this issue.

While the vulnerability has been identified, there is no known public exploit available at this time.

Updating to a patched version of the Exiv2 library is the recommended mitigation. Additionally, users can avoid processing untrusted PNG images as a temporary workaround.

Related vulnerabilities

Recent vulnerabilities recorded for exiv2.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. 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