CVE-2026-52492

libtiff: libtiff: Arbitrary code execution via crafted TIFF image

Published Aug 24, 2026 CVSS 3.1 · 7.8 High EPSS < 1% KEV · Not listed
Description
An integer overflow in the libtiff rgb2ycbcr utility's cvtRaster() function when computing strip buffer sizes can result in an undersized heap allocation and subsequent heap-based buffer overflow during YCbCr conversion of a crafted TIFF image

Analysis

AI-generated

Technical impact

The vulnerability is an integer overflow in the libtiff rgb2ycbcr utility’s cvtRaster function when computing strip buffer sizes for YCbCr conversion. The overflow causes the allocation of a heap buffer that is smaller than required, and when a crafted TIFF image is processed the subsequent writes exceed the allocated space. This heap-based buffer overflow can corrupt memory and potentially allow an attacker to inject and execute arbitrary code.

Affected Systems

The flaw exists in the libtiff image processing library and affects all installations that incorporate the library before the patch in the referenced commit. Any application that uses the rgb2ycbcr routine to decode TIFF files is potentially vulnerable. The vulnerability requires only that a malicious TIFF image be processed by the affected library, which is common in many image handling scenarios.

Risk and Exploitability

The CVSS score of 7.8 indicates high severity. The EPSS score is below 1%, indicating a low probability of exploitation at this time. The vulnerability is not listed in CISA KEV, meaning no publicly documented exploits are known. The attack vector requires the attacker to supply a crafted TIFF file to the application. While the likelihood of exploitation is currently low, the impact can be severe if the software is widely deployed.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade libtiff to a version that incorporates the fix from commit 94affc5cf54111312f9891eb77accb93eebc28d7.
  • If an upgrade is not immediately possible, disable or bypass YCbCr conversion for incoming TIFF files or replace the rgb2ycbcr routine with a safe implementation to avoid the overflow.
  • Implement strict validation and sandboxing of TIFF file processing to limit memory corruption until the library is updated, and enable compiler hardening options such as stack canaries.

Generated by OpenCVE AI on August 28, 2026 at 19:13 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
Weaknesses CWE-190
Metrics cvssV3_1

{'score': 7.3, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H'}

cvssV3_1

{'score': 7.8, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H'}

Type Values Removed Values Added
Weaknesses CWE-122
CWE-680
Type Values Removed Values Added
Title Heap Buffer Overflow in libtiff YCbCr Conversion libtiff: libtiff: Arbitrary code execution via crafted TIFF image
Weaknesses CWE-787
References
Metrics threat_severity

None

cvssV3_1

{'score': 7.3, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H'}

threat_severity

Important

Type Values Removed Values Added
Title Heap Buffer Overflow in libtiff YCbCr Conversion
First Time appeared Libtiff
Libtiff libtiff
Weaknesses CWE-122
CWE-680
Vendors & Products Libtiff
Libtiff libtiff
Type Values Removed Values Added
Description An integer overflow in the libtiff rgb2ycbcr utility's cvtRaster() function when computing strip buffer sizes can result in an undersized heap allocation and subsequent heap-based buffer overflow during YCbCr conversion of a crafted TIFF image
References
Weaknesses

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
Aug 27, 2026, 7:05 PM
Reserved
Jun 8, 2026, 12:00 AM
Status
Awaiting Analysis
Published
Aug 24, 2026, 9:17 PM
Modified
Oct 12, 2026, 9:10 PM
Severity
Important
Public date
Aug 24, 2026, 12:00 AM