Vulnerability Details : CVE-2023-28837
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.
Vulnerability category: Denial of service
Products affected by CVE-2023-28837
- cpe:2.3:a:torchbox:wagtail:*:*:*:*:*:*:*:*
- cpe:2.3:a:torchbox:wagtail:*:*:*:*:*:*:*:*
Exploit prediction scoring system (EPSS) score for CVE-2023-28837
0.21%
Probability of exploitation activity in the next 30 days
EPSS Score History
~ 59 %
Percentile, the proportion of vulnerabilities that are scored at or less
CVSS scores for CVE-2023-28837
Base Score | Base Severity | CVSS Vector | Exploitability Score | Impact Score | Score Source | First Seen |
---|---|---|---|---|---|---|
4.9
|
MEDIUM | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H |
1.2
|
3.6
|
NIST | |
4.9
|
MEDIUM | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H |
1.2
|
3.6
|
GitHub, Inc. |
CWE ids for CVE-2023-28837
-
The product does not properly control the allocation and maintenance of a limited resource, thereby enabling an actor to influence the amount of resources consumed, eventually leading to the exhaustion of available resources.Assigned by: security-advisories@github.com (Primary)
-
The product allocates a reusable resource or group of resources on behalf of an actor without imposing any restrictions on the size or number of resources that can be allocated, in violation of the intended security policy for that actor.Assigned by: security-advisories@github.com (Primary)
References for CVE-2023-28837
-
https://github.com/wagtail/wagtail/commit/cfa11bbe00dbe7ce8cd4c0bbfe2a898a690df2bf
Don't load temporary uploaded files into memory · wagtail/wagtail@cfa11bb · GitHubPatch
-
https://github.com/wagtail/wagtail/releases/tag/v4.2.2
Release 4.2.2 · wagtail/wagtail · GitHubRelease Notes
-
https://github.com/wagtail/wagtail/commit/3c0c64642b9e5b8d28b111263c7f4bddad6c3880
Don't load images / documents into memory when calculating their hash · wagtail/wagtail@3c0c646 · GitHubPatch
-
https://github.com/wagtail/wagtail/security/advisories/GHSA-33pv-vcgh-jfg9
Denial-of-service via memory exhaustion when uploading large files · Advisory · wagtail/wagtail · GitHubMitigation;Vendor Advisory
-
https://github.com/wagtail/wagtail/releases/tag/v4.1.4
Release 4.1.4 · wagtail/wagtail · GitHubRelease Notes
-
https://github.com/wagtail/wagtail/commit/d4022310cbe497993459c3136311467c7ac6329a
Release note for CVE-2023-28837 in 4.1.4 · wagtail/wagtail@d402231 · GitHubRelease Notes
-
https://github.com/wagtail/wagtail/commit/c9d2fcd650a88d76ae122646142245e5927a9165
Release note for CVE-2023-28837 in 4.2.2 · wagtail/wagtail@c9d2fcd · GitHubRelease Notes
-
https://docs.wagtail.org/en/stable/reference/settings.html#wagtailimages-max-upload-size
Settings — Wagtail Documentation 4.2.2 documentationProduct
Jump to