CVE-2026-63635 is a heap-based buffer allocation vulnerability in OpenImageIO's PSD file handling that manifests when raw access modes (oiio:rawcolor or psd:rawdata) are enabled. The bug: an attacker-controlled value from the file header (specifically mode_channel_count) flows unchecked into memory allocation sizing in the setup() function. When this value exceeds reasonable bounds, the allocation either fails catastrophically or, depending on allocator behavior, creates a mis-sized buffer that can be overflowed by subsequent image data copies. This is not a theoretical DoS—it is memory corruption with exploitation potential.
What makes this noteworthy is the attack surface: the vulnerability only triggers through the raw access paths. In normal image loading, the validate_header() function happens to sanitize this value before it reaches the allocation code. But the 'raw' modes—designed for color scientists and debugging workflows—bypass that incidental validation. The code path exists, the validation doesn't, and the result is attacker-controlled array indexing flowing into malloc().
Your defensive checklist: First, audit your deployment for any use of oiio:rawcolor or psd:rawdata. If you are loading PSD files from untrusted sources and raw mode is enabled anywhere in your pipeline, you are vulnerable—regardless of whether the tool 'intentionally' uses raw mode, because settings often propagate through asset metadata or configuration inheritance. Second, verify your OpenImageIO version: 3.0.21.0 and later contain the fix. Third, if upgrading is nontrivial, treat the raw mode code path as untrusted input surface: any PSD file entering a process that might enable raw access should be validated before it reaches OpenImageIO. Fourth, consider this a canary: if your pipeline has other 'rarely-used' format handlers or access modes, audit them. The pattern of validation existing in the main path but not in optimization/debug paths is a common failure mode in mature libraries, and this CVE is one data point suggesting OpenImageIO has accumulated similar technical debt elsewhere.