Advisory

PYSEC-2023-56

Also known as: CVE-2023-28837, GHSA-33pv-vcgh-jfg9

Summary

The record has no summary.

Details

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.

Severity

Not rated by the source.

Dates

Published
2023-04-03 17:15 UTC
Modified
2023-11-08 04:12 UTC

Affected packages and fixes

wagtail

PyPI · All systems

Affected

  • introduced 4.2, fixed 4.2.2, introduced 0, fixed 4.1.4 (ecosystem)

Fixed versions

4.2.2, 4.1.4

Fix

  • Fixed version 4.2.2
    pip install --upgrade wagtail==4.2.2
  • Fixed version 4.1.4
    pip install --upgrade wagtail==4.1.4

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: PyPA Advisory Database · CC BY 4.0

Sources & licences