Heap-Based Buffer Overflow in TIFF Package: CVE-2023-6228

tiff Updated 02 Oct 2025

Summary

18/12/2023
N/A
Yes i
Unrated
Not published

DEBIAN-CVE-2023-6228: An issue was found in the tiffcp utility distributed by the libtiff package where a crafted TIFF file on processing may cause a heap-based buffer overflow leads to an application crash. Affects tiff versions < 4.7.0-1. Fixed in 4.7.0-1. 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 Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

The TIFF (Tagged Image File Format) package is widely used for handling images and graphics in various applications. It provides utilities for reading and writing TIFF files, which are commonly used in digital photography and publishing. The package is essential for applications that require high-quality image processing. However, a recent vulnerability has been identified in the tiffcp utility of the libtiff package, which can lead to severe security risks if not addressed.

Vulnerability Detail

An issue was found in the tiffcp utility distributed by the libtiff package where a crafted TIFF file, when processed, may cause a heap-based buffer overflow. This vulnerability can lead to application crashes and potentially allow attackers to execute arbitrary code, compromising the integrity and availability of the system. The vulnerability is present in versions prior to 4.7.0-1, making it critical for users to update their installations to avoid exploitation.

How To Fix

Minimum fixed version

4.7.0-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade tiff

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

Workaround

As a temporary workaround, users are advised to avoid processing untrusted TIFF files with the tiffcp utility until the package has been updated. Additionally, implementing strict file validation and sanitization can help reduce the risk of exploitation.

Conclusion

The vulnerability CVE-2023-6228 in the TIFF package poses significant risks to users who process TIFF files. It is crucial to update to the patched version to protect against potential exploitation. Users should also consider implementing workarounds until they can safely update their systems.

See every vulnerability recorded for tiff →

Share this vulnerability

FAQ

CVE-2023-6228 is a vulnerability in the TIFF package that can lead to a heap-based buffer overflow when processing crafted TIFF files.

You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without requiring any signup.

The risks include application crashes and potential execution of arbitrary code, which can compromise system security.

You can update the TIFF package by running the command 'sudo apt-get update && sudo apt-get install tiff' in your terminal.

Yes, avoid processing untrusted TIFF files and implement strict file validation as a temporary measure.

Related vulnerabilities

Recent vulnerabilities recorded for tiff.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

How To Fix

Minimum fixed version

4.7.0-1

This is the first release that contains the fix.

sudo apt-get install --only-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