Skip to content

Security fixes for release 6.5.5#3584

Merged
bdarnell merged 3 commits intotornadoweb:masterfrom
bdarnell:security-655
Mar 10, 2026
Merged

Security fixes for release 6.5.5#3584
bdarnell merged 3 commits intotornadoweb:masterfrom
bdarnell:security-655

Conversation

@bdarnell
Copy link
Member

No description provided.

bdarnell added 3 commits March 6, 2026 15:09
The new default limits prevent a DoS vulnerability involving
requests with many multipart parts. It also adds a defense-in-depth
limit on the size of multipart headers, which would have mitigated
the vulnerability fixed in 6.5.3.

New data structures are added to allow users to configure these limits,
and to disable multipart parsing entirely if they choose. However,
due to the complexity of the plumbing required to pass these
configuration options through the stack, the only configuration
provided in this commit is the ability to set a global default.
Our previous control character check was missing a check for
U+007F, and also semicolons, which are only allowed in quoted
parts of values. This commit checks all attributes and
updates the set of disallowed characters.
I think these were omitted due to quirks of an older version of the
parsing code. Linefeeds are already effectively prohibited within
header values since they are interpreted as delimiters, so the net
effect of this change is to prohibit bare carriage returns within
header values. This RE is used only when parsing headers inside
multipart/form-data bodies; for HTTP headers CR was already prohibited.
@bdarnell bdarnell merged commit 1bc925b into tornadoweb:master Mar 10, 2026
15 checks passed
@bdarnell bdarnell deleted the security-655 branch March 10, 2026 16:39
vzhestkov added a commit to openSUSE/salt that referenced this pull request Mar 12, 2026
Co-authored-by: Ben Darnell <ben@bendarnell.com>
vzhestkov added a commit to openSUSE/salt that referenced this pull request Mar 12, 2026
Co-authored-by: Ben Darnell <ben@bendarnell.com>
vzhestkov added a commit to openSUSE/salt that referenced this pull request Mar 12, 2026
Co-authored-by: Ben Darnell <ben@bendarnell.com>
vzhestkov added a commit to openSUSE/salt that referenced this pull request Mar 12, 2026
Co-authored-by: Ben Darnell <ben@bendarnell.com>
vzhestkov added a commit to openSUSE/salt that referenced this pull request Mar 13, 2026
Co-authored-by: Ben Darnell <ben@bendarnell.com>
vzhestkov added a commit to openSUSE/salt that referenced this pull request Mar 13, 2026
Co-authored-by: Ben Darnell <ben@bendarnell.com>
vzhestkov added a commit to openSUSE/salt that referenced this pull request Mar 17, 2026
Co-authored-by: Ben Darnell <ben@bendarnell.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant