Skip to content
Memory corruption Advisory Advanced CVE-2017-2899

Blender Sequencer imb_loadtiff Integer Overflow Code Execution Vulnerability

An integer overflow in Blender's TIFF loading code for the video sequencer can cause an undersized buffer, leading to a heap-based buffer overflow. An attacker could exploit this by convincing a user to load a specially crafted .tif file, potentially achieving code execution.

A member Follow

Originally disclosed on Cisco Talos

High 8.8 View original

An exploitable integer overflow exists in the TIFF loading functionality of the Blender open-source 3d creation suite version 2.78c. A specially crafted .tif file can cause an integer overflow resulting in a buffer overflow which can allow for code execution under the context of the application.

a member, 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

Likely, the application multiplies image dimensions and depth without checking for integer overflow, resulting in an undersized buffer allocation.

Impact

A specially crafted .tif file could cause a heap-based buffer overflow, potentially allowing code execution under the context of the application.

What the attacker needed

Victim loads a malicious .tif file; user interaction required

How it was found

  1. Create a malicious .tif file using the provided generator script.
  2. Open the file in Blender as an asset or pass it as a command-line argument.
  3. The integer overflow leads to a heap-based buffer overflow during image decoding.

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.

When Blender loads a TIFF image, it calculates how much memory to allocate based on the image's width, height, and colour depth. If these numbers are very large, the multiplication can overflow and produce a small number, so Blender allocates a buffer that is too small. Later, when it writes the image data into that buffer, it overflows, which can crash the program or allow an attacker to run their own code.

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 A member

View all

110 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.