{"id":"CVE-2026-53505","aliases":["CVE-2026-53505","GHSA-phj3-59pf-cp83","PYSEC-2026-3621"],"related":[],"kind":"vulnerability","state":"published","title":"Thumbor proportion filter allows unbounded post-transform resize leading to remote DoS","summary":"Thumbor is an open-source photo thumbnail service by globo.com. Prior to 7.8.0, Thumbor's filters:proportion(<value>) filter does not enforce an upper bound on <value> and runs in the post-transform phase. An attacker can trigger extremely large resizes (CPU/memory exhaustion) and cause denial of service. 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, Thumbor's filters:proportion(<value>) filter does not enforce an upper bound on <value> and runs in the post-transform phase. An attacker can trigger extremely large resizes (CPU/memory exhaustion) and cause denial of service. This issue is fixed in 7.8.0.","source":"cvelist"},{"lang":"en","text":"### Summary\nThumbor's `filters:proportion(<value>)` filter does not enforce an upper bound on `<value>` and runs in the post-transform phase. An attacker can trigger extremely large resizes (CPU/memory exhaustion) and cause denial of service.\n\n### Details\n- Filter implementation: `thumbor/filters/proportion.py`\n  - `value` is parsed as a float (`BaseFilter.DecimalNumber`) with no maximum.\n  - The filter computes `new_width = source_width * value` and `new_height = source_height * value` and then calls `engine.resize(new_width, new_height)`.\n- Execution phase: `proportion` runs in the default POST_TRANSFORM phase (after the main transform pipeline). This means it can effectively bypass request-level size clamping that happens earlier in the request lifecycle (e.g., `MAX_WIDTH`/`MAX_HEIGHT` applied to `req.width/req.height`).\n\nDocumentation states the `percentage` argument should be `0.0 to 1.0` (`docs/proportion.rst`), but the implementation does not enforce this constraint.\n\n### PoC\n#### Preconditions\n- The `proportion` filter is enabled (it is enabled by default via `BUILTIN_FILTERS`).\n- Either:\n  - `/unsafe/` URLs are allowed (`ALLOW_UNSAFE_URL=True`, common default in some deployments), OR\n  - `/unsafe/` is disabled, and the attacker has a valid signed URL (i.e., the attacker is an authorized user/partner, or otherwise can obtain signed URLs issued by a trusted signing service).\n\n#### Example request 1 (signed URL)\nThe following request was used to reproduce the issue and causes severe resource exhaustion:\n\n`http://<host>:<port>/<url-sign>/100x100/filters:proportion(10000)/example.jpg`\n\n#### Example request 2 (/unsafe/)\nIf `/unsafe/` is enabled:\n\n`http://<host>:<port>/unsafe/100x100/filters:proportion(10000)/example.jpg`\n\n### Impact\n- Remote Denial of Service via CPU and/or memory exhaustion (and potentially process crash / OOM kill).\n- Exploitability depends on deployment:\n  - If `/unsafe/` is enabled: unauthenticated remote DoS.\n  - If `/unsafe/` is disabled: the attacker needs a valid signed URL (i.e., the attacker can legitimately request signed URLs, or has access to signed URLs issued for other users/partners). If signed URLs are not exposed to untrusted parties, exploitability is reduced but the risk still applies to any party who can generate/use signed URLs.\n\n### Suggested remediation\n- Enforce a strict bound on the `proportion` parameter (e.g., `0.0 < value <= 1.0` as documented), or define a safe maximum based on intended semantics.","format":"markdown","source":"ghsa"}],"published":"2026-07-31T19:00:22.755Z","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-phj3-59pf-cp83","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/thumbor/thumbor/commit/2c716119de986cfc68c7071af52a98187e006023","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-phj3-59pf-cp83","tags":["advisory"],"sources":["pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-53505","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"partial","date":"2026-08-03T17:20:18.124Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-53505","url":"https://www.cve.org/CVERecord?id=CVE-2026-53505","licence":"CVE Terms of Use","modified":"2026-08-03T17:20:37.186Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-phj3-59pf-cp83","url":"https://github.com/advisories/GHSA-phj3-59pf-cp83","licence":"CC-BY-4.0","modified":"2026-08-04T14:41:08.686Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-53505","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-53505","licence":"Public domain","modified":"2026-09-08T20:51:43.490Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-3621","url":"https://osv.dev/vulnerability/PYSEC-2026-3621","licence":"CC-BY-4.0","modified":"2026-08-04T14:30:19.307Z"}],"updatedAt":"2026-11-25T22:59:30.734Z","epss":{"score":0.00335,"percentile":0.28751,"date":"2026-12-01T12:00:22.000Z"}}