# CVE-2026-88387: LibRaw numeric conversion overflow in TIFF NewSubfileType parsing

Source: https://junglewise.ai/threats/cve-2026-88387-libraw-0-22-0-contains-an-incorrect-numeric-conversion  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-09-24. Updated: 2026-09-26  
License: CC BY 4.0 with a link back

CVE-2026-88387 · Severity: info · Published 2026-09-24

LibRaw, a widely-used library for processing RAW camera images, contains a flaw in how it handles TIFF metadata in image files. When opening a specially crafted RAW, TIFF, or DNG image file, an attacker can trigger an out-of-range numeric conversion that crashes the application, causing a denial of service. Any application using LibRaw to process untrusted image files is affected.

Technologies: [Libraw](https://junglewise.ai/threats/technologies/libraw). Vendors: [Libraw](https://junglewise.ai/threats/vendors/libraw).

## Quick answers

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

**How severe is CVE-2026-88387?** Informational severity, published 24 September 2026.

**Which products and versions are affected?** Libraw 0.22.0.

**Is there a fix for CVE-2026-88387?** A patch was published on 2026-08-07: Fix commit b41cbbd adds type validation to reject FLOAT/DOUBLE TIFF tag types for NewSubfileType Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2026-88387 attacked?** It is attacked over the network or with local access, in a software library.

**Am I affected by CVE-2026-88387?** Check whether you run Libraw 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

The vulnerability is an unsigned-to-signed integer conversion (CWE-681) in LibRaw::parse_tiff_ifd() at src/metadata/tiff.cpp:572. When processing TIFF tag 0x00fe (NewSubfileType), the parser retrieves an unsigned 32-bit value via getreal(type), converts it to double, and then casts it to a signed int without range validation. File-controlled values exceeding INT_MAX trigger undefined behavior; builds with float-cast-overflow sanitization abort with SIGILL. Attack vector is local/network (file opening); no authentication required.

## Affected products

- LibRaw LibRaw 0.22.0

## Timeline

- 2026-09-24: disclosed
- 2026-08-07: patched: Fix commit b41cbbd adds type validation to reject FLOAT/DOUBLE TIFF tag types for NewSubfileType

## References

- [https://github.com/LibRaw/LibRaw/commit/b41cbbd61951783e0440590dae55411a16185bdf](https://github.com/LibRaw/LibRaw/commit/b41cbbd61951783e0440590dae55411a16185bdf)
- [https://github.com/LibRaw/LibRaw/issues/844](https://github.com/LibRaw/LibRaw/issues/844)

## Related threats

- [LibRaw heap-based out-of-bounds read in Nikon makernote parsing](https://junglewise.ai/threats/cve-2026-111272-libraw-through-0-22-2-contains-a-heap-based-out-of-bounds-read)
- [LibRaw heap buffer overflow in stretch and fuji_rotate functions](https://junglewise.ai/threats/cve-2026-51235-libraw-heap-buffer-overflow-in-stretch-and-fuji-rotate-functions)
- [LibRaw heap buffer overflow in x3f_load_huffman](https://junglewise.ai/threats/cve-2026-24660-libraw-heap-buffer-overflow-in-x3f-load-huffman)
- [LibRaw heap buffer overflow in lossless_jpeg_load_raw](https://junglewise.ai/threats/cve-2026-21413-libraw-heap-buffer-overflow-in-lossless-jpeg-load-raw)
- [LibRaw heap buffer overflow in HuffTable::initval](https://junglewise.ai/threats/cve-2026-20911-libraw-heap-buffer-overflow-in-hufftable-initval)
