CVE-2023-28837
Wagtail vulnerable to denial-of-service via memory exhaustion when uploading large files
Description
Wagtail is an open source content management system built on Django. Prior to versions 4.1.4 and 4.2.2, 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 of 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 and Wagtail 4.2.2). 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.
How to fix CVE-2023-28837
To remediate CVE-2023-28837, upgrade the affected package to a fixed version below.
- —upgrade to 4.2.2 or later
- —upgrade to cfa11bbe00dbe7ce8cd4c0bbfe2a898a690df2bf or later
Is CVE-2023-28837 being exploited?
Low — EPSS is 1.3%, meaning exploitation activity has not been observed at scale.
Affected packages (2)
- >= 4.2, < 4.2.2
- from 0, < cfa11bbe00dbe7ce8cd4c0bbfe2a898a690df2bf, < 3c0c64642b9e5b8d28b111263c7f4bddad6c3880, < c9d2fcd650a88d76ae122646142245e5927a9165, < d4022310cbe497993459c3136311467c7ac6329a | >= 4.2, < 4.2.2, from 0, < 4.1.4
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 4.0 | — | CVSS:4.0/AV:N/AC:L/AT:P/PR:H/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N |
| osv | CVSS 3.1 | MEDIUM4.4 | CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:N/I:N/A:H |