Null Source Pointer Vulnerability in libtiff

tiff Updated 02 Oct 2025

Summary

11/02/2022
N/A
Yes i
Medium
5.5

CVE-2022-0561: Null source pointer passed as an argument to memcpy() function within TIFFFetchStripThing() in tif_dirread.c in libtiff versions from 3.9.0 to 4.3.0 could lead to Denial of Service via crafted TIFF file. Affects tiff across 3 version ranges.

< 4.3.0-r0 >= 616624213caa4017313ca0aac850c1101759d4ff, <= d21dcc67d0d3f4686ee989a085ad2bea9c58259d < eecb0712f4c3a5b449f70c57988260a667ddbdef

Fixed in 4.3.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 Your last release was probably never penetration tested 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 for handling TIFF files and is widely used in applications that deal with image processing and manipulation. However, versions of libtiff from 3.9.0 to 4.3.0 are vulnerable to a null source pointer vulnerability in the TIFFFetchStripThing() function in the tif_dirread.c file. This vulnerability can be exploited by a crafted TIFF file, potentially leading to a denial of service.

Vulnerability Detail

The null source pointer vulnerability in libtiff arises when a null pointer is passed as an argument to the memcpy() function within the TIFFFetchStripThing() function. This vulnerability can be triggered by a specially crafted TIFF file. If successfully exploited, it could result in a denial of service, causing the application using libtiff to crash or become unresponsive. The vulnerability has a CVSS v3 score of 5.5, indicating a moderate severity level.

How To Fix

Minimum fixed version

4.3.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 specific workaround mentioned for this vulnerability.

Conclusion

The null source pointer vulnerability in libtiff can be mitigated by updating the library to version 4.3.0 or later. Users who compile libtiff from sources should apply the provided fix. It is recommended to stay updated with the latest stable release of libtiff to ensure the security of your applications.

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 functions for handling various aspects of TIFF files, such as compression, color spaces, and metadata.

Versions of libtiff from 3.9.0 to 4.3.0 are affected by this vulnerability.

If successfully exploited, this vulnerability can lead to a denial of service, causing the application using libtiff to crash or become unresponsive.

To fix this vulnerability, update your libtiff library to version 4.3.0 or later. If you compile libtiff from sources, apply the fix available with commit eecb0712.

No specific workaround has been mentioned for this vulnerability.

Related vulnerabilities

Recent vulnerabilities recorded for tiff.

How To Fix

Minimum fixed version

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