Advisory

PYSEC-2023-13

Also known as: BIT-django-2023-24580, CVE-2023-24580, GHSA-2hrw-hx67-34x6

Summary

The record has no summary.

Details

An issue was discovered in the Multipart Request Parser in Django 3.2 before 3.2.18, 4.0 before 4.0.10, and 4.1 before 4.1.7. Passing certain inputs (e.g., an excessive number of parts) to multipart forms could result in too many open files or memory exhaustion, and provided a potential vector for a denial-of-service attack.

Severity

Not rated by the source.

Dates

Published
2023-02-15 01:15 UTC
Modified
2026-06-10 17:01 UTC

Affected packages and fixes

django

PyPI · All systems

Affected

  • introduced 3.2, fixed 3.2.18, introduced 4.0, fixed 4.0.10, introduced 4.1, fixed 4.1.7 (ecosystem)

Fixed versions

3.2.18, 4.0.10, 4.1.7

Fix

  • Fixed version 3.2.18
    pip install --upgrade django==3.2.18
  • Fixed version 4.0.10
    pip install --upgrade django==4.0.10
  • Fixed version 4.1.7
    pip install --upgrade django==4.1.7

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