Vulnerability · Published Apr 3, 2023 · Assigned by GitHub_M

CVE-2023-28837Wagtail vulnerable to denial-of-service via memory exhaustion when uploading large files

Medium 4.9

In plain English

A medium-severity uncontrolled resource consumption in wagtail from wagtail. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.1% (higher than 65% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)4.9Medium
Exploit odds (30 days)1.1%top 35.0% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
PyPIwagtail4.2.2GHSA-33pv-vcgh-jfg9
PyPIwagtail4.1.4GHSA-33pv-vcgh-jfg9
PyPIwagtail4.1.4, 4.2.2PYSEC-2023-56

Affected products (as reported)

VendorProductVersions
wagtail wagtail < 4.1.4>= 4.2, < 4.2.2

Weakness: CWE-400, CWE-770 · Vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H

References