CVE-2026-54080: Integer Truncation Before Size Check

A 64-bit integer value is narrowed or truncated to a 32-bit int before bounds validation, which can allow values exceeding 32-bit limits to wrap around and bypass size checks.

Provally CuratedPublic repositoryMediumMedium confidenceVerifiedApache-2.0Java
greprules fetch cve-2026-54080-integer-truncation-before-size-check --engine opengrep

Description

A 64-bit integer value is narrowed or truncated to a 32-bit int before bounds validation, which can allow values exceeding 32-bit limits to wrap around and bypass size checks.