{"answers":{"affected":"3 open source packages ship an affected version, including tornado.","exploited":"There is no known exploitation of CVE-2026-49854 in the wild and no public exploit code.","fix":"Upgrade tornado to 6.5.6 or later.","what":"CVE-2026-49854 is a medium-severity memory corruption vulnerability in tornadoweb tornado, published on 14 Jul 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-49854 and fix it if it is affected.\n\nWhat it is: CVE-2026-49854 is a medium-severity memory corruption vulnerability in tornadoweb tornado, published on 14 Jul 2026. 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-2026-49854 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- tornado (PyPI): affected all versions; fixed in 6.5.6\n- tornado (PyPI): affected all versions; fixed in 6.5.6\n- tornado (PyPI): affected all versions; fixed in 6.5.6\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-2026-49854/ (Markdown: https://insights.sbomify.com/CVE-2026-49854/index.md)","id":"CVE-2026-49854","markdown":"https://insights.sbomify.com/CVE-2026-49854/index.md","name":"CVE-2026-49854","record":{"aliases":["AZL-92382","BELL-CVE-2026-49854","CLEANSTART-2026-EI49754","CLEANSTART-2026-YI76891","DEBIAN-CVE-2026-49854","ECHO-6886-9687-7159","GHSA-cx3h-4qpv-8hc9","MINI-23mq-4g4q-5xj9","MINI-72f9-6h26-9pqx","MINI-72r2-5fjr-x282","MINI-f263-r7hh-w766","MINI-grv3-jcmp-6868","MINI-jmqp-69g2-r6xf","MINI-m58r-274g-965f","MINI-r5jc-6p65-wg55","MINI-xrfp-w4m3-mjv5","PYSEC-2026-3388","UBUNTU-CVE-2026-49854"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["denial_of_service","code_execution"],"network_reachable":"yes","non_default_config":true,"product_category":"Python web framework","requires_auth":"none","summary":"Out-of-bounds read in Tornado's optional C extension during XSRF token decoding can cause crashes or potential code execution.","user_interaction":"not_required","vuln_class":"memory_corruption"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":5.3,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-126","name":"Buffer Over-read"}],"description":"Tornado is a Python web framework and asynchronous networking library. Prior to 6.5.6, the optional native extension tornado.speedups implemented websocket_mask without validating that the mask argument is exactly four bytes, allowing the C function to read up to three bytes beyond the provided buffer when reached through Tornado XSRF token decoding with the native extension active. This issue is fixed in version 6.5.6.","ecosystems":["PyPI"],"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: Out-of-bounds memory access in C extension","id":"CVE-2026-49854","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"memory_corruption","year":"2026"},"n_packages":3,"n_references":4,"next":{"headline":"tornado AsyncHTTPClient accumulates decompressed chunks without size limit (gzip bomb)","id":"CVE-2026-49855"},"packages":[{"ecosystem":"PyPI","fixed":["6.5.6"],"introduced":["0"],"last_affected":[],"package":"tornado","purl":null,"source":"GHSA-cx3h-4qpv-8hc9"},{"ecosystem":"PyPI","fixed":["6.5.6"],"introduced":["0"],"last_affected":[],"package":"tornado","purl":"pkg:pypi/tornado","source":"GHSA-cx3h-4qpv-8hc9"},{"ecosystem":"PyPI","fixed":["6.5.6"],"introduced":["0"],"last_affected":[],"package":"tornado","purl":"pkg:pypi/tornado","source":"PYSEC-2026-3388"}],"prev":{"headline":"Tornado: Authorization header forwarded across cross-origin redirects in SimpleAsyncHTTPClient","id":"CVE-2026-49853"},"products":["tornado"],"published":"2026-07-14","related":[],"sources":[{"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":"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":"2026-07-15","vendors":["tornadoweb"]},"summary":"Out-of-bounds read in Tornado's optional C extension during XSRF token decoding can cause crashes or potential code execution.","url":"https://insights.sbomify.com/CVE-2026-49854/"}