REDHAT-BUG-2500686: High severity pypi/tornado vulnerability
Tornado is a Python web framework and asynchronous networking library. Prior to 6.5.6, Tornado gzip decompression routines processed limited-size chunks but did not enforce an overall limit on accumulated decompressed chunks, allowing a malicious server accessed by SimpleAsyncHTTPClient or an HTTPServer configured with decompressrequest=True to consume effectively unlimited memory. This issue is fixed in version 6.5.6.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
Tornadoto a version that resolves this vulnerability.Fixed in 6.5.6
Event History
Frequently Asked Questions
Which Tornado deployments are exposed to this issue?
Deployments using Tornado before 6.5.6 are exposed when they use SimpleAsyncHTTPClient to access a malicious server, or when HTTPServer is configured with decompress_request=True.
What does an attacker need to do to exploit the memory exhaustion?
The attacker needs to provide malicious gzip-compressed data to a vulnerable Tornado decompression path. A malicious upstream server can target SimpleAsyncHTTPClient, while an HTTPServer is affected when request decompression is enabled.
Is an HTTPServer affected by default?
The provided information identifies HTTPServer exposure only when it is configured with decompress_request=True. It does not state whether that setting is enabled by default.
What is the remediation?
Upgrade Tornado to version 6.5.6, which fixes the missing overall limit on accumulated decompressed chunks.