Patchfirst
CVE-2023-46695 EPSS 53.4%

An issue was discovered in Django 3.2 before 3.2.23, 4.1 before 4.1.13, and 4.2 before 4.2.7

Fix:upgrade Django to 4.2.28 or later also fixes CVE-2026-1207 Details ↓

Summary

The flaw is in Django versions 3.2 before 3.2.23, 4.1 before 4.1.13, and 4.2 before 4.2.7, where NFKC normalization is slow on Windows and affects django.contrib.auth.forms.UsernameField.

Official description · CVE.org

An issue was discovered in Django 3.2 before 3.2.23, 4.1 before 4.1.13, and 4.2 before 4.2.7. The NFKC normalization is slow on Windows. As a consequence, django.contrib.auth.forms.UsernameField is subject to a potential DoS (denial of service) attack via certain inputs with a very large number of Unicode characters.

Breakdown
19.8 / 100
Exploited
Not confirmed
Reports
0
Tactics
0/15

Disclosed on 2 Nov 2023. No public exploit code or confirmed exploitation is recorded.

7 fixes in Django over 12 months. The latest fix listed for Django is 5.0.7.

Fixes in DjangoPyPI package, by fixed version. Earlier and later fixes in the same package, not necessarily the same bug.

  1. 4.2.3CVE-2023-360533 Jul 2023
  2. 4.2.5CVE-2023-411643 Nov 2023
  3. 4.2.6CVE-2023-436653 Nov 2023
  4. 4.2.7CVE-2023-466952 Nov 2023
  5. 5.0.2CVE-2024-246806 Feb 2024
  6. 5.0.3CVE-2024-2735115 Mar 2024
  7. 5.0.7CVE-2024-3887510 Jul 2024Latest listed

Am I affected? What do I upgrade to?

From GitHub Security Advisories and OSV

1 package in 1 ecosystem. Main package: Django.

Upgrade to 4.2.28 or later

Fixes this CVE and 1 other known vulnerability in this package (CVE-2026-1207).

pippip install "Django>=4.2.28"

First fixed in 4.2.7 for CVE-2023-46695.

Affected versions, by release line

If you runUpgrade to
4.2a1 up to 4.2.74.2.28first fix for this CVE: 4.2.7
4.1a1 up to 4.1.134.1.13
3.2a1 up to 3.2.233.2.23

“Up to” means the second version is the fix and is not affected.

Check your lockfile against all CVEs

References

4 links, grouped by NVD tag
↑ ↓ chooseEnter openEsc close