Skip to content
Memory corruption Advisory Advanced CVE-2016-5875

LibTIFF PixarLogDecode Remote Code Execution Vulnerability

A heap-based buffer overflow exists in LibTIFF's PixarLogDecode function when decompressing a crafted TIFF image. An attacker could exploit this to achieve remote code execution.

Tyler Bohan Follow

Originally disclosed on Cisco Talos

High 8.8 View original

An exploitable heap based buffer overflow exists in the handling of compressed TIFF images in LibTIFF’s PixarLogDecode api. A crafted TIFF document can lead to a heap based buffer overflow resulting in remote code execution.

Tyler Bohan, on Cisco Talos

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

The buffer allocated for decompressed output is smaller than the output size passed to the zlib inflate function, leading to a heap overflow.

Impact

A crafted TIFF could cause a heap overflow that may be leveraged into remote code execution.

What the attacker needed

Victim opens a crafted TIFF file

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

LibTIFF is a library for reading and writing TIFF image files. A buffer overflow happens when a program writes more data into a memory buffer than it can hold, which can corrupt nearby memory and let an attacker run their own code. Here, a specially crafted TIFF image causes such an overflow during decompression.

What is Memory corruption?

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.

More by Tyler Bohan

View all

84 more disclosed reports, best first.

More from Cisco Talos

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Memory corruption

The lesson behind this report.

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.