Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. wagtail
  4. ›
  5. CVE-2023-28837

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

April 3, 2023 (updated November 19, 2024)

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.

References

  • docs.wagtail.org/en/stable/reference/settings.html
  • github.com/advisories/GHSA-33pv-vcgh-jfg9
  • github.com/pypa/advisory-database/tree/main/vulns/wagtail/PYSEC-2023-56.yaml
  • github.com/wagtail/wagtail
  • github.com/wagtail/wagtail/commit/3c0c64642b9e5b8d28b111263c7f4bddad6c3880
  • github.com/wagtail/wagtail/commit/c9d2fcd650a88d76ae122646142245e5927a9165
  • github.com/wagtail/wagtail/commit/cfa11bbe00dbe7ce8cd4c0bbfe2a898a690df2bf
  • github.com/wagtail/wagtail/commit/d4022310cbe497993459c3136311467c7ac6329a
  • github.com/wagtail/wagtail/releases/tag/v4.1.4
  • github.com/wagtail/wagtail/releases/tag/v4.2.2
  • github.com/wagtail/wagtail/security/advisories/GHSA-33pv-vcgh-jfg9
  • nvd.nist.gov/vuln/detail/CVE-2023-28837

Code Behaviors & Features

Detect and mitigate CVE-2023-28837 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 4.1.4, all versions starting from 4.2 before 4.2.2

Fixed versions

  • 4.2.2
  • 4.1.4

Solution

Upgrade to versions 4.1.4, 4.2.2 or above.

Impact 4.9 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-400: Uncontrolled Resource Consumption
  • CWE-770: Allocation of Resources Without Limits or Throttling

Source file

pypi/wagtail/CVE-2023-28837.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:43 +0000.