CVE-2023-3576
Medium · 5.5CVSS
5.5
EPSS
0.3%
Published
Oct 4, 2023
CISA due date
—
Cloudanix analysis
A bug in a picture-file tool can be tricked by a bad image into using up memory until the program stops working, interrupting any tasks that rely on it.
- Exploitation
- Requires User Interaction
- Attacker needs
- User Interaction
- Complexity
- Moderate
- Impact
- Denial Of Service
- Component
- Library
- Class
- Memory Corruption
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Memory leak in tiffcrop when processing a crafted TIFF image leads to unbounded memory consumption and eventual application crash resulting in denial of service.
Why it matters to the business
Disrupts automated image-processing pipelines and workflows that rely on tiffcrop, causing service outages or delayed operations with potential operational cost from repeated crashes on untrusted input files.
How an attack unfolds
An attacker crafts a specially malformed TIFF image and supplies it to the tiffcrop utility; the utility leaks memory on each processing attempt until the process terminates, denying service to legitimate users.
How to fix it
Upgrade libtiff to the commit 4f34a374b2e2cba3c8055ab77458c5730c073aff or later; rebuild tiffcrop and any dependent applications; replace older binaries in all build and runtime environments.
How to confirm the fix worked
Confirm the installed libtiff version contains commit 4f34a374b2e2cba3c8055ab77458c5730c073aff; re-run tiffcrop against known trigger files and verify absence of memory growth or crashes; perform regression tests on image-processing pipelines.
Typical attack path
- Create or obtain a malicious TIFF image that triggers the leak path in tiffcrop
- Deliver the file to a target system or service that invokes tiffcrop on untrusted input
- Trigger processing of the file via local execution, batch job, or automated workflow
- Observe repeated crashes or resource exhaustion leading to denial of service
How to detect it
Search application and system logs for repeated tiffcrop crashes or segmentation faults; monitor process memory metrics for steady growth when tiffcrop processes TIFF files; review batch or automation logs that call tiffcrop on external images.
What your security team should do
- Immediately update all instances of libtiff to the fixed commit and rebuild dependent tools
- Inventory systems and containers that invoke tiffcrop on external or untrusted files
- Disable or sandbox tiffcrop usage until patches are applied
- Monitor for tiffcrop process crashes and unusual memory usage in image-processing jobs
The record
A memory leak flaw was found in Libtiff's tiffcrop utility. This issue occurs when tiffcrop operates on a TIFF image file, allowing an attacker to pass a crafted TIFF image file to tiffcrop utility, which causes this memory leak issue, resulting an application crash, eventually leading to a denial of service.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| AlmaLinux:9 | libtiff | 0 | 4.4.0-10.el9 |
| AlmaLinux:9 | libtiff-devel | 0 | 4.4.0-10.el9 |
| AlmaLinux:9 | libtiff-tools | 0 | 4.4.0-10.el9 |
| Debian:10 | tiff | 0 | 4.1.0+git191117-2~deb10u9 |
| Debian:11 | tiff | 0 | 4.2.0-1+deb11u5 |
| Debian:12 | tiff | 0 | 4.5.0-6+deb12u1 |
| Debian:13 | tiff | 0 | 4.5.1~rc3-1 |
| Red Hat:enterprise_linux:9::appstream | libtiff | 0 | 0:4.4.0-10.el9 |
| Red Hat:enterprise_linux:9::appstream | libtiff-debuginfo | 0 | 0:4.4.0-10.el9 |
| Red Hat:enterprise_linux:9::appstream | libtiff-debugsource | 0 | 0:4.4.0-10.el9 |
| Red Hat:enterprise_linux:9::appstream | libtiff-devel | 0 | 0:4.4.0-10.el9 |
| Red Hat:enterprise_linux:9::appstream | libtiff-tools | 0 | 0:4.4.0-10.el9 |
| Red Hat:enterprise_linux:9::appstream | libtiff-tools-debuginfo | 0 | 0:4.4.0-10.el9 |
| Red Hat:enterprise_linux:9::crb | libtiff | 0 | 0:4.4.0-10.el9 |
| Red Hat:enterprise_linux:9::crb | libtiff-debuginfo | 0 | 0:4.4.0-10.el9 |
| Red Hat:enterprise_linux:9::crb | libtiff-debugsource | 0 | 0:4.4.0-10.el9 |
| Red Hat:enterprise_linux:9::crb | libtiff-devel | 0 | 0:4.4.0-10.el9 |
| Red Hat:enterprise_linux:9::crb | libtiff-tools | 0 | 0:4.4.0-10.el9 |
| Red Hat:enterprise_linux:9::crb | libtiff-tools-debuginfo | 0 | 0:4.4.0-10.el9 |
| SUSE:Linux Enterprise Micro 5.2 | tiff | 0 | 4.0.9-150000.45.32.1 |
| SUSE:Linux Enterprise Micro 5.3 | tiff | 0 | 4.0.9-150000.45.32.1 |
| SUSE:Linux Enterprise Micro 5.4 | tiff | 0 | 4.0.9-150000.45.32.1 |
| SUSE:Linux Enterprise Micro 5.5 | tiff | 0 | 4.0.9-150000.45.32.1 |
| SUSE:Linux Enterprise Module for Basesystem 15 SP4 | tiff | 0 | 4.0.9-150000.45.32.1 |
| SUSE:Linux Enterprise Module for Basesystem 15 SP5 | tiff | 0 | 4.0.9-150000.45.32.1 |
| SUSE:Linux Enterprise Module for Package Hub 15 SP4 | tiff | 0 | 4.0.9-150000.45.32.1 |
| SUSE:Linux Enterprise Module for Package Hub 15 SP5 | tiff | 0 | 4.0.9-150000.45.32.1 |
| SUSE:Linux Enterprise Server 12 SP5 | tiff | 0 | 4.0.9-44.71.1 |
| SUSE:Linux Enterprise Server for SAP Applications 12 SP5 | tiff | 0 | 4.0.9-44.71.1 |
| SUSE:Linux Enterprise Software Development Kit 12 SP5 | tiff | 0 | 4.0.9-44.71.1 |
| Ubuntu:20.04:LTS | tiff | 0 | 4.1.0+git191117-2ubuntu0.20.04.11 |
| Ubuntu:22.04:LTS | tiff | 0 | 4.3.0-6ubuntu0.7 |
| Ubuntu:Pro:14.04:LTS | tiff | 0 | 4.0.3-7ubuntu0.11+esm11 |
| Ubuntu:Pro:16.04:LTS | tiff | 0 | 4.0.6-1ubuntu0.8+esm14 |
| Ubuntu:Pro:18.04:LTS | tiff | 0 | 4.0.9-5ubuntu0.10+esm4 |
| openSUSE:Leap 15.4 | tiff | 0 | 4.0.9-150000.45.32.1 |
| openSUSE:Leap 15.5 | tiff | 0 | 4.0.9-150000.45.32.1 |
| openSUSE:Leap Micro 5.3 | tiff | 0 | 4.0.9-150000.45.32.1 |
| openSUSE:Leap Micro 5.4 | tiff | 0 | 4.0.9-150000.45.32.1 |
Related vulnerabilities
- CVE-2023-52356 A segment fault (SEGV) flaw was found in libtiff that could be triggered by passing a… Also affects tiff
- CVE-2017-17095 tools/pal2rgb.c in pal2rgb in LibTIFF 4.0.9 allows remote attackers to cause a denial of… Also affects tiff
- CVE-2014-8127 LibTIFF 4.0.3 allows remote attackers to cause a denial of service (out-of-bounds read… Also affects tiff
- CVE-2006-2656 Stack-based buffer overflow in the tiffsplit command in libtiff 3.8.2 and earlier might… Also affects tiff
- CVE-2023-6277 An out-of-memory flaw was found in libtiff. Also affects tiff
- CVE-2023-30086 Buffer Overflow vulnerability found in Libtiff V.4.0.7 allows a local attacker to cause a… Also affects tiff
- CVE-2016-10266 LibTIFF 4.0.7 allows remote attackers to cause a denial of service (divide-by-zero error… Also affects tiff
- CVE-2016-3186 Buffer overflow in the readextension function in gif2tiff.c in LibTIFF 4.0.6 allows… Also affects tiff