CVE-2026-35590: Exif Ifd Missing Bounds Check

An EXIF IFD index extracted via `atoi` is not validated before usage. An attacker can supply an out-of-bounds IFD index in EXIF metadata, potentially leading to a null pointer dereference or out-of-bounds memory access deep inside EXIF decoding libraries. Ensure the result of `atoi` is bounds-checked (e.g., against the expected maximum IFD count) immediately

Provally CuratedPublic repositoryHighMedium confidenceVerifiedApache-2.0C
greprules fetch cve-2026-35590-exif-ifd-missing-bounds-check --engine opengrep

Description

An EXIF IFD index extracted via `atoi` is not validated before usage. An attacker can supply an out-of-bounds IFD index in EXIF metadata, potentially leading to a null pointer dereference or out-of-bounds memory access deep inside EXIF decoding libraries. Ensure the result of `atoi` is bounds-checked (e.g., against the expected maximum IFD count) immediately