ExifReader Improper Handling of Compressed Data Vulnerability Allowing Memory Exhaustion

Vulnerability

A vulnerability exists in the ExifReader package, specifically in versions prior to 4.39.0, related to the improper management of highly compressed data. This issue arises because the library decompresses PNG zTXt metadata without applying a maximum limit on the size of the decompressed output. When asynchronous parsing is activated, a specially crafted PNG file with a heavily compressed zTXt chunk can lead ExifReader to generate an excessively large Comment value in memory, potentially causing memory exhaustion.

Impact

Exploitation of this vulnerability can lead to excessive memory consumption, causing the application to slow down or become unresponsive.

Reproduction

The vulnerability can be reproduced by using the ExifReader library to load a PNG file that contains a zTXt chunk with highly compressed data. This can be done by creating a PNG file that exploits the lack of a decompression size limit, such as by using a deflate compression level of 9. When the file is loaded with ExifReader, the Comment value will be disproportionately large, demonstrating the vulnerability.

Remediation

Users are advised to upgrade ExifReader to version 4.39.0 or higher.

Added: May 19, 2026, 7:19 AM
Updated: May 19, 2026, 7:19 AM

Vulnerability Rating

Custom Algorithm
spread
0.0
impact
0.6
exploitability
8.7
remediation
0.0
relevance
8.8
threat
6.4
urgency
2.9
incentive
4.2

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.