Thumbor has Regex Denial of Service (ReDoS) in `convolution` filter (CVE-2026-53504)
### Summary The regular expression used to parse the `convolution` filter exhibits exponential-time backtracking for certain inputs, enabling a Regular Expression Denial of Service (ReDoS). ### Details The RegExp for `convolution` is defined as `convolution\((?:\s*((?:[-]?[\d]+\.?[\d]*[;])*(?:[-]?[\d]+\.?[\d]*))\s*)(?:,\s*([\d]+)\s*)(?:,\s*([Tt]rue|[Ff]alse|1|0)\s*)?\)`. Within this expression a dangerous subpattern effectively behaves like `(\d+)*,\d+`. ### PoC A filter string containing many repeated values will exhaust `re.match`: - `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)` - http://localhost:8888/unsafe/0x0/smart/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)/x.png The evaluation occurs on https://github.com/thumbor/thumbor/blob/master/thumbor/filters/__init__.py#L189. ### Impact A specially crafted URL will lead to denial of service, as new images won't be processed until `re.match` returns.
AI Analysis
Technical Summary
The vulnerability in Thumbor's `convolution` filter is due to a regular expression that parses filter parameters with a pattern that can trigger exponential-time backtracking. Specifically, the regex includes a subpattern behaving like `(\d+)*,\d+`, which is vulnerable to ReDoS attacks when given input with many repeated numeric values separated by semicolons. An attacker can craft a URL with a convolution filter containing many repeated values, causing the regex engine to consume excessive CPU time and effectively deny service by blocking image processing. This issue affects Thumbor versions before 7.8.0 and is tracked as CVE-2026-53504 with a CVSS 3.1 base score of 7.5 (high severity).
Potential Impact
Exploitation of this vulnerability results in denial of service, where the Thumbor service becomes unresponsive or significantly delayed in processing new images due to the regex engine being overwhelmed by crafted input. There is no impact on confidentiality or integrity, only availability is affected.
Mitigation Recommendations
A patch is available for this vulnerability. Users should upgrade Thumbor to version 7.8.0 or later where the regex issue in the convolution filter has been fixed. No other mitigation is indicated by the vendor advisory.
Thumbor has Regex Denial of Service (ReDoS) in `convolution` filter (CVE-2026-53504)
Description
### Summary The regular expression used to parse the `convolution` filter exhibits exponential-time backtracking for certain inputs, enabling a Regular Expression Denial of Service (ReDoS). ### Details The RegExp for `convolution` is defined as `convolution\((?:\s*((?:[-]?[\d]+\.?[\d]*[;])*(?:[-]?[\d]+\.?[\d]*))\s*)(?:,\s*([\d]+)\s*)(?:,\s*([Tt]rue|[Ff]alse|1|0)\s*)?\)`. Within this expression a dangerous subpattern effectively behaves like `(\d+)*,\d+`. ### PoC A filter string containing many repeated values will exhaust `re.match`: - `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)` - http://localhost:8888/unsafe/0x0/smart/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)/x.png The evaluation occurs on https://github.com/thumbor/thumbor/blob/master/thumbor/filters/__init__.py#L189. ### Impact A specially crafted URL will lead to denial of service, as new images won't be processed until `re.match` returns.
CVSS v3.1
Score 7.5high
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in Thumbor's `convolution` filter is due to a regular expression that parses filter parameters with a pattern that can trigger exponential-time backtracking. Specifically, the regex includes a subpattern behaving like `(\d+)*,\d+`, which is vulnerable to ReDoS attacks when given input with many repeated numeric values separated by semicolons. An attacker can craft a URL with a convolution filter containing many repeated values, causing the regex engine to consume excessive CPU time and effectively deny service by blocking image processing. This issue affects Thumbor versions before 7.8.0 and is tracked as CVE-2026-53504 with a CVSS 3.1 base score of 7.5 (high severity).
Potential Impact
Exploitation of this vulnerability results in denial of service, where the Thumbor service becomes unresponsive or significantly delayed in processing new images due to the regex engine being overwhelmed by crafted input. There is no impact on confidentiality or integrity, only availability is affected.
Mitigation Recommendations
A patch is available for this vulnerability. Users should upgrade Thumbor to version 7.8.0 or later where the regex issue in the convolution filter has been fixed. No other mitigation is indicated by the vendor advisory.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-5vjc-7cxw-4w6j
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-53504"]
- Ecosystems
- ["PyPI"]
- Database Specific Severity
- HIGH
- Cvss Version
- 3.1
Threat ID: 6a6d13b0bf32cb7a34580132
Added to database: 07/31/2026, 21:29:20 UTC
Last enriched: 07/31/2026, 21:32:52 UTC
Last updated: 09/14/2026, 22:01:35 UTC
Views: 78
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.