Skip to content
Memory corruption Advisory Advanced CVE-2022-43601CVE-2022-43600CVE-2022-43599CVE-2022-43602

OpenImageIO Project OpenImageIO IFFOutput wild write vulnerability

A heap buffer overflow exists in OpenImageIO's IFFOutput::close() when writing IFF files with RLE compression, caused by 16-bit tile coordinate variables wrapping around. An attacker could trigger a wild write on the heap by supplying a crafted image specification, potentially leading to code execution.

Lilith >_> Follow

Originally disclosed on Cisco Talos

High 8.1 View original

Multiple code execution vulnerabilities exist in the IFFOutput::close() functionality of OpenImageIO Project OpenImageIO v2.4.4.2. A specially crafted ImageOutput Object can lead to a heap buffer overflow.

Lilith >_>, 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

Impact

An attacker could cause a heap buffer overflow, potentially leading to code execution, though the CVSS score indicates high attack complexity.

What the attacker needed

Attacker controls input file or spec; image format is IFF with RLE compression; image dimensions cause xmax or ymax to be 0xFFFF

The fix

The vulnerability was fixed in a vendor patch release.

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.

OpenImageIO is a library for reading and writing image files. When it saves an image in the IFF format with compression, it uses small counters to loop over pixels. If an image is very large, these counters can overflow and wrap around, causing the program to write past the end of a memory buffer. This can crash the program or, in some cases, let an attacker 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 Lilith >_>

View all

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