CVE-2026-12912: LibTIFF Flaw Lets Malicious Images Run Code

Ubuntu has patched two security flaws in LibTIFF, the widely used library for handling TIFF image files, that could let a malicious image file crash software or run arbitrary code. The fixes were published on 26 November 2026 in Ubuntu security notice USN-9205-1. The flaws are tracked as CVE-2026-12912 and CVE-2026-4775.
The first flaw, CVE-2026-12912, was found by researcher Ariel Schön. LibTIFF does not correctly handle certain PixarLog-compressed images. A remote attacker who tricks a user or an automated system into opening a specially crafted TIFF file can trigger a heap-based buffer overflow while the image is being decoded, in the 8BITABGR output path with a specific stride value. The overflow can cause a denial of service or allow arbitrary code to run. It carries a CVSS 3.1 score of 7.3, rated High, and the underlying issue was first disclosed in June 2026.
The second flaw, CVE-2026-4775, was found by researcher Quang Luong. It is a signed integer overflow in the putcontig8bitYCbCr44tile function, which decodes YCbCr tiled images. An image with a huge width can overflow the integer used in the calculation and then overflow the heap buffer. As with the first flaw, opening a crafted TIFF file is enough to trigger it, and the result can be a crash or arbitrary code execution.
LibTIFF is a decades-old library written in C, and it is embedded in countless applications, operating systems and other software, often as a dependency that developers do not even know is there. Desktop publishing tools, medical imaging systems, web applications and image viewers can all process TIFF files through it. That makes any flaw in its image parsing a wide-reaching problem: the attack needs only a file, and files arrive by email, download and upload every day.
Fixed versions
Ubuntu has fixed the flaws in all supported releases. Users of Ubuntu 26.04 LTS should update to libtiff 4.7.0-3ubuntu5.1, users of Ubuntu 24.04 LTS to 4.5.1+git230720-4ubuntu2.6, and users of Ubuntu 22.04 LTS to 4.3.0-6ubuntu0.14. The updates are available through the normal system update process, and a restart of affected applications is needed for the fix to take effect. Users of other distributions should apply their own vendor's security updates when they appear.
What to do
Update promptly, and treat TIFF files from unknown senders with caution until the patch is installed. Organisations should check which of their systems and applications depend on LibTIFF, including indirectly through other libraries, and confirm the patched version is in place. Keeping an accurate list of software dependencies makes that check far quicker the next time a library flaw appears.
No exploitation in the wild has been reported in the Ubuntu notice or in the Snyk advisory for CVE-2026-12912, which puts the probability of exploitation in the next 30 days at 0.37 percent. That is reassuring, but it is not a reason to delay: the details needed to build a malicious TIFF file are public, and image-parsing flaws have a long history of being turned into working exploits.