Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconSend unauthenticated HTTP GET with watermark filter
-
DeliveryTornado HTTP layer decodes %252e to %2e
-
Exploitfile_loader joins encoded path with FILE_LOADER_ROOT_PATH
-
Installabspath/startswith check passes (%2e%2e treated as literal dir)
-
C2unquote() decodes %2e%2e to ..
-
ExecuteOS resolves path outside root
-
ImpactFile contents returned in HTTP response
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK
2 techniques across 2 tactics: Discovery, Collection The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Three conditions must be met, all of which hold in a default Thumbor deployment: (1) LOADER is set to thumbor.loaders.file_loader or thumbor.loaders.file_loader_http_fallback - this is the default loader; (2) ALLOW_UNSAFE_URL=True - this is the default, enabling unsigned /unsafe/ URL paths so an attacker does not need a valid HMAC signature; (3) the watermark or frame filter must be usable - both are included in BUILTIN_FILTERS and active by default. Exploitation is blocked if ALLOW_UNSAFE_URL=False and no valid HMAC signature can be obtained, or if LOADER is set to a non-file-based loader (e.g., HTTP loader only). The target file must be readable by the OS user running the Thumbor process. The returned data is only observable when the file is a valid image format or parseable enough not to raise an unhandled exception - for binary files like private keys or config files, the response may still expose content as a watermark overlay on a valid image. |
| Impact | Real-world risk is high. The CVSS 4.0 score of 8.7 (AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N) accurately reflects the attack complexity: no authentication is required because ALLOW_UNSAFE_URL=True is the default configuration, and the encoded traversal path can be included in a single unauthenticated HTTP GET request. The watermark and frame filters are included in BUILTIN_FILTERS and enabled by default, meaning the attack surface exists in standard deployments without any non-default configuration. A working PoC is publicly documented in the GHSA advisory, which lowers the bar for exploitation significantly. The impact is limited to confidentiality (C:H, I:N, A:N) - an attacker can read arbitrary files readable by the thumbor process (e.g., /etc/passwd, private keys, application secrets, database credentials) but cannot write files or crash the service directly. There is no CISA KEV listing, so widespread active exploitation is not confirmed, but given the trivial PoC and default-vulnerable configuration, opportunistic scanning is plausible. The EPSS score was not provided; however, the combination of network-reachable, unauthenticated, low-complexity, and PoC-available warrants urgent patching priority for any internet-exposed Thumbor instance. |
| Exploit ScenarioDerived | An attacker sends a single unauthenticated HTTP GET request to a publicly exposed Thumbor instance with a watermark filter path using double-encoded traversal sequences, for example: GET /unsafe/filters:watermark(%252e%252e/%252e%252e/%252e%252e/etc/passwd,0,0,100)/valid-image.jpg. Tornado decodes %252e to %2e; the file_loader security check sees %2e%2e as a literal directory name, passes the root-boundary check, then unquote() converts it to .., and the OS resolves the path to /etc/passwd, whose contents are returned embedded in the response image. A public PoC demonstrating this exact flow is included in GHSA-cj54-hpcc-gj6h. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jul 31, 2026
Arbitrary file read in Thumbor prior to 7.8.0 allows unauthenticated remote attackers to read any file accessible to the thumbor process by supplying percent-encoded path traversal sequences via the watermark or frame filter parameters. The root cause is a decode-after-check flaw in file_loader: the security boundary check runs on the raw encoded path (%2e%2e is treated as a literal directory name and passes the abspath/startswith guard), then unquote() is called afterward, converting %2e%2e into real .. segments that the OS then resolves outside FILE_LOADER_ROOT_PATH. A public proof-of-concept exploit is included in the GitHub Security Advisory (GHSA-cj54-hpcc-gj6h); no active exploitation has been confirmed by CISA KEV at time of analysis.
RemediationAI
Upgrade Thumbor to version 7.8.0 or later, which is available at https://github.com/thumbor/thumbor/releases/tag/7.8.0 and via pip (pip install --upgrade thumbor). The fix is confirmed by commit 3b986d13677b30fe6651c8c72ebb25957ac0a40d. If immediate upgrade is not possible, the most effective compensating control is to set ALLOW_UNSAFE_URL=False in the Thumbor configuration and require HMAC-signed URLs - this requires all URL parameters, including filter paths, to be cryptographically signed, preventing an unauthenticated attacker from supplying arbitrary watermark/frame paths (trade-off: all image URLs must be pre-signed by the application backend). A secondary control is to place Thumbor behind a reverse proxy that strips or rejects requests containing %25 (double-encoded percent signs) in filter parameter values, targeting the %252e bypass vector specifically - note this may break legitimate double-encoded filenames. Running Thumbor as a low-privilege OS user with minimal filesystem access (e.g., restricted to the media root via filesystem permissions or a chroot/container) limits the blast radius of exploitation without blocking the attack itself.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in pypi
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Thumbor (pip package thumbor) is a Python-based open-source image processing and thumbnailing service. The vulnerable component is thumbor/loaders/file_loader.py, which handles loading source images from the local filesystem. The CWE-22 (Path Traversal) root cause is a classic TOCTOU-style validation ordering error: the security check (abspath()+startswith()) operated on the raw, still-encoded path string. Because Python's os.path.abspath() does not decode percent-encoded characters, %2e%2e is treated as a literal two-character directory name, so the root-boundary check passes. The subsequent urllib.parse.unquote() call - intended for backwards compatibility with filenames containing literal percent-encoded characters - then converts %2e%2e into .. before the path is used for file I/O. The watermark and frame filters are particularly exploitable because, unlike the main image URL flow (which applies quote() in imaging.py), they pass their URL parameters directly to file_loader without re-encoding. Double-encoding (%252e → Tornado HTTP layer decodes to %2e → file_loader unquote decodes to .) enables bypass through the Tornado web server's own decoding stage as well. The fix (commit 3b986d1) moves unquote() to execute before the security check and replaces startswith() with os.path.commonpath() to prevent sibling-directory bypass attacks.
Know when the next one hits your stack
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
Network-reachable via single HTTP request, no auth (default ALLOW_UNSAFE_URL=True), no interaction needed, confidentiality-only impact with no scope change.
Primary rating from Vendor (github).
CVSS VectorVendor: github
Lifecycle Timeline
2DescriptionCVE.org
Thumbor is an open-source photo thumbnail service by globo.com. Prior to 7.8.0, file_loader decodes percent-encoded path segments after its root-boundary validation, allowing traversal outside FILE_LOADER_ROOT_PATH through watermark or frame filter input. This issue is fixed in 7.8.0.
Blast Radius
ecosystem impact- 24 pypi packages depend on thumbor (24 direct, 0 indirect)
Ecosystem-wide dependent count for version 7.8.0.
Executive ViewAI
Thumbor image processing service versions prior to 7.8.0 contain an unauthenticated arbitrary file read vulnerability (CVE-2026-53502, CVSS 8.7) exploitable via path traversal in filter parameters, with public exploit code available. Any organization running Thumbor risks unauthorized exposure of sensitive configuration files, credentials, and proprietary application data. Immediate mitigation and upgrade planning are required to prevent information disclosure.
No vendor-released patch identified at time of analysis. Interim mitigations: (1) restrict Thumbor access to internal networks, blocking all internet-facing exposure; (2) deploy WAF rules filtering requests with percent-encoded path traversal sequences in query parameters; (3) run Thumbor with restricted filesystem permissions and container isolation to minimize accessible files; (4) implement strict input validation with length limits on watermark and frame filter parameters; (5) disable image filter functionality if not essential for business operations.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.
EUVD-2026-51612
GHSA-cj54-hpcc-gj6h
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB