CVE-2022-1354
Medium · 5.5CVSS
5.5
EPSS
0.6%
Published
Aug 31, 2022
CISA due date
—
Cloudanix analysis
A flaw in a common library used to read image files could let attackers crash software or potentially run harmful code when certain pictures are opened.
- Exploitation
- Other
- Attacker needs
- Other
- Complexity
- Other
- Impact
- Other
- Component
- Other
- Class
- Other
- Remediation
- Other
- Effort
- Other
- Patch risk
- Other
What it actually does
The flaw permits invalid memory access or buffer handling errors during TIFF image parsing in libtiff, leading to crashes or potential memory corruption.
Why it matters to the business
Organizations relying on libtiff for image processing face elevated risk of application crashes or exploitation when handling untrusted TIFF files; low exploitability and four-year-old publication reduce urgency but require update planning across dependent software ecosystems.
How an attack unfolds
An attacker crafts a malicious TIFF file that triggers the parsing flaw in libtiff; when a vulnerable application opens the file, the flaw can be leveraged for denial of service or, if combined with other techniques, code execution.
How to fix it
Upgrade libtiff to the commit 87f580f39011109b3bb5f6eca13fac543a542798 or later; rebuild and redeploy all dependent applications; test image processing workflows with the updated library.
How to confirm the fix worked
Confirm the installed libtiff version or commit hash matches or exceeds 87f580f39011109b3bb5f6eca13fac543a542798; run regression tests with known TIFF samples and monitor for crashes on malformed inputs.
Typical attack path
- Identify or deliver a malicious TIFF image to a target application using libtiff
- Trigger image parsing through normal file open or processing routines
- Exploit resulting memory corruption for crash or further payload delivery
How to detect it
Review application logs for crashes or segmentation faults during TIFF processing; inspect file upload or processing audit trails for unusual TIFF files around the time of any incidents.
What your security team should do
- Prioritize upgrade of libtiff in all build pipelines and container images
- Scan dependency manifests for older libtiff versions and schedule remediation
- Add TIFF fuzzing to security testing suites if image handling is critical
The record
A heap buffer overflow flaw was found in Libtiffs' tiffinfo.c in TIFFReadRawDataStriped() function. This flaw allows an attacker to pass a crafted TIFF file to the tiffinfo tool, triggering a heap buffer overflow issue and causing a crash that leads to a denial of service.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| AlmaLinux:9 | libtiff | 0 | 4.4.0-2.el9 |
| AlmaLinux:9 | libtiff-devel | 0 | 4.4.0-2.el9 |
| AlmaLinux:9 | libtiff-tools | 0 | 4.4.0-2.el9 |
| Debian:10 | tiff | 0 | 4.1.0+git191117-2~deb10u5 |
| Debian:11 | tiff | 0 | 4.2.0-1+deb11u3 |
| Debian:12 | tiff | 0 | 4.3.0-7 |
| Debian:13 | tiff | 0 | 4.3.0-7 |
| Mageia:8 | libtiff | 0 | 4.2.0-1.5.mga8 |
| Red Hat:enterprise_linux:9::appstream | libtiff | 0 | 0:4.4.0-2.el9 |
| Red Hat:enterprise_linux:9::appstream | libtiff-debuginfo | 0 | 0:4.4.0-2.el9 |
| Red Hat:enterprise_linux:9::appstream | libtiff-debugsource | 0 | 0:4.4.0-2.el9 |
| Red Hat:enterprise_linux:9::appstream | libtiff-devel | 0 | 0:4.4.0-2.el9 |
| Red Hat:enterprise_linux:9::appstream | libtiff-tools | 0 | 0:4.4.0-2.el9 |
| Red Hat:enterprise_linux:9::appstream | libtiff-tools-debuginfo | 0 | 0:4.4.0-2.el9 |
| Red Hat:enterprise_linux:9::crb | libtiff | 0 | 0:4.4.0-2.el9 |
| Red Hat:enterprise_linux:9::crb | libtiff-debuginfo | 0 | 0:4.4.0-2.el9 |
| Red Hat:enterprise_linux:9::crb | libtiff-debugsource | 0 | 0:4.4.0-2.el9 |
| Red Hat:enterprise_linux:9::crb | libtiff-devel | 0 | 0:4.4.0-2.el9 |
| Red Hat:enterprise_linux:9::crb | libtiff-tools | 0 | 0:4.4.0-2.el9 |
| Red Hat:enterprise_linux:9::crb | libtiff-tools-debuginfo | 0 | 0:4.4.0-2.el9 |
| Ubuntu:18.04:LTS | tiff | 0 | 4.0.9-5ubuntu0.7 |
| Ubuntu:20.04:LTS | tiff | 0 | 4.1.0+git191117-2ubuntu0.20.04.5 |
| Ubuntu:22.04:LTS | tiff | 0 | 4.3.0-6ubuntu0.1 |
| Ubuntu:Pro:14.04:LTS | tiff | 0 | 4.0.3-7ubuntu0.11+esm4 |
| Ubuntu:Pro:16.04:LTS | tiff | 0 | 4.0.6-1ubuntu0.8+esm4 |
Related vulnerabilities
- CVE-2025-9900 A flaw was found in Libtiff. Also affects libtiff
- CVE-2025-8176 A vulnerability was found in LibTIFF up to 4.7.0. Also affects libtiff
- CVE-2023-3576 A memory leak flaw was found in Libtiff's tiffcrop utility. Also affects libtiff
- CVE-2023-52356 A segment fault (SEGV) flaw was found in libtiff that could be triggered by passing a… Also affects tiff
- CVE-2023-1916 A flaw was found in tiffcrop, a program distributed by the libtiff package. Also affects tiff
- CVE-2017-17973 In LibTIFF 4.0.8, there is a heap-based use-after-free in the t2p_writeproc function in… 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