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

- Severity: Medium 4.9 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.07%, higher than 65% of CVEs (2026-12-01)
- Published: 2023-04-03T16:41:19.467Z
- Modified: 2026-09-10T03:49:53.230Z
- Also known as: GHSA-33pv-vcgh-jfg9, PYSEC-2023-56
- Weaknesses: CWE-400, CWE-770
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- wagtail wagtail: < 4.1.4; >= 4.2, < 4.2.2
- wagtail (PyPI): from 4.2 before 4.2.2; before 4.1.4; before cfa11bbe00dbe7ce8cd4c0bbfe2a898a690df2bf; before 3c0c64642b9e5b8d28b111263c7f4bddad6c3880; before c9d2fcd650a88d76ae122646142245e5927a9165; before d4022310cbe497993459c3136311467c7ac6329a
- torchbox wagtail: before 4.1.4; from 4.2 before 4.2.2

## Every score

- GitHub_M: CVSS:3.1 4.9 Medium `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 4.4 Medium `CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:4.0 Medium `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`
- NVD: CVSS:3.1 4.9 Medium `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/wagtail/wagtail/security/advisories/GHSA-33pv-vcgh-jfg9> (advisory, mitigation, vendor-advisory, web)
- <https://github.com/wagtail/wagtail/commit/3c0c64642b9e5b8d28b111263c7f4bddad6c3880> (fix, patch, web)
- <https://github.com/wagtail/wagtail/commit/c9d2fcd650a88d76ae122646142245e5927a9165> (fix, release-notes, web)
- <https://github.com/wagtail/wagtail/commit/cfa11bbe00dbe7ce8cd4c0bbfe2a898a690df2bf> (fix, patch, web)
- <https://github.com/wagtail/wagtail/commit/d4022310cbe497993459c3136311467c7ac6329a> (fix, release-notes, web)
- <https://docs.wagtail.org/en/stable/reference/settings.html#wagtailimages-max-upload-size> (product, web)
- <https://github.com/wagtail/wagtail/releases/tag/v4.1.4> (release-notes, web)
- <https://github.com/wagtail/wagtail/releases/tag/v4.2.2> (release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2023-28837> (advisory)
- <https://github.com/pypa/advisory-database/tree/main/vulns/wagtail/PYSEC-2023-56.yaml> (web)
- <https://github.com/wagtail/wagtail> (package)

## Sources

- CVE List: [CVE-2023-28837](https://www.cve.org/CVERecord?id=CVE-2023-28837), CVE Terms of Use, modified 2025-02-11
- GitHub Advisory Database: [GHSA-33pv-vcgh-jfg9](https://github.com/advisories/GHSA-33pv-vcgh-jfg9), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2023-28837](https://nvd.nist.gov/vuln/detail/CVE-2023-28837), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2023-56](https://osv.dev/vulnerability/PYSEC-2023-56), CC-BY-4.0, modified 2023-11-08

---

Page: https://cve.day/CVE-2023-28837 · Whole record: https://cve.day/CVE-2023-28837.json · Rebuilt by cve.day 2026-11-25T22:58:23.008Z
