nday
CVE-2025-64459

Potential SQL injection via _connector keyword argument in QuerySet and Q objects

djangoproject / Django

A public PoC appeared 28 days after disclosure. nday has no fix record for it yet; that does not mean no patch exists. Listed by 1 of 4 PoC sources: exploitdb. Not in CISA KEV.

why these tags

nday derives these tags by fixed rules from the facts below; NVD, the CNA and other sources do not assign them. Vocabulary and rules: ~/tags.

SQL injection
CWE-89, stated by the CNA DSF and NVD, republishing 6a34fbeb-21d4-45e7-8e0a-62b95bc12c92
remote, unauthenticated
AV:N, PR:N, UI:N in CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N (CVSS 3.1) from the ADP CISA-ADP
network
AV:N in CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N (CVSS 3.1) from the ADP CISA-ADP
no authentication required
PR:N in CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N (CVSS 3.1) from the ADP CISA-ADP
no user interaction
UI:N in CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N (CVSS 3.1) from the ADP CISA-ADP
Exploit-DB
Exploit-DB entries 52456
Django
affected products in the CVE record: djangoproject · DjangoCPE names NVD's analysts give as vulnerable: a:djangoproject:django
open-source library / framework
affected products in the CVE record: djangoproject · DjangoCPE names NVD's analysts give as vulnerable: a:djangoproject:djangothe product type of Django in nday's product registry
stage
POC
disclosed
disclosure → PoC
T+28d POC is date-only
cvss
9.1 CRITICAL v3.1

Lifecycle

x axis UTC; dot = exact minute, wide bar = date only, hollow = unknown or inferred.
time unknown
DISdisclosed
2025-11-05T15:09Z
PATpatch
no record yet
ANAanalysis
no record yet
POCPoC
2025-12-03, date only
ITWexploited
no record yet
KEVKEV
no record yet

Summary

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.

Original text of the CVE record (cvelist), shown as published.

Exploit conditions

What an attack needs, read from the CVSS vector.
Attack vector AV:N
Network: the attacker only needs to reach it over the network
Attack complexity AC:L
Low: no special conditions; the attacker can expect repeatable success
Privileges required PR:N
None: no account or authorization needed
User interaction UI:N
None: no action by anyone other than the attacker

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N

CVSS 3.1 vector from the CVE record, added by the ADP CISA-ADP.

Event log

+DISdisclosed

CVE record published by DSF. CVSS 9.1, critical.

src cvelist · nday , bulk import · raw
{
  "id": 58797,
  "type": "disclosed",
  "source": "cvelist",
  "url": "https://www.cve.org/CVERecord?id=CVE-2025-64459",
  "occurred_at": "2025-11-05T15:09:58.239Z",
  "observed_at": "2026-11-12T16:27:38.849571Z",
  "is_backfill": true,
  "dedupe_key": "",
  "detail": {
    "cvss": {
      "source": "adp:CISA-ADP",
      "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N",
      "version": "3.1",
      "base_score": 9.1,
      "base_severity": "CRITICAL"
    },
    "ssvc": {
      "timestamp": "2025-11-06T04:55:36.221321Z",
      "automatable": "yes",
      "exploitation": "none",
      "technical_impact": "total"
    },
    "state": "PUBLISHED",
    "date_published": "2025-11-05T15:09:58.239Z",
    "assigner_short_name": "DSF"
  }
}
2025-12-03date only, from source
+POCpublic PoC

Exploit-DB lists public exploit code “Django 5.1.13 - SQL Injection” (EDB-52456).

src exploitdb 52456 · nday , bulk import · raw
{
  "id": 27727,
  "type": "poc_published",
  "source": "exploitdb",
  "url": "https://www.exploit-db.com/exploits/52456",
  "occurred_at": "2025-12-03T00:00:00Z",
  "observed_at": "2026-11-12T15:24:40.221206Z",
  "is_backfill": true,
  "dedupe_key": "52456",
  "detail": {
    "url": "https://www.exploit-db.com/exploits/52456",
    "file": "exploits/multiple/webapps/52456.py",
    "kind": "exploit",
    "tags": [],
    "type": "webapps",
    "title": "Django 5.1.13 - SQL Injection",
    "author": "Wafcontrol Security Team",
    "edb_id": 52456,
    "cve_ids": [
      "CVE-2025-64459"
    ],
    "platform": "multiple",
    "verified": false,
    "precision": "day",
    "confidence": "curated",
    "date_added": "2025-12-03",
    "date_updated": "2025-12-03",
    "date_published": "2025-12-03"
  }
}

Report an error

report an error or omission

Something on this page wrong or missing? Tell the editors; if they accept it, this page's revision log says so publicly. Upstream data is not changed.

Researcher discussion

0 researchers mentioned this in the last 7 days

Posts on X by researchers on nday's list that mention this CVE, shown as posted. nday does not check them.

nday has not collected any post on X by listed researchers that mentions this CVE.

Discussion

0 comments

No comments yet.