# CVE-2026-49854: Tornado: Out-of-bounds memory access in C extension

- Severity: Medium 5.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.34%, higher than 29% of CVEs (2026-12-01)
- Published: 2026-06-12T18:30:19.000Z
- Modified: 2026-10-24T21:10:00.130Z
- Also known as: GHSA-cx3h-4qpv-8hc9, PYSEC-2026-3388
- Weaknesses: CWE-126
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- tornadoweb tornado: < 6.5.6
- tornado (PyPI): before 6.5.6

## Every score

- GitHub_M: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`
- GitHub: CVSS:3.1 3.7 Low `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N`
- PyPA Advisory Database: CVSS:3.1 3.7 Low `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N`

## References

- <https://github.com/tornadoweb/tornado/security/advisories/GHSA-cx3h-4qpv-8hc9> (web)
- <https://github.com/tornadoweb/tornado/pull/3626>
- <https://github.com/tornadoweb/tornado/commit/96dc88c2a05705287856b2cd6b4b4034f9a6aaac>
- <https://github.com/tornadoweb/tornado/releases/tag/v6.5.6> (web)
- <https://github.com/tornadoweb/tornado> (package)
- <https://pypi.org/project/tornado> (package)
- <https://github.com/advisories/GHSA-cx3h-4qpv-8hc9> (advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-49854> (advisory)

## Sources

- CVE List: [CVE-2026-49854](https://www.cve.org/CVERecord?id=CVE-2026-49854), CVE Terms of Use, modified 2026-07-15
- GitHub Advisory Database: [GHSA-cx3h-4qpv-8hc9](https://github.com/advisories/GHSA-cx3h-4qpv-8hc9), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-49854](https://nvd.nist.gov/vuln/detail/CVE-2026-49854), Public domain, modified 2026-10-24
- PyPA Advisory Database: [PYSEC-2026-3388](https://osv.dev/vulnerability/PYSEC-2026-3388), CC-BY-4.0, modified 2026-07-13

---

Page: https://cve.day/CVE-2026-49854 · Whole record: https://cve.day/CVE-2026-49854.json · Rebuilt by cve.day 2026-11-25T22:59:28.231Z
