mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-13 09:44:04 -09:00
Fixes the following vulnerabilities:
- CVE-2025-67724:
Tornado is a Python web framework and asynchronous networking library.
In versions 6.5.2 and below, the supplied reason phrase is used
unescaped in HTTP headers (where it could be used for header
injection) or in HTML in the default error page (where it could be
used for XSS) and can be exploited by passing untrusted or malicious
data into the reason argument. Used by both RequestHandler.set_status
and tornado.web.HTTPError, the argument is designed to allow
applications to pass custom "reason" phrases (the "Not Found" in
HTTP/1.1 404 Not Found) to the HTTP status line (mainly for non-
standard status codes). This issue is fixed in version 6.5.3.
For more information, see:
- https://www.cve.org/CVERecord?id=CVE-2025-67724
- 9c163aebea
- CVE-2025-67725:
Tornado is a Python web framework and asynchronous networking library.
In versions 6.5.2 and below, a single maliciously crafted HTTP request
can block the server's event loop for an extended period, caused by
the HTTPHeaders.add method. The function accumulates values using
string concatenation when the same header name is repeated, causing a
Denial of Service (DoS). Due to Python string immutability, each
concatenation copies the entire string, resulting in O(n²) time
complexity. The severity can vary from high if max_header_size has
been increased from its default, to low if it has its default value of
64KB. This issue is fixed in version 6.5.3.
For more information, see:
- https://www.cve.org/CVERecord?id=CVE-2025-67725
- 771472cfda
- CVE-2025-67726:
Tornado is a Python web framework and asynchronous networking library.
Versions 6.5.2 and below use an inefficient algorithm when parsing
parameters for HTTP header values, potentially causing a DoS. The
_parseparam function in httputil.py is used to parse specific HTTP
header values, such as those in multipart/form-data and repeatedly
calls string.count() within a nested loop while processing quoted
semicolons. If an attacker sends a request with a large number of
maliciously crafted parameters in a Content-Disposition header, the
server's CPU usage increases quadratically (O(n²)) during parsing. Due
to Tornado's single event loop architecture, a single malicious
request can cause the entire server to become unresponsive for an
extended period. This issue is fixed in version 6.5.3.
For more information, see:
- https://www.cve.org/CVERecord?id=CVE-2025-67726
- 771472cfda
(cherry picked from commit e59cc42d2f)
Signed-off-by: Thomas Perale <thomas.perale@mind.be>
26 lines
961 B
Makefile
26 lines
961 B
Makefile
################################################################################
|
|
#
|
|
# python-tornado
|
|
#
|
|
################################################################################
|
|
|
|
PYTHON_TORNADO_VERSION = 6.4.2
|
|
PYTHON_TORNADO_SOURCE = tornado-$(PYTHON_TORNADO_VERSION).tar.gz
|
|
PYTHON_TORNADO_SITE = https://files.pythonhosted.org/packages/59/45/a0daf161f7d6f36c3ea5fc0c2de619746cc3dd4c76402e9db545bd920f63
|
|
PYTHON_TORNADO_LICENSE = Apache-2.0
|
|
PYTHON_TORNADO_LICENSE_FILES = LICENSE
|
|
PYTHON_TORNADO_CPE_ID_VENDOR = tornadoweb
|
|
PYTHON_TORNADO_CPE_ID_PRODUCT = tornado
|
|
PYTHON_TORNADO_SETUP_TYPE = setuptools
|
|
|
|
# 0001-httputil-raise-errors-instead-of-logging-in.patch
|
|
PYTHON_TORNADO_IGNORE_CVES += CVE-2025-47287
|
|
|
|
# 0002-web-Harden-against-invalid-HTTP-reason-phrases.patch
|
|
PYTHON_TORNADO_IGNORE_CVES += CVE-2025-67724
|
|
|
|
# 0003-httputil-Fix-quadratic-behavior-in-parseparam.patch
|
|
PYTHON_TORNADO_IGNORE_CVES += CVE-2025-67725 CVE-2025-67726
|
|
|
|
$(eval $(python-package))
|