Skip to main content

Thumbor CVE-2026-53502

| EUVDEUVD-2026-51612 HIGH
Path Traversal (CWE-22)
2026-07-31 security-advisories@github.com GHSA-cj54-hpcc-gj6h
8.7
CVSS 4.0 · Vendor: github
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Send unauthenticated HTTP GET with watermark filter
  2. Delivery
    Tornado HTTP layer decodes %252e to %2e
  3. Exploit
    file_loader joins encoded path with FILE_LOADER_ROOT_PATH
  4. Install
    abspath/startswith check passes (%2e%2e treated as literal dir)
  5. C2
    unquote() decodes %2e%2e to ..
  6. Execute
    OS resolves path outside root
  7. Impact
    File 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

thumbor < 7.8.0

Affected Packages

pypi thumbor fix: 7.8.0

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

Vendor (github) PRIMARY 8.7 HIGH
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
vuln.today AI 7.5 HIGH

Network-reachable via single HTTP request, no auth (default ALLOW_UNSAFE_URL=True), no interaction needed, confidentiality-only impact with no scope change.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (github).

CVSS VectorVendor: github

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
None
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Patch available
Jul 31, 2026 - 20:02 EUVD
CVE Published
Jul 31, 2026 - 19:17 cve.org
HIGH 8.7

DescriptionCVE.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
† from your stack dependencies † transitive graph · vuln.today resolves 4-path depth
  • 24 pypi packages depend on thumbor (24 direct, 0 indirect)

Ecosystem-wide dependent count for version 7.8.0.

Executive ViewAI

Why It Matters

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.

Business Impact: High
Compensating Controls

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

EPSS Score
0.4%
Top 72% exploitable
Prevalence
Medium
popular open-source media/image processing service, widely used in content platforms
Threat Intel
1
1 source
Exploit
POC
Public exploit code exists
Social Media
1
Sightings
Data Quality
6 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA CIRCL GitHub VulDB

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC Yes
EPSS 0.4%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Out-of-Cycle
Exploitation
Poc
System Exposure· derived
Open
Automatable
Yes
Human Impact
High
Technical Impact
Partial

Priority Score

64
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +44
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy