Cyber Posture

CVE-2025-64459

CriticalPublic PoC

Published: 05 November 2025

Published
05 November 2025
Modified
10 November 2025
KEV Added
Patch
CVSS Score 9.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
EPSS Score 0.0026 49.0th percentile
Risk Priority 18 60% EPSS · 20% KEV · 20% CVSS

Description

Adversaries may leverage databases to mine valuable information.

Security Summary

CVE-2025-64459 is a SQL injection vulnerability affecting Django, a Python web framework. It impacts versions 5.1 before 5.1.14, 4.2 before 4.2.26, and 5.2 before 5.2.8, specifically in the ORM methods QuerySet.filter(), QuerySet.exclude(), and QuerySet.get(), as well as the Q() class. The flaw arises when a suitably crafted dictionary, expanded via dictionary expansion, is passed as the _connector argument, enabling SQL injection. Earlier unsupported Django series, such as 5.0.x, 4.1.x, and 3.2.x, were not evaluated but may also be vulnerable. The issue carries a CVSS v3.1 base score of 9.1 (AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N) and is classified under CWE-89.

Remote attackers require no privileges or user interaction to exploit this vulnerability over the network with low complexity. Exploitation occurs if untrusted input can influence the _connector argument in the affected ORM methods, allowing attackers to inject and execute arbitrary SQL queries. Successful attacks can result in high confidentiality and integrity impacts, such as unauthorized data access, modification, or extraction from the underlying database.

Django's security advisories recommend upgrading to the patched releases: 5.1.14, 4.2.26, or 5.2.8. Details are available in the official security release notes at https://docs.djangoproject.com/en/dev/releases/security/, the django-announce group at https://groups.google.com/g/django-announce, and the November 5, 2025 weblog post at https://www.djangoproject.com/weblog/2025/nov/05/security-releases/. The vulnerability was reported by cyberstan.

Details

CWE(s)
CWE-89

Affected Products

djangoproject
django
4.2 — 4.2.26 · 5.1 — 5.1.14 · 5.2 — 5.2.8

MITRE ATT&CK Enterprise Techniques

T1190 Exploit Public-Facing Application Initial Access
Adversaries may attempt to exploit a weakness in an Internet-facing host or system to initially access a network.
T1213.006 Databases Collection
Adversaries may leverage databases to mine valuable information.
Why these techniques?

SQL injection in Django web framework enables remote exploitation of public-facing applications (T1190) and arbitrary SQL queries for data collection from databases (T1213.006).

Confidence: HIGH · MITRE ATT&CK Enterprise v19.0

References