CVE-2026-42450

OpenColorIO vulnerable to stack buffer overflow via unbounded `sscanf %s` in Spi3D (.spi3d) LUT parser

Published Jun 24, 2026 CVSS 4.0 · 8.4 High EPSS < 1% KEV · Not listed
Description
OpenColorIO is a color management framework for visual effects and animation. Prior to version 2.5.2, `FileFormatSpi3D.cpp:163` uses `sscanf` with `%s` into 64-byte stack buffers when parsing LUT data lines. Input comes from `lineBuffer[4096]`, so a crafted .spi3d file can overflow by ~4000 bytes on non-Windows. Version 2.5.2 fixes the issue.

Analysis

AI-generated

Technical impact

OpenColorIO is a color management framework for visual effects and animation. In version 2.5.2 and earlier, the Spi3D (.spi3d) LUT parser reads data lines using `sscanf` with the `%s` format specifier into a 64‑byte stack buffer located at line 163 in FileFormatSpi3D.cpp, while the input originates from a 4096‑byte `lineBuffer`. A crafted .spi3d file can overflow the stack by approximately 4000 bytes on non‑Windows platforms, potentially leading to memory corruption and arbitrary code execution. The flaw is identified as CWE‑120 and has been mitigated in OpenColorIO 2.5.2.

Affected Systems

Vendors: AcademySoftwareFoundation OpenColorIO. Affected versions are all releases prior to 2.5.2. Users of OpenColorIO 2.5.1 or earlier that parse Spi3D LUT files are potentially vulnerable.

Risk and Exploitability

The vulnerability has a CVSS score of 8.4, indicating high severity. The EPSS score is not available and the flaw is not listed in CISA's KEV catalog. Exploitation requires access to the file system to supply a malicious .spi3d file, and the application must parse such files. In environments where untrusted files are processed, the risk is high; in tightly controlled workflows the threat is lower. The lack of a public exploit does not diminish the potential risk, and the high CVSS warrants prompt attention.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to OpenColorIO 2.5.2 or later, which removes the unbounded sscanf.
  • If upgrading is not immediately possible, avoid processing untrusted or unknown .spi3d files until a patch is applied.
  • Run OpenColorIO with the least privileges required, limiting write access to the application directory to prevent potential exploitation from affecting system files.

Generated by OpenCVE AI on June 24, 2026 at 15:11 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Academysoftwarefoundation
Academysoftwarefoundation opencolorio
Vendors & Products Academysoftwarefoundation
Academysoftwarefoundation opencolorio
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description OpenColorIO is a color management framework for visual effects and animation. Prior to version 2.5.2, `FileFormatSpi3D.cpp:163` uses `sscanf` with `%s` into 64-byte stack buffers when parsing LUT data lines. Input comes from `lineBuffer[4096]`, so a crafted .spi3d file can overflow by ~4000 bytes on non-Windows. Version 2.5.2 fixes the issue.
Title OpenColorIO vulnerable to stack buffer overflow via unbounded `sscanf %s` in Spi3D (.spi3d) LUT parser
Weaknesses CWE-120
References
Metrics cvssV4_0

{'score': 8.4, 'vector': 'CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-120

    Buffer Copy without Checking Size of Input ('Classic Buffer Overflow')

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Jun 24, 2026, 6:56 PM
Reserved
Apr 27, 2026, 1:55 PM
Status
Deferred
Published
Jun 24, 2026, 2:17 PM
Modified
Oct 25, 2026, 11:10 PM