CVE-2026-17535: Go Slice Underflow Len Subtraction

Calculation `len(...) - offset - N` performed without verifying that slice length is sufficient. Malformed input could cause integer underflow and out-of-bounds slice access panics.

Provally CuratedPublic repositoryHighMedium confidenceVerifiedApache-2.0Go
greprules fetch cve-2026-17535-go-slice-underflow-len-subtraction --engine opengrep

Description

Calculation `len(...) - offset - N` performed without verifying that slice length is sufficient. Malformed input could cause integer underflow and out-of-bounds slice access panics.