Loading advisory.
Loading advisory.
Wagtail vulnerable to denial-of-service via memory exhaustion when uploading large files
A memory exhaustion bug exists in Wagtail's handling of uploaded images and documents. For both images and documents, files are loaded into memory during upload for additional processing.
Published 2023-04-03 16:41 UTC · Modified 2026-09-10 03:49 UTC
Severity and EPSS are shown separately. Helm does not combine them into one score. How tiers work
| Package | Ecosystem | Affected | Fixed in | Upgrade command |
|---|---|---|---|---|
| wagtail | PyPI | >= 4.2, < 4.2.2 < 4.1.4 git commits in https://github.com/wagtail/wagtail: < cfa11bbe00dbe7ce8cd4c0bbfe2a898a690df2bf git commits in https://github.com/wagtail/wagtail: < 3c0c64642b9e5b8d28b111263c7f4bddad6c3880 git commits in https://github.com/wagtail/wagtail: < c9d2fcd650a88d76ae122646142245e5927a9165 git commits in https://github.com/wagtail/wagtail: < d4022310cbe497993459c3136311467c7ac6329a versions 4.2, 4.2.1, 0.1, 0.2, 0.3, 0.3.1, 0.4, 0.4.1, 0.5, 0.6, 0.7, 0.8, 0.8.1, 0.8.10, 0.8.2, 0.8.3, 0.8.4, 0.8.5, 0.8.6, 0.8.7 and 178 more | 4.2.2, 4.1.4, cfa11bbe00dbe7ce8cd4c0bbfe2a898a690df2bf, 3c0c64642b9e5b8d28b111263c7f4bddad6c3880, c9d2fcd650a88d76ae122646142245e5927a9165, d4022310cbe497993459c3136311467c7ac6329a | pip install --upgrade 'wagtail>=4.2.2'pip install --upgrade 'wagtail>=4.1.4'pip install --upgrade 'wagtail>=cfa11bbe00dbe7ce8cd4c0bbfe2a898a690df2bf'pip install --upgrade 'wagtail>=3c0c64642b9e5b8d28b111263c7f4bddad6c3880'pip install --upgrade 'wagtail>=c9d2fcd650a88d76ae122646142245e5927a9165'pip install --upgrade 'wagtail>=d4022310cbe497993459c3136311467c7ac6329a' |
A memory exhaustion bug exists in Wagtail's handling of uploaded images and documents. For both images and documents, files are loaded into memory during upload for additional processing. A user with access to upload images or documents through the Wagtail admin interface could upload a file so large that it results in a crash or denial of service.
The vulnerability is not exploitable by an ordinary site visitor without access to the Wagtail admin. It can only be exploited by admin users with permission to upload images or documents.
Image uploads are restricted to 10MB by default, however this validation only happens on the frontend and on the backend after the vulnerable code.
Patched versions have been released as Wagtail 4.1.4 (for the LTS 4.1 branch) and Wagtail 4.2.2 (for the current 4.2 branch).
Site owners who are unable to upgrade to the new versions are encouraged to add extra protections outside of Wagtail to limit the size of uploaded files. Exactly how this is done will vary based on your hosting environment, but here are a few references for common setups:
Nginx: client_max_body_size
Apache: LimitRequestBody
Cloudflare: Already imposes a limit of 100MB - 500MB depending on plan
CloudFront: SizeConstraint
Traefik: traefik.http.middlewares.limit.buffering.maxRequestBodyBytes
The changes themselves are deep inside Wagtail, making patching incredibly difficult.
No public exploit code known to Helm's sources (Nuclei templates, Metasploit, Exploit-DB and PoC-in-GitHub). That does not mean none exists.
EPSS went from 0.011 on 2026-11-24 to 0.012 on 2026-11-26, over 2 recorded scores.
| Date | Score | Previous | Model |
|---|---|---|---|
| 2026-11-24 | 0.011 | first score | v2026.06.15 |
| 2026-11-26 | 0.012 | 0.011 | v2026.06.15 |