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

OpenImageIO TIFF IPTC decoding information disclosure vulnerability

A crafted TIFF file can cause an out-of-bounds heap read in OpenImageIO's IPTC decoding, leading to disclosure of sensitive information. An attacker can provide a malicious file to trigger this vulnerability.

Lilith >_> Follow

Originally disclosed on Cisco Talos

Medium 5.3 View original

An information disclosure vulnerability exists in the OpenImageIO::decodeiptciim() functionality of OpenImageIO Project OpenImageIO v2.3.19.0. A specially-crafted TIFF file can lead to a disclosure of sensitive information.

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 decode_iptc_iim function trusts a length field from the file without validating it against the actual buffer size, causing an out-of-bounds read.

What the attacker needed

Victim opens a malicious TIFF file

The fix

The vulnerability was fixed in release v2.4.4.2 and in the master branch by adding validation.

How it was found

  1. Craft a TIFF file with a TIFFTAG_RICHTIFFIPTC directory entry whose data begins with the IPTC marker bytes and a large tag size.
  2. Open the file with OpenImageIO, which calls TIFFInput::readspec and then decode_iptc_iim.
  3. The decode_iptc_iim function reads beyond the allocated buffer and copies the out-of-bounds data into the image spec attributes.

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 that reads and writes many image formats. When it processes a TIFF file, it reads metadata called IPTC, which can contain text like captions. The code that parses this metadata does not check the length of a field, so it can read past the end of a buffer and copy extra memory into the image's metadata, which might then be exposed to the user or attacker.

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.