Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2025-64459— Potential SQL injection via _connector keyword argument in QuerySet and Q objects

Quick assessment

Affected
djangoproject Django
Exploitation
Public or AI PoC available; prioritize validation
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

Django是Django基金会的一套基于Python语言的开源Web应用框架。该框架包括面向对象的映射器、视图系统、模板系统等。 Django 5.1版本至5.1.14之前版本、4.2版本至4.2.26之前版本和5.2版本至5.2.8之前版本存在安全漏洞,该漏洞源于QuerySet.filter、QuerySet.exclude、QuerySet.get和Q类在使用特制字典作为_connector参数时,可能导致SQL注入攻击。

AI Predicted 8.8 Difficulty: Easy EPSS 19.40% · P97

Public Exploits 1

ExploitDB · 1 EDB-52456 [webapps]

Possible ATT&CK Techniques 1 AI

T1190 · Exploit Public-Facing Application
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2025-64459

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
Potential SQL injection via _connector keyword argument in QuerySet and Q objects
Source: CVE Program / CVE List V5
Vulnerability 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.
Source: CVE Program / CVE List V5
CVSS Information
N/A
Source: CVE Program / CVE List V5
Vulnerability Type
SQL命令中使用的特殊元素转义处理不恰当(SQL注入)
Source: CVE Program / CVE List V5
Vulnerability Title
Django 安全漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
Django是Django基金会的一套基于Python语言的开源Web应用框架。该框架包括面向对象的映射器、视图系统、模板系统等。 Django 5.1版本至5.1.14之前版本、4.2版本至4.2.26之前版本和5.2版本至5.2.8之前版本存在安全漏洞,该漏洞源于QuerySet.filter、QuerySet.exclude、QuerySet.get和Q类在使用特制字典作为_connector参数时,可能导致SQL注入攻击。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
djangoproject Django 5.2 ~ 5.2.8 -

II. Public POCs for CVE-2025-64459

# POC Description Source Link Shenlong Link
1 None https://github.com/rockmelodies/django_sqli_target_CVE-2025-64459 POC Details
2 check if vulnerable python-django version to CVE-2025-64459 bug https://github.com/nunpa/CVE-2025-64459 POC Details
3 CVE-2025-64459 https://github.com/B1ack4sh/Blackash-CVE-2025-64459 POC Details
4 A self-contained testbed for Django CVE-2025-64459. Demonstrates QuerySet.filter() parameter injection via dictionary expansion using Docker. https://github.com/omarkurt/django-connector-CVE-2025-64459-testbed POC Details
5 CVE-2025-64459 https://github.com/Ashwesker/Blackash-CVE-2025-64459 POC Details
6 Vulnerability: SQL Injection via QuerySet and Q() keyword argument unpacking. CVE ID: CVE-2025-64459 Severity: Critical (CVSS 9.1) Affected Versions: Django 5.1 < 5.1.14, 4.2 < 4.2.26, and 5.2 < 5.2.8. Researcher: Cyberstan (University of Warwick) https://github.com/stanly363/CVE-2025-64459-Poc POC Details
7 None https://github.com/ZeYrOXxXxXxX/CVE-2025-64459 POC Details
8 CVE-2025-64459-Exploit-Fix https://github.com/ALPYAHYA/CVE-2025-64459-Exploit-Fix POC Details
9 CVE-2025-64459-Exploit-PoC https://github.com/ALPYAHYA/CVE-2025-64459-Exploit-PoC POC Details
10 None https://github.com/Z3YR0xX/CVE-2025-64459 POC Details
11 CVE-2025-64459 https://github.com/Ashwesker/Ashwesker-CVE-2025-64459 POC Details
12 None https://github.com/alxsourin/Helpdesk-Telecom-CVE-2025-64459 POC Details
13 CVE-2025-64459-hunter https://github.com/purehate/CVE-2025-64459-hunter POC Details
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2025-64459

请登录查看更多情报信息。

Vendor Advisories for CVE-2025-64459 (1)

Mailing List Discussions for CVE-2025-64459 (1)

IV. Related Vulnerabilities

V. Comments for CVE-2025-64459

No comments yet


Leave a comment