The vulnerability in OpenImageIO stems from a mismatch between how an ImageSpec declares pixel storage and what the bit_convert() function assumes about output buffer sizing. When a caller creates a native uint1 ImageSpec — signaling 1-bit pixels packed into memory — and then invokes bit_convert() with an 8-bit output parameter, the conversion logic writes byte-expanded data into a buffer sized only for packed storage. No guard exists at this boundary to validate that the destination buffer accounts for the bit-width expansion.
This manifests through a specific trigger chain: a TIFF with PHOTOMETRIC_SEPARATED (CMYK) at 1-bit depth enters through tiffinput, gets parsed into a uint1 ImageSpec, and when code attempts conversion to 8-bit for processing, bit_convert() writes beyond the allocated buffer. The result is either silent image corruption or a heap overflow depending on allocation proximity.
The fix must enforce a contract at the conversion layer: either reject output bit-widths that exceed input storage bit-width without an explicit buffer reallocation, or automatically handle the expansion internally rather than assuming the caller pre-sized the buffer. The second approach is safer for library code serving diverse pipelines.
For defenders: verify your OpenImageIO version and confirm whether any tool in your pipeline handles CMYK TIFFs at non-byte-aligned depths. If you maintain code calling bit_convert() directly, audit the relationship between your ImageSpec's nchannels and the dtype parameter you're passing. The most practical immediate action is upgrading to the patched version and ensuring your asset ingestion pipelines validate or normalize unusual photometric/bit-depth combinations before they reach conversion logic. In VFX environments where OpenImageIO serves as a hub library, this vulnerability's blast radius extends to any downstream tool receiving processed buffers — even tools that never touch TIFFs directly.