Skip to content

security: cap chunked HTTP request chunk count at 65536 (#8770)#8796

Open
Kartalops wants to merge 1 commit into
triton-inference-server:mainfrom
Kartalops:security/http-chunk-limit
Open

security: cap chunked HTTP request chunk count at 65536 (#8770)#8796
Kartalops wants to merge 1 commit into
triton-inference-server:mainfrom
Kartalops:security/http-chunk-limit

Conversation

@Kartalops

Copy link
Copy Markdown

Summary

Caps chunked HTTP request chunk count at 65536 to prevent memory exhaustion attacks.

Motivation

Issue #8770 reports that chunked HTTP requests can consume excessive memory without a limit.

What this PR does

  • Adds a cap of 65536 chunks per request
  • Returns error 413 when limit exceeded
  • Prevents memory exhaustion from maliciously large chunk counts

Testing

  • Build passes
  • Existing tests pass

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant