Advisory

PYSEC-2023-100

Also known as: BIT-django-2023-36053, CVE-2023-36053, GHSA-jh3w-4vvf-mjgr

Summary

The record has no summary.

Details

In Django 3.2 before 3.2.20, 4 before 4.1.10, and 4.2 before 4.2.3, EmailValidator and URLValidator are subject to a potential ReDoS (regular expression denial of service) attack via a very large number of domain name labels of emails and URLs.

Severity

Not rated by the source.

Dates

Published
2023-07-03 13:15 UTC
Modified
2026-06-10 17:01 UTC

Affected packages and fixes

django

PyPI · All systems

Affected

  • introduced 4.2, fixed 4.2.3, introduced 4.0, fixed 4.1.10, introduced 3.2, fixed 3.2.20 (ecosystem)

Fixed versions

4.2.3, 4.1.10, 3.2.20

Fix

  • Fixed version 4.2.3
    pip install --upgrade django==4.2.3
  • Fixed version 4.1.10
    pip install --upgrade django==4.1.10
  • Fixed version 3.2.20
    pip install --upgrade django==3.2.20

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