OpenEXRにおける整数オーバーフローの脆弱性
タイトル OpenEXRにおける整数オーバーフローの脆弱性
概要

OpenEXRは、映画業界向けの画像保存フォーマットであるEXRファイルフォーマットの仕様および参照実装を提供します。バージョン3.4.0から3.4.9には、OpenEXRのHTJ2K(High-Throughput JPEG 2000)デコードパスに符号付き整数オーバーフローの脆弱性があります。この脆弱性は、内部関数で32ビット符号付き整数を使用したバイト数の加算によりオーバーフローが発生し、未定義動作やヒープの境界外書き込みを引き起こします。細工されたEXRファイルを処理すると、メモリ割り当てに失敗したり、悪用により不正なメモリ書き込みが発生したりする可能性があります。本問題に対する修正は2026年4月5日にリリースされたバージョン3.4.10で実装されており、このバージョンへの更新を推奨します。

想定される影響 当該ソフトウェアが扱う情報について、外部への漏えいは発生しません。 また、当該ソフトウェアが扱う情報について、書き換えは発生しません。 さらに、当該ソフトウェアの一部が停止する可能性があります。 そして、この脆弱性を悪用した攻撃の影響は、他のソフトウェアには及びません。 
対策

正式な対策が公開されています。ベンダ情報を参照して適切な対策を実施してください。

公表日 2026年4月21日0:00
登録日 2026年4月24日11:42
最終更新日 2026年4月24日11:42
CVSS3.0 : 警告
スコア 5.3
ベクター CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
影響を受けるシステム
OpenEXR
OpenEXR 3.4.0 以上 3.4.10 未満
CVE (情報セキュリティ 共通脆弱性識別子)
CWE (共通脆弱性タイプ一覧)
ベンダー情報
その他
変更履歴
No 変更内容 変更日
1 [2026年04月24日]
  掲載
2026年4月24日11:42

NVD脆弱性情報
CVE-2026-39886
概要

OpenEXR provides the specification and reference implementation of the EXR file format, an image storage format for the motion picture industry. Versions 3.4.0 through 3.4.9 have a signed integer overflow vulnerability in OpenEXR's HTJ2K (High-Throughput JPEG 2000) decompression path. The `ht_undo_impl()` function in `src/lib/OpenEXRCore/internal_ht.cpp` accumulates a bytes-per-line value (`bpl`) using a 32-bit signed integer with no overflow guard. A crafted EXR file with 16,385 FLOAT channels at the HTJ2K maximum width of 32,767 causes `bpl` to overflow `INT_MAX`, producing undefined behavior confirmed by UBSan. On an
allocator-permissive host where the required ~64 GB allocation succeeds, the wrapped negative `bpl` value would subsequently be used as a per-scanline pointer advance, which would produce a heap out-of-bounds write. On a memory-constrained host, the allocation fails before `ht_undo_impl()` is entered. This is the second distinct integer overflow in `ht_undo_impl()`. CVE-2026-34545 addressed a different overflow in the same function — the `int16_t p` pixel-loop counter at line ~302 that overflows when iterating over channels whose `width` exceeds 32,767. The CVE-2026-34545 fix did not touch the `int bpl` accumulator at line 211, which is the subject of this advisory. The `bpl` accumulator was also not addressed by any of the 8 advisories in the 2026-04-05 v3.4.9 release batch. This finding is structurally identical to CVE-2026-34588 (PIZ `wcount*nx` overflow in `internal_piz.c`) and should be remediated with the same pattern. The CVE-2026-34588 fix did not touch `internal_ht.cpp`. Version 3.4.10 contains a remediation that addresses the vulnerability in `internal_ht.cpp`.

公表日 2026年4月21日11:16
登録日 2026年4月25日4:02
最終更新日 2026年4月23日3:41
影響を受けるソフトウェアの構成
構成1 以上 以下 より上 未満
cpe:2.3:a:openexr:openexr:*:*:*:*:*:*:*:* 3.4.0 3.4.10
関連情報、対策とツール
共通脆弱性一覧