CVE-2010-4534: Django - Improper Restriction of Query String to Perform Object Filtering

django Updated 02 Oct 2025

Summary

10/01/2011
Yes i
High
6.5

CVE-2010-4534: The administrative interface in django.contrib.admin in Django before 1.1.3, 1.2.x before 1.2.4, and 1.3.x before 1.3 beta 1 does not properly restrict use of the query string to perform certain object filtering, which a... 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-4534 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 that provides a high-level development environment for building web applications. It includes various components and modules to simplify common web development tasks. One of these components is the administrative interface (django.contrib.admin), which allows authorized users to manage and interact with the application's data models. However, prior to versions 1.1.3, 1.2.x before 1.2.4, and 1.3.x before 1.3 beta 1, Django's administrative interface had a vulnerability that could be exploited by remote authenticated users.

Vulnerability Detail

The vulnerability in Django's administrative interface arises from improper restriction of the use of query strings for object filtering. This means that remote authenticated users could manipulate the query string parameters to obtain sensitive information from the application. By crafting a series of requests containing regular expressions, an attacker could exploit the 'created_by__password__regex' parameter to retrieve sensitive data. This could potentially lead to unauthorized access, data leakage, or other security breaches.

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

As a workaround, users can manually apply a patch or modify the affected code to address the vulnerability. However, it is strongly recommended to upgrade to the fixed versions mentioned above, as manual modifications may introduce errors or compatibility issues. Here is an example of a patch that addresses the vulnerability:

# Apply this patch to the affected code
from django.contrib.admin.views.main import ChangeList

def get_query_string(self, new_params=None, remove=None):
    if new_params is None:
        new_params = {}
    if remove is None:
        remove = []

    params = self.params.copy()
    for r in remove:
        for k in list(params):
            if k.startswith(r):
                del params[k]
    params.update(new_params)
    return '?' + '&'.join([f'{k}={v}' for k, v in params.items()])

ChangeList.get_query_string = get_query_string

Applying this patch modifies the 'get_query_string' method in the 'ChangeList' class of the 'django.contrib.admin.views.main' module to properly handle query string parameters and prevent the vulnerability.

Conclusion

In conclusion, the vulnerability in Django's administrative interface allows remote authenticated users to obtain sensitive information by manipulating query string parameters. To mitigate this vulnerability, it is crucial to upgrade to the fixed versions (1.1.3 or later, 1.2.4 or later, or 1.3 beta 1 or later) or apply the provided patch. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for django →

Share this vulnerability

FAQ

The vulnerability allows remote authenticated users to obtain sensitive information from the application. This could lead to unauthorized access, data leakage, or other security breaches.

Users of 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. If you are using an affected version and have the administrative interface enabled, you may be vulnerable.

You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability. Vulert monitors and alerts in real-time for open-source vulnerabilities, using just the Pipfile.lock file.

While specific exploits for this vulnerability are not mentioned, it is important to address the vulnerability promptly by upgrading to the fixed versions or applying the provided patch. This helps mitigate the risk of potential exploitation.

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