CVE-2026-33816: Function Call Go Cwe 000 Cve 2026 33816

A 4-byte wire-protocol length/count is read with binary.BigEndian.Uint32(...) and only widened with plain int(...) before it is used as a slice bound ($BUF[$X : $X + $N], $BUF[$N:] or $BUF[:$N]). Unsigned widening makes the value never negative, so the protocol's -1 NULL sentinel check can never match the real NULL encoding (0xFFFFFFFF) and no negative-lengt

Provally CuratedPublic repositoryHighHigh confidenceVerifiedApache-2.0Go
greprules fetch cve-2026-33816-function-call-go-cwe-000-cve-2026-33816 --engine opengrep

Description

A 4-byte wire-protocol length/count is read with binary.BigEndian.Uint32(...) and only widened with plain int(...) before it is used as a slice bound ($BUF[$X : $X + $N], $BUF[$N:] or $BUF[:$N]). Unsigned widening makes the value never negative, so the protocol's -1 NULL sentinel check can never match the real NULL encoding (0xFFFFFFFF) and no negative-lengt