CVE-2024-39329
Django vulnerability analysis and mitigation

Overview

CVE-2024-39329 affects Django versions 5.0 before 5.0.7 and 4.2 before 4.2.14. The vulnerability exists in the django.contrib.auth.backends.ModelBackend.authenticate() method, which allows remote attackers to enumerate users via a timing attack involving login requests for users with an unusable password (Django Security, NVD).

Technical details

The vulnerability is related to timing differences in the authentication process when handling users with unusable passwords in the ModelBackend.authenticate() method. This timing discrepancy can be exploited through a timing attack to determine whether a username exists in the system. The issue has been assigned a CVSS v3.1 Base Score of 5.3 MEDIUM (Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N) and is classified as CWE-208 (Observable Timing Discrepancy) (CISA-ADP).

Impact

The vulnerability allows remote attackers to enumerate valid usernames in the system by measuring timing differences in authentication responses for accounts with unusable passwords. This information disclosure could be used as a stepping stone for further attacks by identifying valid user accounts (Django Blog).

Exploitability

The vulnerability can be exploited remotely without requiring authentication or user interaction. An attacker needs to make login requests and measure the response times to determine if a username exists in the system based on timing differences when processing unusable passwords (Django Blog).

Mitigation and workarounds

The issue has been fixed in Django versions 5.0.7 and 4.2.14. Users are strongly encouraged to upgrade to these patched versions as soon as possible. The fixes have been applied to Django's main, 5.1, 5.0, and 4.2 branches (Django Blog).

Additional resources

Linux Distribution fix status

Fix availability across major Linux distributions and their releases.

Debian

Fixed

bookworm

python-django: 3:3.2.25-0+deb12u1

Fixed

bullseye

python-django: 2:2.2.28-1~deb11u11

Fixed

sid

python-django: 3:4.2.14-1

Fixed

trixie

python-django: 3:4.2.14-1

Fixed

SourceThis report was generated using AI

Related Django vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-15830MEDIUM6.9
  • Django logoDjango
  • django
NoYesAug 04, 2026
CVE-2026-53877MEDIUM6.3
  • Django logoDjango
  • python313-Django
NoYesJul 07, 2026
CVE-2026-53878MEDIUM5.3
  • Django logoDjango
  • python3-django-bash-completion
NoYesJul 07, 2026
CVE-2026-48588LOW2.3
  • Django logoDjango
  • openstack-horizon-2026.1
NoYesJul 07, 2026
CVE-2026-8404LOW2.3
  • Django logoDjango
  • python3-django5-doc
NoYesJun 03, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management