CVE-2026-72838: Go Unbounded Http Body Copy

HTTP request body is copied directly to a destination writer without enforcing a maximum length bound. This can allow oversized uploads to exhaust disk space or memory. Use 'io.LimitReader', 'io.CopyN', or 'http.MaxBytesReader' to enforce upload limits.

Provally CuratedPublic repositoryMediumMedium confidenceVerifiedApache-2.0Go
greprules fetch cve-2026-72838-go-unbounded-http-body-copy --engine opengrep

Description

HTTP request body is copied directly to a destination writer without enforcing a maximum length bound. This can allow oversized uploads to exhaust disk space or memory. Use 'io.LimitReader', 'io.CopyN', or 'http.MaxBytesReader' to enforce upload limits.