Skip to content
Info disclosure Advisory Advanced CVE-2022-43596

OpenImageIO Project OpenImageIO IFFOutput channel interleaving information disclosure vulnerability

An out-of-bounds read in OpenImageIO's IFFOutput channel interleaving can leak heap data when converting an image with more than four channels to IFF format. An attacker could exploit this to disclose sensitive heap memory.

Lilith >_> Follow

Originally disclosed on Cisco Talos

Medium 5.9 View original

An information disclosure vulnerability exists in the IFFOutput channel interleaving functionality of OpenImageIO Project OpenImageIO v2.4.4.2. A specially crafted ImageOutput Object can lead to leaked heap data.

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

Root cause

The code assumes the number of channels is at most four when indexing a fixed-size map, but input images can have more channels, leading to an out-of-bounds read.

Impact

This could result in information disclosure of sensitive heap data, depending on heap state and how the code is used.

What the attacker needed

Attacker controls input file or specification; victim uses OpenImageIO to convert to IFF

The fix

The code should validate that the number of channels does not exceed the size of the map before indexing.

How it was found

  1. Create an input image with more than four channels (e.g., a TIFF file).
  2. Use the iconvert utility to convert the input image to an IFF file.
  3. The conversion triggers IffOutput::close(), which processes the channels.
  4. The channel interleaving code reads out of bounds from the map array.
  5. Heap data is included in the output IFF 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.

OpenImageIO is a library for reading and writing image files. When it converts an image to a certain format, it uses a small lookup table to rearrange colour channels. If the input image has more than four channels, the code reads past the end of that table, pulling in random memory data that ends up in the output file. This means an attacker could potentially see sensitive information from the program's memory.

What is Info disclosure?

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.

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.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.