CVE-2025-65797: Grpc Httpbody Binary Dos

Serving binary files via gRPC endpoints returning `*httpbody.HttpBody` requires loading entire file payloads into memory. This can cause resource exhaustion (DoS) when serializing large files. Additionally, this pattern often bypasses standard HTTP-level access control middlewares. Migrate file streaming to a dedicated HTTP server using `http.ResponseWriter`

Provally CuratedPublic repositoryMediumMedium confidenceVerifiedApache-2.0Go
greprules fetch cve-2025-65797-grpc-httpbody-binary-dos --engine opengrep

Description

Serving binary files via gRPC endpoints returning `*httpbody.HttpBody` requires loading entire file payloads into memory. This can cause resource exhaustion (DoS) when serializing large files. Additionally, this pattern often bypasses standard HTTP-level access control middlewares. Migrate file streaming to a dedicated HTTP server using `http.ResponseWriter`