Advisory

GHSA-q2jf-h9jm-m7p4

Also known as: BIT-django-2023-23969, CVE-2023-23969, PYSEC-2023-12

Summary

Django contains Uncontrolled Resource Consumption via cached header

Details

In Django 3.2 before 3.2.17, 4.0 before 4.0.9, and 4.1 before 4.1.6, the parsed values of Accept-Language headers are cached in order to avoid repetitive parsing. This leads to a potential denial-of-service vector via excessive memory usage if the raw value of Accept-Language headers is very large.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2023-02-01 21:30 UTC
Modified
2024-09-20 15:47 UTC

Affected packages and fixes

django

PyPI · All systems

Affected

  • introduced 3.2a1, fixed 3.2.17 (ecosystem)

Fixed versions

3.2.17

Fix

  • Fixed version 3.2.17
    pip install --upgrade django==3.2.17

django

PyPI · All systems

Affected

  • introduced 4.0a1, fixed 4.0.9 (ecosystem)

Fixed versions

4.0.9

Fix

  • Fixed version 4.0.9
    pip install --upgrade django==4.0.9

django

PyPI · All systems

Affected

  • introduced 4.1a1, fixed 4.1.6 (ecosystem)

Fixed versions

4.1.6

Fix

  • Fixed version 4.1.6
    pip install --upgrade django==4.1.6

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: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences