Jul 31, 2026·6 min read·49 visits
Unauthenticated remote attackers can trigger exponential CPU backtracking in Thumbor (< 7.8.0) via a crafted convolution filter parameter, causing a denial of service.
A critical Regular Expression Denial of Service (ReDoS) vulnerability exists in Thumbor prior to version 7.8.0. The vulnerability resides within the dynamic filter-parsing engine, specifically inside the 'convolution' filter parameter processing logic. Due to overlapping and nested quantifiers in the regular expression used to parse matrix values, a remote, unauthenticated attacker can supply a specially crafted, malformed filter payload inside a request URL. This causes Python's standard NFA-based regular expression engine to undergo exponential backtracking, exhausting CPU resources and leading to a complete Denial of Service.
Thumbor is an open-source smart imaging service that processes, resizes, and filters images on demand. It features a wide array of filters, such as convolution, which allows users to define custom spatial filters using matrix-based operations. The application is designed to be highly accessible and performance-focused, often integrated into high-traffic web environments to serve dynamic assets.
To handle requests efficiently, Thumbor relies on the Tornado web framework. Tornado uses an asynchronous, single-threaded event loop architecture to handle multiple concurrent network connections. While this model is highly efficient for I/O-bound tasks, it is susceptible to starvation when processing CPU-bound tasks.
The filter-parsing mechanism represents a substantial attack surface. When parsing filter options directly from the URL path, Thumbor uses regular expressions to validate and extract parameter sets. In the case of the convolution filter, a flaw in the regular expression design allows unauthenticated users to trigger exponential execution times, completely blocking the single-threaded worker process.
The root cause of this vulnerability lies in the design of the regular expression utilized by the convolution filter parser. Specifically, the parser attempts to validate a list of semicolon-separated matrix coefficients. The vulnerable pattern is defined as (?:[-]?[\d]+\.?[\d]*[;])*(?:[-]?[\d]+\.?[\d]*). This structure contains nested and overlapping quantifiers.
Python's native re module uses a Non-deterministic Finite Automaton (NFA) engine. When matching a target string, an NFA engine processes inputs by exploring potential paths. If a path fails to match, the engine backtracks to try alternative configurations. Overlapping quantifiers within the subpatterns allow a single string to be interpreted in multiple ways, causing the engine to evaluate a massive state space before returning a mismatch.
The subpattern [-]?[\d]+\.?[\d]* contains ambiguity because a string of digits (e.g., 11) can be matched by [\d]+ entirely, or divided between [\d]+ and [\d]*. Furthermore, nesting this pattern inside a repeating group followed by a trailing duplicate pattern creates an exponential search complexity. On malformed input that fails at the final step, the engine attempts $2^N$ backtracking combinations for $N$ parameters, driving CPU utilization to 100%.
To analyze the flaw, we can inspect the core filter file thumbor/filters/convolution.py. Before the security patch, the filter registration decorator defined the following evaluation regex:
# Vulnerable regex definition in thumbor/filters/convolution.py
@filter_method(
r"(?:[-]?[\d]+\.?[\d]*[;])*(?:[-]?[\d]+\.?[\d]*)",
BaseFilter.PositiveNonZeroNumber,
BaseFilter.Boolean,
)In this implementation, the Kleene star on the non-capturing group (?:...)* matches any number of semicolon-terminated matrix items, while the subsequent pattern handles the final matrix element. Because both patterns utilize the ambiguous float-matching regex, the boundary between items becomes indistinct during failures.
The security patch refactored the regular expression to ensure a strict, linear matching behavior. The updated decorator is defined as:
# Patched regex definition in thumbor/filters/convolution.py
@filter_method(
r"-?[\d]+(?:\.[\d]*)?(?:;-?[\d]+(?:\.[\d]*)?)*",
BaseFilter.PositiveNonZeroNumber,
BaseFilter.Boolean,
)The new regex eliminates the overlapping parsing states. By explicitly separating integers and decimal points ((?:\.[\d]*)?) and changing the loop structure from (A;)*A to A(?:;A)*, the parser matches matrix elements deterministically. There is only one valid traversal path per character sequence, reducing execution complexity from $O(2^N)$ to $O(N)$.
Exploitation of CVE-2026-53504 is straightforward and requires only network access to the target instance. The attacker must submit a malformed request pointing to the convolution filter. Since the regular expression requires trailing parameters (like column count and normalization flag) to match successfully, omitting these parameters forces the parser to evaluate the entire sequence and fail.
A typical exploit payload consists of a standard Thumbor image request URL with an elongated list of negative integers:
GET /unsafe/filters:convolution(-11;-11;-11;-11;-11;-11;-11;-11;-11;-11;-11;-11;-11;-11;-11;-11;-11;-11;-11;-11;-11;-11;-11;-11;-11;-11;-11;-11;-11;-11)/path/to/image.jpg HTTP/1.1
Host: target-thumbor-instance.localWhen the Tornado backend receives this request, it attempts to match the filter parameters against the registered regular expressions. The NFA engine begins to parse the 30 semicolon-separated values. Upon reaching the end of the convolution argument block, the engine detects that the required trailing values are missing, causing a mismatch. It then begins to backtrack through every permutation of the digit groupings. This process requires over one billion state evaluations, keeping the Tornado worker thread at 100% CPU capacity for several minutes.
The impact of this vulnerability is a complete Denial of Service (DoS) affecting the image rendering pipeline. Because Thumbor processes are typically bound to a single thread using the Tornado event loop, a single malformed HTTP request can completely block the thread. This halts the processing of all other concurrent requests handled by that specific worker process.
In environments where multiple workers are deployed, an attacker can scale the attack by sending a small burst of requests (one per worker process). This easily exhausts the entire backend pool. Since CPU resources are fully consumed by the backtracking loop, the underlying server instances also experience severe performance degradation, potentially impacting other services hosted on the same infrastructure.
This vulnerability does not allow for remote code execution, privilege escalation, or direct data leakage. However, its high reliability and low complexity make it an effective tool for disruption. It receives a CVSS v3.1 score of 7.5, indicating High severity due to its critical impact on service availability.
The primary remediation step is to upgrade the Thumbor installation to version 7.8.0 or later. This release updates the convolution filter regular expression, removing the nested quantifiers and ensuring linear matching times.
For environments where an immediate upgrade is not feasible, several defensive workarounds can be implemented. If the convolution filter is not required by the application, it can be disabled or removed from the active filter list within the Thumbor configuration file (thumbor.conf).
Alternatively, network-level web application firewalls (WAFs) can be configured to inspect incoming URLs. Rules should block requests containing abnormally long arguments within the filters:convolution block. Setting up strict rate limiting and ensuring that the event loop can timeout slow operations also helps mitigate the severity of resource exhaustion attacks.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H| Product | Affected Versions | Fixed Version |
|---|---|---|
Thumbor globo.com | < 7.8.0 | 7.8.0 |
| Attribute | Detail |
|---|---|
| CWE ID | CWE-400 (Uncontrolled Resource Consumption) |
| Attack Vector | Network (AV:N) |
| Attack Complexity | Low (AC:L) |
| Privileges Required | None (PR:N) |
| User Interaction | None (UI:N) |
| CVSS v3.1 Score | 7.5 (High) |
| Exploit Status | Proof-of-Concept |
| KEV Status | Not Listed |
The product does not properly control the allocation and maintenance of a limited resource, enabling an actor to influence the amount of resources consumed, leading to eventual exhaustion.
CVE-2026-63402 is a prototype-chain traversal and shared built-in object corruption vulnerability in the i18next internationalization framework for JavaScript prior to version 26.3.4. The flaw resides in the deepExtend utility function within src/utils.js, which uses the JavaScript 'in' operator to verify property existence on target objects. When an application passes untrusted resource bundles to i18next.addResourceBundle() with both the deep and overwrite parameters set to true, an attacker can traverse into inherited methods on Object.prototype and overwrite properties on shared built-in function objects, causing process-wide denial of service.
CVE-2026-58262 (tracked internally as KLR-04 and via GitHub Security Advisory GHSA-f9h7-4mmq-vgcq) is a cryptographic verification and consensus quorum bypass vulnerability in Klever-Go (`klever-io/klever-go`), the Go implementation of the Klever blockchain protocol. Prior to version 1.7.20, the block header signature verification logic (`HeaderSigVerifier.verifyConsensusSize`) counts all set bits across the entire `PubKeysBitmap` byte slice toward the required two-thirds validator quorum without masking or validating unused trailing padding bits in the final byte. Because the underlying Boneh-Lynn-Shacham (BLS) multi-signature verification function (`blsMultiSigner.Verify`) iterates strictly over the indices of configured validator public keys, it ignores any bits set at indices beyond the active consensus group size. When the consensus group size is not an exact multiple of 8, a compromised or malicious block producer can set these unused trailing padding bits to artificially inflate the apparent signer count by up to 7 signatures, enabling blocks with fewer genuine validator signatures than required by the protocol to pass consensus validation.
CVE-2026-77423 is a Regular Expression Denial of Service (ReDoS) vulnerability in the built-in less viewer of the JLine Java library (versions 3.0.0 prior to 3.30.15, and 4.0.0 prior to 4.3.1). The org.jline.builtins.Less class passes user-supplied search and display-filter patterns directly to Java's standard backtracking regular expression engine without complexity validation or execution timeouts. An attacker with access to an interactive JLine session can submit patterns containing nested quantifiers, causing catastrophic backtracking that consumes 100% of a CPU core and blocks the session thread indefinitely. In network-facing deployments such as SSH or Telnet administration consoles, repeated exploitation across concurrent sessions can exhaust bounded worker thread pools and result in a complete denial of service.
CVE-2026-63492 is a rejected CVE identifier originally assigned by GitHub for an OS command injection vulnerability in WWBN AVideo (formerly YouPHPTube) up to version 29.0. It was rejected as a duplicate of the canonical identifier CVE-2026-63304 (tracked under GHSA-j44m-77cc-p3cc). The flaw resides in the listFFmpegProcesses() function within plugin/API/standAlone/functions.php, which interpolates unsanitized user parameters directly into a single-quoted shell pipeline executed via PHP's exec() function. Attackers capable of crafting a valid AES-256-CBC encrypted API payload can break out of the single-quoted context and execute arbitrary operating system commands as the web-server user.
CVE-2026-63476 is an uncontrolled resource consumption vulnerability in isomorphic-git prior to version 1.38.6. When parsing Git packfile delta objects during clone or fetch operations, the applyDelta utility reads an untrusted targetSize integer from the delta stream header and passes it directly to Buffer.alloc(). A malicious remote Git server or man-in-the-middle attacker can supply a delta header specifying a targetSize of approximately 2 GB with minimal actual payload data. Because Buffer.alloc() reserves off-heap memory in Node.js, this bypasses standard V8 heap limits and results in immediate out-of-memory termination or sustained memory retention.
CVE-2026-63410 (GHSA-vp2j-gqfm-r3cf) is a compiler-induced timing side-channel vulnerability in the secp256k1-native Ruby C extension. When compiled with GCC 14.x or 15.x at optimization level -O2, the compiler reconstructs boolean predicates from branchless bitwise multiplexer routines and emits secret-dependent conditional jump instructions (je/jne). During elliptic curve scalar multiplication in the Montgomery ladder, these conditional branches create observable execution timing variations correlated with individual bits of secret private keys or signing nonces.