Integer Overflow Vulnerability in libtiff

tiff Updated 02 Oct 2025

Summary

09/03/2021
N/A
Yes i
High
7.8

CVE-2020-35523: An integer overflow flaw was found in libtiff that exists in the tif_getimage.c file. Affects tiff across 2 version ranges.

< 4.2.0-r0 < c8d613ef497058fe653c467fc84c70a62a4a71b2

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 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

libtiff is an open-source library used for reading and writing TIFF image files. It provides various functions and utilities for manipulating TIFF files. However, a vulnerability has been discovered in libtiff that allows an attacker to execute arbitrary code by exploiting an integer overflow flaw in the tif_getimage.c file. This vulnerability affects the confidentiality, integrity, and availability of systems that use libtiff.

Vulnerability Detail

The integer overflow vulnerability in libtiff arises due to a flaw in the tif_getimage.c file. When a user opens a crafted TIFF file, an attacker can inject and execute arbitrary code. This can lead to unauthorized access, data leakage, and system compromise. The vulnerability has a CVSS score of 7.8, indicating a high severity level.

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 official fix by updating the libtiff package to the recommended version.

Conclusion

The integer overflow vulnerability in libtiff poses a significant risk to the confidentiality, integrity, and availability of systems. It is crucial to update the libtiff package to the recommended version to mitigate this vulnerability. For further assistance and support 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 manipulating TIFF files.

The vulnerability allows an attacker to execute arbitrary code, potentially leading to unauthorized access, data leakage, and system compromise.

To fix this vulnerability, update the libtiff package to version 4.2.0-r0 or later.

No, there is no known workaround for this vulnerability. Updating the libtiff package is the recommended solution.

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

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