{"answers":{"affected":"3 open source packages ship an affected version, including tornado. It affects 1 product.","exploited":"There is no known exploitation of CVE-2024-52804 in the wild and no public exploit code.","fix":"Upgrade tornado to 6.4.2 or later.","what":"CVE-2024-52804 is a high-severity denial of service vulnerability in tornadoweb tornado, published on 22 Nov 2024. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-52804 and fix it if it is affected.\n\nWhat it is: CVE-2024-52804 is a high-severity denial of service vulnerability in tornadoweb tornado, published on 22 Nov 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2024-52804 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- tornado (PyPI): affected all versions; fixed in 6.4.2\n- tornado (PyPI): affected all versions; fixed in 6.4.2\n- tornado (PyPI): affected all versions; fixed in 6.4.2\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2024-52804/ (Markdown: https://insights.sbomify.com/CVE-2024-52804/index.md)","id":"CVE-2024-52804","markdown":"https://insights.sbomify.com/CVE-2024-52804/index.md","name":"CVE-2024-52804","record":{"aliases":["ALSA-2024:10590","ALSA-2025:2872","AZL-53522","AZL-53624","BELL-CVE-2024-52804","CLEANSTART-2026-SW42898","CLSA-2026-1774830272","DEBIAN-CVE-2024-52804","ECHO-d90e-6b66-657c","GHSA-8w49-h785-mj3c","MGASA-2025-0060","OESA-2024-2509","PYSEC-2026-1975","RHSA-2025:2550","RHSA-2025:2872","RHSA-2025:2955","RHSA-2025:2956","RHSA-2025:3109","RLSA-2024:10590","RLSA-2025:2471","RLSA-2025:2872","ROOT-APP-PYPI-CVE-2024-52804","SUSE-SU-2024:4137-1","SUSE-SU-2025:20096-1","UBUNTU-CVE-2024-52804","openSUSE-SU-2024:14528-1"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"Python web framework","requires_auth":"none","summary":"Attackers can cause excessive CPU consumption and block request processing by sending maliciously crafted HTTP cookie headers to applications using the Tornado library.","user_interaction":"not_required","vuln_class":"denial_of_service"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"tornado","vendor":"tornadoweb"}],"cvss":{"score":7.5,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","version":"3.1"},"cwes":[{"id":"CWE-770","name":"Allocation of Resources Without Limits or Throttling"},{"id":"CWE-400","name":"Uncontrolled Resource Consumption"}],"description":"Tornado is a Python web framework and asynchronous networking library. The algorithm used for parsing HTTP cookies in Tornado versions prior to 6.4.2 sometimes has quadratic complexity, leading to excessive CPU consumption when parsing maliciously-crafted cookie headers. This parsing occurs in the event loop thread and may block the processing of other requests. Version 6.4.2 fixes the issue.","ecosystems":["AlmaLinux:8","AlmaLinux:9","PyPI","Red Hat:enterprise_linux:8::highavailability","Red Hat:enterprise_linux:8::resilientstorage","Red Hat:rhel_aus:8.4::highavailability","Red Hat:rhel_e4s:8.4::highavailability","Red Hat:rhel_e4s:8.6::highavailability","Red Hat:rhel_e4s:9.0::highavailability","Red Hat:rhel_e4s:9.0::resilientstorage","Red Hat:rhel_eus:8.8::highavailability","Red Hat:rhel_eus:8.8::resilientstorage","Red Hat:rhel_tus:8.4::highavailability","Red Hat:rhel_tus:8.6::highavailability","Rocky Linux:8","Rocky Linux:9","SUSE:Linux Enterprise Module for Python 3 15 SP5","SUSE:Linux Enterprise Module for Python 3 15 SP6","SUSE:Linux Micro 6.0","openSUSE:Leap 15.5","openSUSE:Leap 15.6","openSUSE:Tumbleweed"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Tornado has HTTP cookie parsing DoS vulnerability","id":"CVE-2024-52804","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"denial_of_service","year":"2024"},"n_packages":37,"n_references":3,"next":{"headline":"Synapse allows unsupported content types to lead to memory exhaustion","id":"CVE-2024-52805"},"packages":[{"ecosystem":"PyPI","fixed":["6.4.2"],"introduced":["0"],"last_affected":[],"package":"tornado","purl":null,"source":"GHSA-8w49-h785-mj3c"},{"ecosystem":"PyPI","fixed":["6.4.2"],"introduced":["0"],"last_affected":[],"package":"tornado","purl":"pkg:pypi/tornado","source":"GHSA-8w49-h785-mj3c"},{"ecosystem":"PyPI","fixed":["6.4.2"],"introduced":["0"],"last_affected":[],"package":"tornado","purl":"pkg:pypi/tornado","source":"PYSEC-2026-1975"},{"ecosystem":"AlmaLinux:8","fixed":["0.10.18-2.el8_10.4.alma.1"],"introduced":["0"],"last_affected":[],"package":"pcs","purl":"pkg:rpm/almalinux/pcs","source":"ALSA-2025:2872"},{"ecosystem":"AlmaLinux:8","fixed":["0.10.18-2.el8_10.4.alma.1"],"introduced":["0"],"last_affected":[],"package":"pcs-snmp","purl":"pkg:rpm/almalinux/pcs-snmp","source":"ALSA-2025:2872"},{"ecosystem":"AlmaLinux:9","fixed":["6.4.2-1.el9_5"],"introduced":["0"],"last_affected":[],"package":"python3-tornado","purl":"pkg:rpm/almalinux/python3-tornado","source":"ALSA-2024:10590"},{"ecosystem":"Red Hat:enterprise_linux:8::highavailability","fixed":["0:0.10.18-2.el8_10.4"],"introduced":["0"],"last_affected":[],"package":"pcs","purl":"pkg:rpm/redhat/pcs","source":"RHSA-2025:2872"},{"ecosystem":"Red Hat:enterprise_linux:8::highavailability","fixed":["0:0.10.18-2.el8_10.4"],"introduced":["0"],"last_affected":[],"package":"pcs-snmp","purl":"pkg:rpm/redhat/pcs-snmp","source":"RHSA-2025:2872"},{"ecosystem":"Red Hat:enterprise_linux:8::resilientstorage","fixed":["0:0.10.18-2.el8_10.4"],"introduced":["0"],"last_affected":[],"package":"pcs","purl":"pkg:rpm/redhat/pcs","source":"RHSA-2025:2872"},{"ecosystem":"Red Hat:enterprise_linux:8::resilientstorage","fixed":["0:0.10.18-2.el8_10.4"],"introduced":["0"],"last_affected":[],"package":"pcs-snmp","purl":"pkg:rpm/redhat/pcs-snmp","source":"RHSA-2025:2872"},{"ecosystem":"Red Hat:rhel_aus:8.4::highavailability","fixed":["0:0.10.8-1.el8_4.6"],"introduced":["0"],"last_affected":[],"package":"pcs","purl":"pkg:rpm/redhat/pcs","source":"RHSA-2025:2955"},{"ecosystem":"Red Hat:rhel_aus:8.4::highavailability","fixed":["0:0.10.8-1.el8_4.6"],"introduced":["0"],"last_affected":[],"package":"pcs-snmp","purl":"pkg:rpm/redhat/pcs-snmp","source":"RHSA-2025:2955"},{"ecosystem":"Red Hat:rhel_e4s:8.4::highavailability","fixed":["0:0.10.8-1.el8_4.6"],"introduced":["0"],"last_affected":[],"package":"pcs","purl":"pkg:rpm/redhat/pcs","source":"RHSA-2025:2955"},{"ecosystem":"Red Hat:rhel_e4s:8.4::highavailability","fixed":["0:0.10.8-1.el8_4.6"],"introduced":["0"],"last_affected":[],"package":"pcs-snmp","purl":"pkg:rpm/redhat/pcs-snmp","source":"RHSA-2025:2955"},{"ecosystem":"Red Hat:rhel_e4s:8.6::highavailability","fixed":["0:0.10.12-6.el8_6.7"],"introduced":["0"],"last_affected":[],"package":"pcs","purl":"pkg:rpm/redhat/pcs","source":"RHSA-2025:2956"},{"ecosystem":"Red Hat:rhel_e4s:8.6::highavailability","fixed":["0:0.10.12-6.el8_6.7"],"introduced":["0"],"last_affected":[],"package":"pcs-snmp","purl":"pkg:rpm/redhat/pcs-snmp","source":"RHSA-2025:2956"},{"ecosystem":"Red Hat:rhel_e4s:9.0::highavailability","fixed":["0:0.11.1-10.el9_0.7"],"introduced":["0"],"last_affected":[],"package":"pcs","purl":"pkg:rpm/redhat/pcs","source":"RHSA-2025:2550"},{"ecosystem":"Red Hat:rhel_e4s:9.0::highavailability","fixed":["0:0.11.1-10.el9_0.7"],"introduced":["0"],"last_affected":[],"package":"pcs-snmp","purl":"pkg:rpm/redhat/pcs-snmp","source":"RHSA-2025:2550"},{"ecosystem":"Red Hat:rhel_e4s:9.0::resilientstorage","fixed":["0:0.11.1-10.el9_0.7"],"introduced":["0"],"last_affected":[],"package":"pcs","purl":"pkg:rpm/redhat/pcs","source":"RHSA-2025:2550"},{"ecosystem":"Red Hat:rhel_e4s:9.0::resilientstorage","fixed":["0:0.11.1-10.el9_0.7"],"introduced":["0"],"last_affected":[],"package":"pcs-snmp","purl":"pkg:rpm/redhat/pcs-snmp","source":"RHSA-2025:2550"},{"ecosystem":"Red Hat:rhel_eus:8.8::highavailability","fixed":["0:0.10.15-4.el8_8.4"],"introduced":["0"],"last_affected":[],"package":"pcs","purl":"pkg:rpm/redhat/pcs","source":"RHSA-2025:3109"},{"ecosystem":"Red Hat:rhel_eus:8.8::highavailability","fixed":["0:0.10.15-4.el8_8.4"],"introduced":["0"],"last_affected":[],"package":"pcs-snmp","purl":"pkg:rpm/redhat/pcs-snmp","source":"RHSA-2025:3109"},{"ecosystem":"Red Hat:rhel_eus:8.8::resilientstorage","fixed":["0:0.10.15-4.el8_8.4"],"introduced":["0"],"last_affected":[],"package":"pcs","purl":"pkg:rpm/redhat/pcs","source":"RHSA-2025:3109"},{"ecosystem":"Red Hat:rhel_eus:8.8::resilientstorage","fixed":["0:0.10.15-4.el8_8.4"],"introduced":["0"],"last_affected":[],"package":"pcs-snmp","purl":"pkg:rpm/redhat/pcs-snmp","source":"RHSA-2025:3109"},{"ecosystem":"Red Hat:rhel_tus:8.4::highavailability","fixed":["0:0.10.8-1.el8_4.6"],"introduced":["0"],"last_affected":[],"package":"pcs","purl":"pkg:rpm/redhat/pcs","source":"RHSA-2025:2955"},{"ecosystem":"Red Hat:rhel_tus:8.4::highavailability","fixed":["0:0.10.8-1.el8_4.6"],"introduced":["0"],"last_affected":[],"package":"pcs-snmp","purl":"pkg:rpm/redhat/pcs-snmp","source":"RHSA-2025:2955"},{"ecosystem":"Red Hat:rhel_tus:8.6::highavailability","fixed":["0:0.10.12-6.el8_6.7"],"introduced":["0"],"last_affected":[],"package":"pcs","purl":"pkg:rpm/redhat/pcs","source":"RHSA-2025:2956"},{"ecosystem":"Red Hat:rhel_tus:8.6::highavailability","fixed":["0:0.10.12-6.el8_6.7"],"introduced":["0"],"last_affected":[],"package":"pcs-snmp","purl":"pkg:rpm/redhat/pcs-snmp","source":"RHSA-2025:2956"},{"ecosystem":"Rocky Linux:8","fixed":["0:0.10.18-2.el8_10.4"],"introduced":["0"],"last_affected":[],"package":"pcs","purl":"pkg:rpm/rocky-linux/pcs?distro=rocky-linux-8\u0026epoch=0","source":"RLSA-2025:2872"},{"ecosystem":"Rocky Linux:9","fixed":["0:0.11.8-1.el9_5.2"],"introduced":["0"],"last_affected":[],"package":"pcs","purl":"pkg:rpm/rocky-linux/pcs?distro=rocky-linux-9\u0026epoch=0","source":"RLSA-2025:2471"},{"ecosystem":"Rocky Linux:9","fixed":["0:6.4.2-1.el9_5"],"introduced":["0"],"last_affected":[],"package":"python-tornado","purl":"pkg:rpm/rocky-linux/python-tornado?distro=rocky-linux-9\u0026epoch=0","source":"RLSA-2024:10590"},{"ecosystem":"SUSE:Linux Enterprise Module for Python 3 15 SP5","fixed":["6.3.2-150400.9.6.1"],"introduced":["0"],"last_affected":[],"package":"python-tornado6","purl":"pkg:rpm/suse/python-tornado6\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Python%203%2015%20SP5","source":"SUSE-SU-2024:4137-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Python 3 15 SP6","fixed":["6.3.2-150400.9.6.1"],"introduced":["0"],"last_affected":[],"package":"python-tornado6","purl":"pkg:rpm/suse/python-tornado6\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Python%203%2015%20SP6","source":"SUSE-SU-2024:4137-1"},{"ecosystem":"SUSE:Linux Micro 6.0","fixed":["6.4-2.1"],"introduced":["0"],"last_affected":[],"package":"python-tornado6","purl":"pkg:rpm/suse/python-tornado6\u0026distro=SUSE%20Linux%20Micro%206.0","source":"SUSE-SU-2025:20096-1"},{"ecosystem":"openSUSE:Leap 15.5","fixed":["6.3.2-150400.9.6.1"],"introduced":["0"],"last_affected":[],"package":"python-tornado6","purl":"pkg:rpm/opensuse/python-tornado6\u0026distro=openSUSE%20Leap%2015.5","source":"SUSE-SU-2024:4137-1"},{"ecosystem":"openSUSE:Leap 15.6","fixed":["6.3.2-150400.9.6.1"],"introduced":["0"],"last_affected":[],"package":"python-tornado6","purl":"pkg:rpm/opensuse/python-tornado6\u0026distro=openSUSE%20Leap%2015.6","source":"SUSE-SU-2024:4137-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["6.4.2-1.1"],"introduced":["0"],"last_affected":[],"package":"python-tornado6","purl":"pkg:rpm/opensuse/python-tornado6\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2024:14528-1"}],"prev":{"headline":"LLama Factory Remote OS Command Injection Vulnerability","id":"CVE-2024-52803"},"products":["tornado"],"published":"2024-11-22","related":[{"cvss_score":8.7,"headline":"Tornado has a DoS due to too many multipart parts","id":"CVE-2026-31958","kev_date_added":null,"published":"2026-03-11"},{"cvss_score":7.5,"headline":"Tornado is Vulnerable to Quadratic DoS via Repeated Header Coalescing","id":"CVE-2025-67725","kev_date_added":null,"published":"2025-12-12"},{"cvss_score":7.5,"headline":"Tornado is Vulnerable to Quadratic DoS via Crafted Multipart Parameters","id":"CVE-2025-67726","kev_date_added":null,"published":"2025-12-12"},{"cvss_score":7.2,"headline":"Tornado has incomplete validation of cookie attributes","id":"CVE-2026-35536","kev_date_added":null,"published":"2026-04-03"},{"cvss_score":6.5,"headline":"Tornado XSRF cookie allows side-channel attack against TLS (BREACH attack)","id":"CVE-2014-9720","kev_date_added":null,"published":"2020-01-24"},{"cvss_score":6.1,"headline":"Open redirect in Tornado","id":"CVE-2023-28370","kev_date_added":null,"published":"2023-05-25"}],"sources":[{"class":"attribution","licence":"MIT","name":"AlmaLinux","prefix":"ALSA"},{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"class":"attribution","licence":"CC BY 4.0","name":"Red Hat","prefix":"RHSA"},{"class":"attribution","licence":"BSD","name":"Rocky Linux","prefix":"RLSA"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"SUSE"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"openSUSE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-11-03","vendors":["tornadoweb"]},"summary":"Attackers can cause excessive CPU consumption and block request processing by sending maliciously crafted HTTP cookie headers to applications using the Tornado library.","url":"https://insights.sbomify.com/CVE-2024-52804/"}