{"id":"CVE-2026-49854","published":"2026-07-14T20:43:03Z","modified":"2026-07-15T13:26:39Z","title":"Tornado: Out-of-bounds memory access in C extension","vendor":"tornadoweb","product":"tornado","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.3,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00419,"percentile":0.27938,"provenance":"source"},"cwes":[{"id":"CWE-126","name":"Buffer Over-read"}],"references":[{"url":"https://github.com/tornadoweb/tornado/security/advisories/GHSA-cx3h-4qpv-8hc9","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/tornadoweb/tornado/pull/3626","tags":["x_refsource_MISC"]},{"url":"https://github.com/tornadoweb/tornado/commit/96dc88c2a05705287856b2cd6b4b4034f9a6aaac","tags":["x_refsource_MISC"]},{"url":"https://github.com/tornadoweb/tornado/releases/tag/v6.5.6","tags":["x_refsource_MISC"]}],"priority":{"score":9.3,"factors":[{"name":"EPSS percentile","points":5.59},{"name":"CVSS severity","points":3.71}]},"vendorSlug":"tornadoweb","affectedVersions":[{"vendor":"tornadoweb","product":"tornado","versions":["< 6.5.6"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2026-07-15T13:23:13.452445Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"tornado","vulnerableRanges":["<6.5.6"],"patched":["6.5.6"],"from":["GHSA-cx3h-4qpv-8hc9","PYSEC-2026-3388"],"provenance":"source"}],"summary":{"text":"Tornado's optional native C extension tornado.speedups contains an out-of-bounds read flaw in its websocket_mask function, which does not check that the mask argument is exactly four bytes long. An attacker who can reach the XSRF token decoding path with the native extension active can cause the function to read up to three bytes past the end of the supplied buffer, with no authentication or user interaction required over the network.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:59:59Z"},"euvd":{"id":"EUVD-2026-44504","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-tornadoweb-tornado-cve-2025-47287","parents":[{"from":"CVE-2026-49853","to":"CVE-2026-49854","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["tornado/speedups.c","tornado/util.py"],"commits":["https://github.com/tornadoweb/tornado/commit/aba2569f7ed7a6bdbef816658fb6b7182531b751","https://github.com/tornadoweb/tornado/commit/96dc88c2a05705287856b2cd6b4b4034f9a6aaac"],"basis":"shared function","functions":["_websocket_mask_python","exec_in"]}]}],"packageHistory":[{"cve":"CVE-2026-31958","published":"2026-03-11","fixed":"6.5.5","kev":false},{"cve":"CVE-2026-35536","published":"2026-04-03","fixed":"6.5.5","kev":false,"link":{"from":"CVE-2026-35536","to":"CVE-2026-49854","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:tornado","fromFixed":"6.5.5","toFixed":"6.5.6","daysApart":102}]}},{"cve":"CVE-2026-49853","published":"2026-07-14","fixed":"6.5.6","kev":false},{"cve":"CVE-2026-49854","published":"2026-07-14","fixed":"6.5.6","kev":false},{"cve":"CVE-2026-49855","published":"2026-07-14","fixed":"6.5.6","kev":false},{"cve":"CVE-2026-82397","published":"2026-08-31","fixed":"6.5.8","kev":false,"link":{"from":"CVE-2026-49854","to":"CVE-2026-82397","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:tornado","fromFixed":"6.5.6","toFixed":"6.5.8","daysApart":48}]}},{"cve":"CVE-2026-115927","published":"2026-10-26","fixed":"6.6","kev":false}],"package":"PyPI:tornado"}}