# CVE-2026-43905: OpenImageIO heap overflow in JPEG2000 reader

Source: https://junglewise.ai/threats/cve-2026-43905-openimageio-heap-overflow-in-jpeg2000-reader  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-05-14. Updated: 2026-05-15  
License: CC BY 4.0 with a link back

CVE-2026-43905 · Severity: high · CVSS 7.8 · Published 2026-05-14

OpenImageIO is a widely used library for processing image files in the visual effects and animation industries. A security flaw in how it handles JPEG2000 images allows a specially crafted image file to crash the software or potentially allow an attacker to run unauthorized code. This could lead to data theft or system compromise if a user is tricked into opening a malicious image file.

Technologies: [Academy Software Foundation OpenImageIO](https://junglewise.ai/threats/technologies/openimageio). Vendors: [Academy Software Foundation](https://junglewise.ai/threats/vendors/academy-software-foundation).

## Quick answers

**Is CVE-2026-43905 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-43905 being exploited in the wild.

**How severe is CVE-2026-43905?** High severity, with a CVSS score of 7.8, published 14 May 2026.

**Which products and versions are affected?** Academy Software Foundation OpenImageIO < 3.0.18.0, < 3.1.13.0.

**Is there a fix for CVE-2026-43905?** No fixed version is recorded yet. Check the vendor's advisory in the references below. If you run it, Junglewise drafts a mitigation that fits your setup and applies it once you approve, with senior security engineers behind it.

**How is CVE-2026-43905 attacked?** It is attacked with local access, in a software library.

**Am I affected by CVE-2026-43905?** Check whether you run Academy Software Foundation OpenImageIO at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## Technical details

An integer overflow vulnerability exists in `jpeg2000input.cpp` within OpenImageIO when compiled with the `USE_OPENJPH` flag. The library calculates the required buffer size for JPEG2000 images using signed 32-bit arithmetic (`w * h * ch * buffer_bpp`). When processing images with very large dimensions, this product can exceed `INT_MAX`, causing a wraparound to zero or a small value. Consequently, `m_buf.resize()` allocates an undersized buffer, while subsequent pixel write loops use the original large dimensions, resulting in a heap buffer overflow. Additionally, the JPEG2000 reader fails to call `check_open()`, bypassing global image size protections. The issue is fixed in versions 3.0.18.0 and 3.1.13.0.

## Affected products

- Academy Software Foundation (ASWF) OpenImageIO < 3.0.18.0, < 3.1.13.0

## Timeline

- 2026-05-03: advisory: GitHub Security Advisory published
- 2026-05-14: disclosed: CVE published to NVD

## References

- [https://github.com/AcademySoftwareFoundation/OpenImageIO/security/advisories/GHSA-pj45-cf3g-28gq](https://github.com/AcademySoftwareFoundation/OpenImageIO/security/advisories/GHSA-pj45-cf3g-28gq)

## Related threats

- [OpenImageIO integer overflow in Cineon codec scanline buffer](https://junglewise.ai/threats/cve-2026-113681-openimageio-before-3-0-20-0-3-1-x-before-3-1-15-0-and-3-2-x)
- [OpenImageIO heap overflow in TIFF CMYK decoding](https://junglewise.ai/threats/cve-2026-67549-openimageio-is-a-toolset-for-reading-writing-and-manipulating)
- [OpenImageIO use-after-scope in multithreaded TIFF decompression](https://junglewise.ai/threats/cve-2026-65970-openimageio-is-a-toolset-for-reading-writing-and-manipulating)
- [OpenImageIO integer overflow in GIF palette splitting](https://junglewise.ai/threats/cve-2026-65969-openimageio-is-a-toolset-for-reading-writing-and-manipulating)
- [OpenImageIO heap overflow in cineon image parsing](https://junglewise.ai/threats/cve-2026-63638-openimageio-is-a-toolset-for-reading-writing-and-manipulating)
