CVE-2010-4535: Django Password Reset Denial of Service

django Updated 02 Oct 2025

Summary

23/07/2018
Yes i
Moderate
7.5

CVE-2010-4535: Improper date handling in Django. Affects django across 2 version ranges.

< 1.1.3 >= 1.2, < 1.2.4

Fixed in 1.1.3 or 1.2.4, depending on the release line you run. How to fix ↓

Also tracked for

The same CVE-2010-4535 is tracked separately for each ecosystem and vendor. Its fix information is the same; the package and affected versions differ.

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

Django is a popular Python web framework known for its simplicity and versatility. It provides a robust set of tools and features for building web applications. One of its components is django.contrib.auth, which handles user authentication and authorization. This vulnerability affects Django versions before 1.1.3, 1.2.x before 1.2.4, and 1.3.x before 1.3 beta 1. The password reset functionality in django.contrib.auth does not properly validate the length of a string representing a base36 timestamp. This oversight allows remote attackers to exploit the vulnerability by sending a URL with a large base36 integer, leading to a denial of service attack that consumes excessive resources.

Vulnerability Detail

The vulnerability lies in the password reset functionality of Django's django.contrib.auth module. By not validating the length of a base36 timestamp string, an attacker can craft a malicious URL with a large base36 integer. When this URL is processed by the application, it triggers a denial of service attack, causing the application to consume excessive resources. This can lead to degraded performance or even a complete system outage. The impact of this vulnerability depends on the resources available to the target system and the number of malicious requests received.

How To Fix

Latest published version: 6.1.2 as of 22 Oct 2026

pip install --upgrade "django==6.1.2"

Upgrading to it may include breaking changes; the versions below are the minimum fixed release for this vulnerability.

If you can't move to the latest

The minimum fixed version depends on the release line you run.

  • < 1.1.3 1.1.3
    pip install --upgrade "django==1.1.3"
  • >= 1.2, < 1.2.4 1.2.4
    pip install --upgrade "django==1.2.4"

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Workaround

If upgrading Django is not immediately feasible, a temporary workaround can be implemented by manually validating the length of the base36 timestamp string in the password reset functionality. This can be done by adding additional checks in the code to ensure that the length of the string is within acceptable limits. Here is an example of how this can be achieved in Python:

from django.contrib.auth.tokens import default_token_generator

def validate_base36_timestamp(timestamp):
    MAX_TIMESTAMP_LENGTH = 10
    if len(timestamp) > MAX_TIMESTAMP_LENGTH:
        raise ValueError('Invalid timestamp')

# Usage example
token = 'abc123'
validate_base36_timestamp(token)

By implementing this workaround, the application will reject URLs with excessively long base36 timestamps, mitigating the risk of a denial of service attack.

Conclusion

The password reset functionality in Django versions before 1.1.3, 1.2.x before 1.2.4, and 1.3.x before 1.3 beta 1 is vulnerable to a denial of service attack. Upgrading to a patched version of Django is the recommended solution. If immediate upgrading is not possible, implementing a temporary workaround by validating the length of the base36 timestamp string can mitigate the risk. For further assistance and support in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for django →

Share this vulnerability

FAQ

The vulnerability allows remote attackers to launch a denial of service attack on a Django application by sending a specially crafted URL. This can result in resource exhaustion, leading to degraded performance or even a complete system outage.

Django versions before 1.1.3, 1.2.x before 1.2.4, and 1.3.x before 1.3 beta 1 are affected by this vulnerability.

To fix this vulnerability, it is recommended to upgrade to a patched version of Django. Upgrading to version 1.1.3 or later, 1.2.4 or later, or any version after 1.3 beta 1 will address the issue.

If immediate upgrading is not possible, a temporary workaround can be implemented by manually validating the length of the base36 timestamp string in the password reset functionality. This can be done by adding additional checks in the code to ensure that the length of the string is within acceptable limits.

No, this vulnerability does not directly lead to data compromise. However, it can cause a denial of service attack, potentially impacting the availability and performance of the affected Django application.

Related vulnerabilities

Recent vulnerabilities recorded for django.

How To Fix

Latest published version: 6.1.2 as of 22 Oct 2026

pip install --upgrade "django==6.1.2"

Upgrading to it may include breaking changes; the versions below are the minimum fixed release for this vulnerability.

If you can't move to the latest

The minimum fixed version depends on the release line you run.

  • < 1.1.3 1.1.3
    pip install --upgrade "django==1.1.3"
  • >= 1.2, < 1.2.4 1.2.4
    pip install --upgrade "django==1.2.4"

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback