---
id: CVE-2024-39329
title: An issue was discovered in Django 5.0 before 5.0.7 and 4.2 before 4.2.14
summary: >-
  An issue was discovered in Django 5.0 before 5.0.7 and 4.2 before 4.2.14. The
  django.contrib.auth.backends.ModelBackend.authenticate() method allows remote
  attackers to enumerate users via a timing attack involving login requests for
  use…
severity: medium
cvss: 5.3
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N'
cwe:
  - CWE-208
vendor: djangoproject
product: django
affected:
  - 'django >= 4.2, < 4.2.14'
  - 'django >= 5.0, < 5.0.7'
patched:
  - django 5.0.7
published: '2024-07-10'
updated: '2026-06-17'
sourceUpdated: '2026-06-17T07:41:43.653'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2024-39329'
references:
  - url: 'https://docs.djangoproject.com/en/dev/releases/security/'
    label: cve@mitre.org
  - url: 'https://groups.google.com/forum/#%21forum/django-announce'
    label: cve@mitre.org
  - url: 'https://www.djangoproject.com/weblog/2024/jul/09/security-releases/'
    label: cve@mitre.org
  - url: 'https://docs.djangoproject.com/en/dev/releases/security/'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://groups.google.com/forum/#%21forum/django-announce'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://security.netapp.com/advisory/ntap-20240808-0005/'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://www.djangoproject.com/weblog/2024/jul/09/security-releases/'
    label: af854a3a-2127-422b-91ae-364da2661108
tags:
  - nvd
  - cve.org
ssvc:
  exploitation: none
  automatable: 'yes'
  technicalImpact: partial
  timestamp: '2024-07-10T16:17:00.476005Z'
ingestedAt: '2026-09-14T04:38:14.565Z'
epss: 0.00889
epssPercentile: 0.57321
---

## Overview

An issue was discovered in Django 5.0 before 5.0.7 and 4.2 before 4.2.14. The django.contrib.auth.backends.ModelBackend.authenticate() method allows remote attackers to enumerate users via a timing attack involving login requests for users with an unusable password.

## Affected

- `django >= 4.2, < 4.2.14`
- `django >= 5.0, < 5.0.7`

## Remediation

Upgrade past the affected range:

- `django 5.0.7`
