CVE-2023-6277
Medium · 6.5CVSS
6.5
EPSS
1.8%
Published
Nov 24, 2023
CISA due date
—
Cloudanix analysis
A problem in software that reads image files can let attackers crash programs by sending a small specially made picture.
- Exploitation
- Requires User Interaction
- Attacker needs
- User Interaction
- Complexity
- Low
- Impact
- Denial Of Service
- Component
- Library
- Class
- Denial of service
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
The flaw triggers an out-of-memory condition when a specially crafted TIFF file smaller than 379 KB is passed to the TIFFOpen API, resulting in denial of service without requiring authentication or user interaction beyond file processing.
Why it matters to the business
Systems that handle untrusted image files may experience crashes or unavailability, interrupting workflows that depend on image parsing in enterprise and open-source environments.
How an attack unfolds
An attacker creates a malicious TIFF file under 379 KB and supplies it to any application using libtiff's TIFFOpen function, causing excessive memory allocation and service disruption.
How to fix it
Upgrade libtiff to the latest patched release from distribution maintainers as soon as it becomes available; apply vendor updates for Red Hat Enterprise Linux and Fedora when released.
How to confirm the fix worked
After applying updates, confirm the installed libtiff version matches the fixed release and test that TIFFOpen rejects or safely handles the previously crashing crafted input.
Typical attack path
- Generate a crafted TIFF file smaller than 379 KB that triggers the memory flaw
- Deliver the file to a target system or application via email, web upload, or file share
- Victim application invokes TIFFOpen on the malicious file
- Process exhausts memory and terminates, causing denial of service
How to detect it
Review application and system logs for repeated out-of-memory crashes correlated with TIFF file processing; inspect process dumps or audit trails around calls to TIFFOpen on small input files.
What your security team should do
- Monitor vendor advisories for libtiff updates and schedule immediate patching
- Restrict processing of TIFF files from untrusted sources until patches are deployed
- Implement sandboxing or resource limits around image-processing components
The record
An out-of-memory flaw was found in libtiff. Passing a crafted tiff file to TIFFOpen() API may allow a remote attacker to cause a denial of service via a craft input with size smaller than 379 KB.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Chainguard | tiff | 0 | 4.6.0-r1 |
| Chainguard | tiff-dev | 0 | 4.6.0-r1 |
| Chainguard | tiff-doc | 0 | 4.6.0-r1 |
| Debian:11 | tiff | 0 | No fix |
| Debian:12 | tiff | 0 | No fix |
| Debian:13 | tiff | 0 | 4.5.1+git230720-2 |
| Ubuntu:20.04:LTS | tiff | 0 | 4.1.0+git191117-2ubuntu0.20.04.12 |
| Ubuntu:22.04:LTS | tiff | 0 | 4.3.0-6ubuntu0.8 |
| Ubuntu:23.10 | tiff | 0 | 4.5.1+git230720-1ubuntu1.1 |
| Ubuntu:24.04:LTS | tiff | 0 | 4.5.1+git230720-3ubuntu1 |
| Ubuntu:Pro:14.04:LTS | tiff | 0 | 4.0.3-7ubuntu0.11+esm12 |
| Ubuntu:Pro:16.04:LTS | tiff | 0 | 4.0.6-1ubuntu0.8+esm15 |
| Ubuntu:Pro:18.04:LTS | tiff | 0 | 4.0.9-5ubuntu0.10+esm5 |
| Wolfi | tiff | 0 | 4.6.0-r1 |
| Wolfi | tiff-dev | 0 | 4.6.0-r1 |
| Wolfi | tiff-doc | 0 | 4.6.0-r1 |
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-2023-3576 A memory leak flaw was found in Libtiff's tiffcrop utility. 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-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-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
- CVE-2015-8665 tif_getimage.c in LibTIFF 4.0.6 allows remote attackers to cause a denial of service… Also affects tiff