Cloudanix VulnDB

CVE-2023-52355

High · 7.5

CVSS

7.5

EPSS

1.8%

Published

Jan 25, 2024

CISA due date

—

Cloudanix analysis

Monitor only SSVC: Track

A bug in image handling software can let attackers crash programs by sending a specially made picture file.

Exploit Available
Exploitation
Remote Unauthenticated
Attacker needs
None
Complexity
Low
Impact
Denial Of Service
Component
Library
Class
Memory Corruption
Remediation
Upgrade
Effort
Medium
Patch risk
Low

What it actually does

An out-of-memory condition triggered in TIFFRasterScanlineSize64() when processing a specially crafted TIFF image file smaller than 379 KB, leading to denial of service.

Why it matters to the business

Applications using libtiff may crash or become unresponsive when handling malicious image files, disrupting services that process TIFF images and requiring restarts or resource recovery.

How an attack unfolds

Attacker crafts a small TIFF file that triggers excessive memory allocation in the vulnerable function and delivers it to a target application using libtiff for parsing.

How to fix it

Update libtiff to the fixed version in commit 8b20804fc0ddeaa93667b799b5e1a2a7dc9e3fb2 or later.

How to confirm the fix worked

Verify the installed libtiff version includes the commit 8b20804fc0ddeaa93667b799b5e1a2a7dc9e3fb2; test with crafted TIFF files to ensure no crash.

Typical attack path

  1. Craft malicious TIFF file exploiting the size calculation flaw
  2. Deliver the file to a vulnerable libtiff-dependent application via email, web upload, or network share
  3. Trigger processing of the file to cause out-of-memory condition
  4. Resulting denial of service on the affected system

How to detect it

Look for applications crashing with out-of-memory errors when processing TIFF files; check logs for TIFFRasterScanlineSize64 calls with anomalous inputs.

What your security team should do

  • Update libtiff to the patched commit immediately
  • Implement input validation or sandboxing for TIFF processing
  • Monitor for unusual memory usage in image processing applications

The record

An out-of-memory flaw was found in libtiff that could be triggered by passing a crafted tiff file to the TIFFRasterScanlineSize64() API. This flaw allows a remote attacker to cause a denial of service via a crafted input with a size smaller than 379 KB.

Affected packages

Ecosystem Package Introduced Fixed
Chainguard tiff 0 0
Chainguard tiff-dev 0 0
Chainguard tiff-doc 0 0
Debian:11 tiff 0 No fix
Debian:12 tiff 0 No fix
Debian:13 tiff 0 4.5.1+git230720-4
Ubuntu:20.04:LTS neuron 0 No fix
Ubuntu:20.04:LTS qtwebengine-opensource-src 0 No fix
Ubuntu:20.04:LTS texmaker 0 No fix
Ubuntu:20.04:LTS tiff 0 No fix
Ubuntu:22.04:LTS neuron 0 No fix
Ubuntu:22.04:LTS qtwebengine-opensource-src 0 No fix
Ubuntu:22.04:LTS texmaker 0 No fix
Ubuntu:22.04:LTS tiff 0 No fix
Ubuntu:Pro:14.04:LTS gdal 0 No fix
Ubuntu:Pro:14.04:LTS tiff 0 No fix
Ubuntu:Pro:16.04:LTS gdal 0 No fix
Ubuntu:Pro:16.04:LTS texmaker 0 No fix
Ubuntu:Pro:16.04:LTS tiff 0 No fix
Ubuntu:Pro:18.04:LTS neuron 0 No fix
Ubuntu:Pro:18.04:LTS qtwebengine-opensource-src 0 No fix
Ubuntu:Pro:18.04:LTS texmaker 0 No fix
Ubuntu:Pro:18.04:LTS tiff 0 No fix
Ubuntu:Pro:20.04:LTS neuron 0 No fix
Ubuntu:Pro:20.04:LTS qtwebengine-opensource-src 0 No fix
Ubuntu:Pro:20.04:LTS texmaker 0 No fix
Ubuntu:Pro:22.04:LTS neuron 0 No fix
Ubuntu:Pro:22.04:LTS qtwebengine-opensource-src 0 No fix
Ubuntu:Pro:22.04:LTS texmaker 0 No fix
Wolfi tiff 0 0
Wolfi tiff-dev 0 0
Wolfi tiff-doc 0 0

Related vulnerabilities