CVE-2026-103263 — Vulnerability in tornado — CVE Details
Tornado: StaticFileHandler follows symlinks outside static root (path traversal)
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (0.53%). Schedule for your next planned update.
Does your project use an affected tornado version?
Paste your requirements.txt to check it for CVE-2026-103263 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
Summary
StaticFileHandler allows an unauthenticated attacker to read arbitrary files from the server's filesystem by requesting a path that resolves to a symbolic link placed inside the static root directory. Any application that serves user-uploadable content, or whose static directory is populated by a build/deploy pipeline that creates symlinks (e.g. npm link, webpack, Docker volume mounts, CDN sync tools), is affected. An attacker who can trigger the creation of a symlink pointing outside the static root—or exploit one that already exists—can retrieve sensitive files such as /etc/passwd, private keys, configuration files, or application secrets.
Details
The vulnerability is in tornado.web.StaticFileHandler, specifically in the interaction between two methods in tornado/web.py:
- get_absolute_path uses
os.path.abspath()to resolve the requested path: - validate_absolute_path uses the same
os.path.abspath()on the root, then performs a string prefix check:
os.path.abspath() normalises . and .. segments but does not resolve symbolic links. As a result, a path like /var/www/static/link passes the startswith("/var/www/static/") check regardless of where link actually points.
Immediately after, os.path.exists() and os.path.isfile() do follow symlinks, so the file they ultimately open is the symlink's target. The fix would be to replace os.path.abspath() with os.path.realpath() in both methods, so the resolved real path of the symlink target is validated against the root, not just its string representation inside the static directory.
PoC
Complete instructions, including specific configuration details, to reproduce the vulnerability. Prerequisites: Python 3.x, Tornado installed.
- Create the environment
mkdir -p /tmp/static
echo "DB_PASSWORD=s3cr3t" > /tmp/secret.conf
ln -s /tmp/secret.conf /tmp/static/config.conf
- Minimal vulnerable server (server.py):
import tornado.web, tornado.ioloop
app = tornado.web.Application([
(r"/static/(.*)", tornado.web.StaticFileHandler, {"path": "/tmp/static"}),
])
app.listen(8888)
tornado.ioloop.IOLoop.current().start()
- Exploit:
curl http://localhost:8888/static/config.conf
Impact
Any application using StaticFileHandler is potentially affected if:
- the static directory contains symlinks pointing outside it (common with build tooling), or
- the application allows file uploads into the static directory without stripping symlinks.
An unauthenticated remote attacker can read any file readable by the process user: application secrets, private TLS keys, database credentials, /etc/shadow, SSH keys, or source code (depending on the process's filesystem permissions).
Advisory Timeline
- First published September 30, 2026 (56 days ago).
- Last revised October 2, 2026 — 1 day after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
pip install "tornado>=6.5.9"
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (1)
Affects 1 ecosystem: PyPI (1).
| Package | Fixed In |
|---|---|
| tornado PyPI · Affected: 0.2, 1.0, 1.1, 1.1.1 (+80 more) | 6.5.9 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-59
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 5.6 score means for each attack dimension.
CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
References
- https://github.com/tornadoweb/tornado/security/advisories/GHSA-c2m8-h5v5-343rWEB
- https://github.com/tornadoweb/tornado/pull/3719WEB
- https://github.com/tornadoweb/tornado/commit/437ab5f76565403b3403438d2e555d11f8128d32WEB
- https://github.com/tornadoweb/tornado/commit/f9f50b8bab265a2abf9f2415a3d2da6264a5450bWEB
- https://github.com/tornadoweb/tornadoPACKAGE
- https://github.com/tornadoweb/tornado/releases/tag/v6.5.9WEB
Frequently Asked Questions
- What is CVE-2026-103263?
- Tornado: StaticFileHandler follows symlinks outside static root (path traversal). This vulnerability has been assigned a severity rating of HIGH (CVSS score: 5.6/10).
- How do I check if my project is affected by CVE-2026-103263?
- CVE-2026-103263 affects tornado. It has a 0.5% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-103263 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Exploitation requires specific conditions, or the impact is limited.
This is a below-median EPSS score — only 37.9% of tracked vulnerabilities score at or below it, so most tracked vulnerabilities are considered more likely to be exploited than this one.
Also Known As
Related CVEs
- CVE-2025-67725HIGH
- CVE-2025-67726HIGH
- CVE-2026-31958HIGH
- CVE-2025-47287HIGH
Tornado vulnerable to excessive logging caused by malformed multipart form data
- CVE-2024-52804HIGH
Tornado has an HTTP cookie parsing DoS vulnerability
- CVE-2025-67724MEDIUM
- CVE-2026-35536MEDIUM
- CVE-2023-28370