CVE-2025-64459

CRITICAL LAB

Django 4.2-4.2.25 5.1-5.1.13 5.2a1-5.2.7 - SQL Injection via QuerySet Dictionary Expansion

Title source: llm
STIX 2.1

Exploitation Summary

EIP tracks 11 public exploits for CVE-2025-64459. PoCs published by Wafcontrol Security Team, XiaomingX, 0xCyberstan.

AI-analyzed exploit summary This is a functional proof-of-concept exploit for CVE-2025-64459, targeting a SQL injection vulnerability in Django's QuerySet methods. It demonstrates arbitrary SQL injection via crafted _connector parameters and includes multiple testing modes (baseline, exploit, multi, check).

Description

An issue was discovered in 5.1 before 5.1.14, 4.2 before 4.2.26, and 5.2 before 5.2.8. The methods `QuerySet.filter()`, `QuerySet.exclude()`, and `QuerySet.get()`, and the class `Q()`, are subject to SQL injection when using a suitably crafted dictionary, with dictionary expansion, as the `_connector` argument. Earlier, unsupported Django series (such as 5.0.x, 4.1.x, and 3.2.x) were not evaluated and may also be affected. Django would like to thank cyberstan for reporting this issue.

Exploits (11)

exploitdb WORKING POC
by Wafcontrol Security Team · pythonwebappsmultiple
https://www.exploit-db.com/exploits/52456

This is a functional proof-of-concept exploit for CVE-2025-64459, targeting a SQL injection vulnerability in Django's QuerySet methods. It demonstrates arbitrary SQL injection via crafted _connector parameters and includes multiple testing modes (baseline, exploit, multi, check).

Classification
Working Poc 95%
Attack Type
Sqli
Complexity
Moderate
Reliability
Reliable
Target: Django 5.2 before 5.2.8, 5.1 before 5.1.14, 4.2 before 4.2.26
No auth needed
Prerequisites: Vulnerable Django version · Exposed endpoint accepting user input for _connector parameter · Debug mode or visible SQL output for demonstration
devstral-2 · analyzed Feb 16, 2026 Full analysis →
github SCANNER 10 stars
by XiaomingX · pythonpoc
https://github.com/XiaomingX/data-cve-poc-py-v1/tree/main/2025/CVE-2025-64459

The repository contains a Python-based network scanner for detecting CVE-2025-64459, a Django SQL injection vulnerability. It checks for open ports, identifies Django applications, and tests for SQL injection by comparing user lists before and after payload injection.

Classification
Scanner 95%
Attack Type
Sqli
Complexity
Moderate
Reliability
Reliable
Target: Django 5.2 < 5.2.8, 5.1 < 5.1.14, 4.2 < 4.2.26
No auth needed
Prerequisites: Network access to target · Open HTTP/HTTPS ports on target
devstral-2 · analyzed Feb 27, 2026 Full analysis →
nomisec WORKING POC 2 stars
by 0xCyberstan · poc
https://github.com/0xCyberstan/CVE-2025-64459-Poc

This repository contains a functional Django-based PoC demonstrating CVE-2025-64459, a SQL injection vulnerability in Django ORM via Q object unpacking. The exploit shows how an attacker can bypass filters by injecting a malicious '_connector' parameter.

Classification
Working Poc 100%
Attack Type
Sqli
Complexity
Trivial
Reliability
Reliable
Target: Django ORM (versions < 5.1.14, < 5.2.8, < 4.2.26)
No auth needed
Prerequisites: Docker · Docker Compose
devstral-2 · analyzed Mar 17, 2026 Full analysis →
nomisec WORKING POC 2 stars
by stanly363 · poc
https://github.com/stanly363/CVE-2025-64459-Poc

This repository contains a functional PoC for CVE-2025-64459, demonstrating SQL injection in Django ORM via Q object unpacking. The exploit bypasses filters by injecting a malicious '_connector' parameter, exposing admin users.

Classification
Working Poc 95%
Attack Type
Sqli
Complexity
Moderate
Reliability
Reliable
Target: Django ORM (versions < 5.1.14, < 5.2.8, < 4.2.26)
No auth needed
Prerequisites: Django application using Q object with user-controlled input
devstral-2 · analyzed Feb 16, 2026 Full analysis →
nomisec WRITEUP 2 stars
by omarkurt · poc
https://github.com/omarkurt/django-connector-CVE-2025-64459-testbed

This repository provides a testbed and documentation for CVE-2025-64459, a parameter injection vulnerability in Django's QuerySet.filter() when using dictionary expansion. It includes exploitation examples and references to a vulnerable target for testing.

Classification
Writeup 90%
Attack Type
Sqli
Complexity
Trivial
Reliability
Reliable
Target: Django < 5.1.14
No auth needed
Prerequisites: Django application with vulnerable QuerySet.filter() usage · User input passed via dictionary expansion (e.g., **request.GET)
devstral-2 · analyzed Feb 16, 2026 Full analysis →
nomisec SCANNER 1 stars
by nunpa · poc
https://github.com/nunpa/CVE-2025-64459

This repository contains two bash scripts designed to scan Docker containers for Django installations vulnerable to CVE-2025-64459. The first script checks Django versions against known vulnerable ranges, while the second verifies the presence of a specific patch in the query_utils.py file.

Classification
Scanner 90%
Attack Type
Info Leak
Complexity
Trivial
Reliability
Reliable
Target: Django (versions < 4.2.26, < 5.1.14, < 5.2.8)
No auth needed
Prerequisites: Docker installed · Access to Docker containers
devstral-2 · analyzed Feb 16, 2026 Full analysis →
nomisec WORKING POC
by joshualent · poc
https://github.com/joshualent/django-cve-2025-64459

This repository contains a functional Django application demonstrating CVE-2025-64459, a SQL injection vulnerability in Django's QuerySet and Q objects. The exploit is triggered via query parameters (`_connector=OR 1=1 OR`), allowing arbitrary SQL fragments to be injected, leading to data exposure.

Classification
Working Poc 95%
Attack Type
Sqli
Complexity
Trivial
Reliability
Reliable
Target: Django 5.2.7 (and other affected versions)
No auth needed
Prerequisites: Access to a vulnerable Django application endpoint
devstral-2 · analyzed Mar 10, 2026 Full analysis →
nomisec SCANNER
by purehate · poc
https://github.com/purehate/CVE-2025-64459-hunter

This repository contains a Python-based network scanner designed to detect CVE-2025-64459, a Django SQL injection vulnerability. It checks for vulnerable Django instances by sending crafted payloads and analyzing responses.

Classification
Scanner 95%
Attack Type
Sqli
Complexity
Moderate
Reliability
Reliable
Target: Django 5.2 < 5.2.8, 5.1 < 5.1.14, 4.2 < 4.2.26
No auth needed
Prerequisites: Network access to target Django applications · Open ports (default: 80, 443, 8000, 8080)
devstral-2 · analyzed Feb 16, 2026 Full analysis →
nomisec STUB
by alxsourin · poc
https://github.com/alxsourin/Helpdesk-Telecom-CVE-2025-64459

The repository contains a Django-based helpdesk application with models and migrations but lacks exploit code or detailed vulnerability information. The README references a PDF for exploitation details, which is not included.

Classification
Stub 80%
Attack Type
Other
Complexity
Theoretical
Reliability
Theoretical
Target: Helpdesk-Telecom (version unspecified)
No auth needed
Prerequisites: Access to the referenced PDF for exploitation details
devstral-2 · analyzed Feb 16, 2026 Full analysis →
nomisec WORKING POC
by Z3YR0xX · poc
https://github.com/Z3YR0xX/CVE-2025-64459

This repository contains a working PoC for CVE-2025-64459, demonstrating Django ORM filter injection vulnerabilities in both authentication and product listing endpoints. The exploit leverages Django's ORM query parameter injection via `_connector` and `_negated` to bypass authentication and access non-public products.

Classification
Working Poc 95%
Attack Type
Auth Bypass
Complexity
Trivial
Reliability
Reliable
Target: Django 5.1.10
No auth needed
Prerequisites: Access to the target web application
devstral-2 · analyzed Feb 16, 2026 Full analysis →

Scores

CVSS v3 9.1
EPSS 0.0028
EPSS Percentile 52.1%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N

CISA SSVC

Vulnrichment
Exploitation none
Automatable yes
Technical Impact total

Lab Environment

COMMUNITY
Community Lab
docker pull ghcr.io/astral-sh/uv:python3.13-bookworm-slim
+7 more repos

Details

CWE
CWE-89
Status published
Products (4)
djangoproject/django 4.2 - 4.2.26
pypi/django 0 - 4.2.26PyPI
pypi/django 5.0a1 - 5.1.14PyPI
pypi/django 5.2a1 - 5.2.8PyPI
Published Nov 05, 2025
Tracked Since Feb 18, 2026