Skip to main content
Vulnerability Database/CVE-2026-113681

CVE-2026-113681: OpenImageIO Buffer Overflow Vulnerability

CVE-2026-113681 is a buffer overflow flaw in OpenImageIO that allows attackers to trigger heap out-of-bounds reads via crafted Cineon files. This post explains its technical details, affected versions, and mitigation steps.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-113681 Overview

CVE-2026-113681 is an integer overflow vulnerability [CWE-190] in OpenImageIO's Cineon image reader. The flaw resides in cineon::Codec::Read, where a crafted Cineon file with an oversized declared width wraps the scanline buffer size calculation to zero. The undersized allocation causes UnPackPacked to read past a 4-byte buffer, producing a heap out-of-bounds read and crashing the application. OpenImageIO is widely used in visual effects pipelines, rendering tools, and image-processing workflows, so any utility that opens untrusted Cineon input is exposed. Fixed releases are OpenImageIO 3.0.20.0, 3.1.15.0, and 3.2.0.3-beta1.

Critical Impact

Parsing a malicious Cineon file triggers a heap out-of-bounds read in UnPackPacked, crashing OpenImageIO-based applications and potentially leaking adjacent heap memory.

Affected Products

  • OpenImageIO versions prior to 3.0.20.0
  • OpenImageIO 3.1.x versions prior to 3.1.15.0
  • OpenImageIO 3.2.x versions prior to 3.2.0.3-beta1

Discovery Timeline

  • 2026-10-20 - CVE-2026-113681 published to NVD
  • 2026-10-20 - Last updated in NVD database

Technical Details for CVE-2026-113681

Vulnerability Analysis

The defect lives in the libcineon code vendored inside OpenImageIO. When reading a Cineon file, the library computes the scanline buffer size from the width and bit depth declared in the file header. Those values are multiplied using 32-bit integer arithmetic. A sufficiently large declared width wraps the product past UINT32_MAX, resulting in a near-zero allocation size.

The decoder then calls UnPackPacked with the attacker-controlled count value. Because the destination buffer is only four bytes, the loop iterates far past the allocation, reading adjacent heap memory. This produces a reliable crash and may expose process memory contents in callers that surface decoder output.

Root Cause

The scanline size computation and the UnPackPacked loop counters were declared as 32-bit int values. Any width that pushed scanline_bytes beyond INT32_MAX wrapped the calculation. The fix widens the loop counters to int64_t and adds an explicit guard in cineoninput.cpp that rejects files whose scanline_bytes() exceed INT32_MAX.

Attack Vector

Exploitation requires an application built on a vulnerable OpenImageIO version to open an attacker-supplied Cineon file. The attack vector is local and requires user interaction, typically the victim loading the file in a VFX tool, converter, or thumbnail generator that links OpenImageIO.

cpp
// Patch 1: cineoninput.cpp - reject oversized scanlines before decoding
// The libcineon code we use is not really 32 bit overflow safe in its
// allocations or offsets when reading and decoding individual scanlines.
// We'll never see a cin file that big anyway, so just consider it an
// error rather than track down every possible problem in libcineon.
if (m_spec.scanline_bytes()
    > imagesize_t(std::numeric_limits<int32_t>::max())) {
    errorfmt("Unsupported Cineon with scanlines exceeding {} bytes",
             std::numeric_limits<int>::max());
    m_spec = ImageSpec();
    return false;
}

// Patch 2: ReaderInternal.h - widen counters to int64_t
template <typename BUF, U32 MASK, int MULTIPLIER, int REMAIN, int REVERSE>
void UnPackPacked(U32 *readBuf, const int bitDepth, BUF *data,
                  int64_t count, int64_t bufoff)
{
    BUF *obuf = data + bufoff;
    for (int64_t i = count - 1; i >= 0; i--)
    {
        // unpacking the buffer backwards
    }
}

Source: OpenImageIO Commit 07e3c3e03735

Detection Methods for CVE-2026-113681

Indicators of Compromise

  • Unexpected crashes in processes that link libOpenImageIO immediately after opening a .cin file.
  • Cineon files whose header declares extremely large image widths inconsistent with legitimate scanned film frames.
  • AddressSanitizer or Windows Error Reporting dumps citing cineon::Codec::Read or UnPackPacked in the stack trace.

Detection Strategies

  • Inventory installed OpenImageIO versions across workstations and build servers, flagging anything below 3.0.20.0, 3.1.15.0, or 3.2.0.3-beta1.
  • Scan file ingestion pipelines for Cineon inputs sourced from external or untrusted locations.
  • Run fuzzed Cineon corpora through pre-production builds to confirm the patched behavior rejects oversized headers.

Monitoring Recommendations

  • Alert on repeated process termination of VFX, DCC, or render host applications correlated with Cineon file opens.
  • Log file write events for .cin extensions arriving via email gateways, upload portals, or shared network storage.
  • Capture crash telemetry from media-processing services and triage stacks containing libcineon symbols.

How to Mitigate CVE-2026-113681

Immediate Actions Required

  • Upgrade OpenImageIO to 3.0.20.0, 3.1.15.0, 3.2.0.3-beta1, or later across all workstations, build agents, and container images.
  • Rebuild downstream applications and plugins that statically link OpenImageIO against a fixed release.
  • Restrict Cineon ingestion to trusted sources until patches are deployed.

Patch Information

The fix landed in commit 07e3c3e03735 and was delivered through Pull Request #5567 and Pull Request #5568. Full advisory details are available in the VulnCheck Security Advisory.

Workarounds

  • Disable the Cineon reader in applications that expose format toggles if a patched build is unavailable.
  • Pre-validate Cineon headers at the ingestion boundary and reject files whose declared width multiplied by bit depth exceeds INT32_MAX.
  • Run image-processing services under sandboxing with crash isolation so that malformed inputs do not degrade the host process.
bash
# Verify installed OpenImageIO version on Linux build hosts
oiiotool --version

# Example: block oversized Cineon files at an ingestion gateway
find /ingest -type f -iname '*.cin' -size +500M -print -delete

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.