Memory malloc failure in LibTIFF tif_pixarlog.c

tiff Updated 02 Oct 2025

Summary

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

CVE-2020-35522: In LibTIFF, there is a memory malloc failure in tif_pixarlog.c. A crafted TIFF document can lead to an abort, resulting in a remote denial of service attack. 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 for reading and writing TIFF image files. It provides support for various compression schemes and image formats. The vulnerability affects the tif_pixarlog.c file in LibTIFF, which is responsible for handling PixarLog-encoded TIFF images.

Vulnerability Detail

The vulnerability (CVE-2020-35522) in LibTIFF is caused by a memory malloc failure in the tif_pixarlog.c file. An attacker can exploit this vulnerability by crafting a malicious TIFF document. When the vulnerable code attempts to allocate memory, it fails, leading to an abort and resulting in a remote denial of service attack. The impact of this vulnerability is a complete denial of service, rendering the affected system unresponsive.

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 patched version.

Conclusion

The memory malloc failure vulnerability in LibTIFF's tif_pixarlog.c file can be exploited by a crafted TIFF document, leading to a remote denial of service attack. To mitigate this vulnerability, it is crucial to update the LibTIFF package to version 4.2.0-r0 or later. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for tiff →

Share this vulnerability

FAQ

LibTIFF is an open-source library for reading and writing TIFF image files. It provides support for various compression schemes and image formats.

The vulnerability can be exploited to cause a remote denial of service attack, resulting in the affected system becoming unresponsive.

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. It is crucial to apply the recommended fix by updating the LibTIFF package.

The updated LibTIFF package can be obtained 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