{"id":"CVE-2026-53504","aliases":["CVE-2026-53504","GHSA-5vjc-7cxw-4w6j","PYSEC-2026-3616"],"related":[],"kind":"vulnerability","state":"published","title":"Thumbor has Regex Denial of Service (ReDoS) in `convolution` filter","summary":"Thumbor is an open-source photo thumbnail service by globo.com. Prior to 7.8.0, the convolution filter regular expression performs exponential backtracking on crafted repeated numeric input, allowing a URL request to exhaust processing time. This issue is fixed in 7.8.0.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Thumbor is an open-source photo thumbnail service by globo.com. Prior to 7.8.0, the convolution filter regular expression performs exponential backtracking on crafted repeated numeric input, allowing a URL request to exhaust processing time. This issue is fixed in 7.8.0.","source":"cvelist"},{"lang":"en","text":"### Summary\nThe regular expression used to parse the `convolution` filter exhibits exponential-time backtracking for certain inputs, enabling a Regular Expression Denial of Service (ReDoS).\n\n### Details\nThe 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+`.\n\n### PoC\nA filter string containing many repeated values will exhaust `re.match`:\n- `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)`\n- 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\n\nThe evaluation occurs on https://github.com/thumbor/thumbor/blob/master/thumbor/filters/__init__.py#L189.\n\n### Impact\nA specially crafted URL will lead to denial of service, as new images won't be processed until `re.match` returns.","format":"markdown","source":"ghsa"}],"published":"2026-07-31T18:57:19.257Z","modified":"2026-09-08T20:51:43.490Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"}],"cwes":["CWE-400"],"affected":[{"ranges":[{"version":"< 7.8.0","status":"affected"}],"vendor":"thumbor","product":"thumbor","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"7.8.0"}],"ecosystem":"PyPI","package":"thumbor","purl":"pkg:pypi/thumbor","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"7.8.0"}],"ecosystem":"PyPI","package":"thumbor","purl":"pkg:pypi/thumbor","source":"pysec"}],"references":[{"url":"https://github.com/thumbor/thumbor/security/advisories/GHSA-5vjc-7cxw-4w6j","tags":["exploit","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/thumbor/thumbor/commit/3f38fe1610d20168e91f76d432212de30727eb2e","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/thumbor/thumbor/releases/tag/7.8.0","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/thumbor/thumbor","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://pypi.org/project/thumbor","tags":["package"],"sources":["pysec"]},{"url":"https://github.com/advisories/GHSA-5vjc-7cxw-4w6j","tags":["advisory"],"sources":["pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-53504","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"partial","date":"2026-07-31T23:31:09.431Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-53504","url":"https://www.cve.org/CVERecord?id=CVE-2026-53504","licence":"CVE Terms of Use","modified":"2026-07-31T23:31:37.588Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-5vjc-7cxw-4w6j","url":"https://github.com/advisories/GHSA-5vjc-7cxw-4w6j","licence":"CC-BY-4.0","modified":"2026-08-04T14:40:45.216Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-53504","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-53504","licence":"Public domain","modified":"2026-09-08T20:51:43.490Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-3616","url":"https://osv.dev/vulnerability/PYSEC-2026-3616","licence":"CC-BY-4.0","modified":"2026-08-04T14:30:17.877Z"}],"updatedAt":"2026-11-25T22:59:30.734Z","epss":{"score":0.00406,"percentile":0.36979,"date":"2026-12-01T12:00:22.000Z"}}