Memory Allocation Failure in libtiff Leads to Denial of Service (CVE-2020-35521)

tiff Updated 02 Oct 2025

Summary

09/03/2021
N/A
Yes i
Medium
5.5

CVE-2020-35521: A flaw was found in libtiff. Due to a memory allocation failure in tif_read.c, a crafted TIFF file can lead to an abort, resulting in denial of service. Affects tiff across 2 version ranges.

< 4.2.0-r0 < 4862b0d7bcc786304ff4e8c31e8d5ccfb868fb99

Fixed in 4.2.0-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

libtiff is an open-source library used for reading and writing TIFF image files. It provides various functions and utilities for handling TIFF files in different applications. However, a vulnerability has been discovered in libtiff that can result in a denial of service (DoS) attack. This vulnerability is identified as CVE-2020-35521.

Vulnerability Detail

The vulnerability in libtiff is caused by a memory allocation failure in the tif_read.c file. An attacker can exploit this flaw by crafting a malicious TIFF file. When this file is processed by an application using libtiff, it can trigger an abort, leading to a DoS condition. The impact of this vulnerability is the unavailability of the affected application, potentially disrupting critical operations.

How To Fix

Minimum fixed version

4.2.0-r0

This is the first release that contains the fix.

sudo apk add --upgrade tiff

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

Workaround

There is no known workaround for this vulnerability. It is essential to apply the recommended fix by updating the libtiff package to the latest version.

Conclusion

The vulnerability in libtiff can be exploited to cause a denial of service (DoS) attack. To mitigate this risk, it is crucial to update the libtiff package to version 4.2.0-r0 or later. This update includes a patch that addresses the memory allocation failure. For further support and assistance in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for tiff →

Share this vulnerability

FAQ

libtiff is an open-source library used for reading and writing TIFF image files. It provides various functions and utilities for handling TIFF files in different applications.

The vulnerability in libtiff can lead to a denial of service (DoS) condition. It can cause the affected application to become unavailable, potentially disrupting critical operations.

To fix this vulnerability, update the libtiff package to version 4.2.0-r0 or later. This update includes a patch that addresses the memory allocation failure and prevents the DoS attack.

There is no known workaround for this vulnerability. It is crucial to apply the recommended fix by updating the libtiff package to the latest version.

Users can obtain the updated libtiff package from the official Alpine package repository or the libtiff GitLab repository.

Related vulnerabilities

Recent vulnerabilities recorded for tiff.

How To Fix

Minimum fixed version

4.2.0-r0

This is the first release that contains the fix.

sudo apk add --upgrade tiff

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