{
  "id": "CVE-2025-64459",
  "url": "https://poc.griffinguard.io/cve/CVE-2025-64459",
  "published_at": "2025-11-05T15:09:58.239Z",
  "title": "Potential SQL injection via _connector keyword argument in QuerySet and Q objects",
  "vendor": "djangoproject",
  "product": "Django",
  "cvss": {
    "score": 9.1,
    "source": "cisa-adp",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": {
    "created_at": "2025-12-01T03:34:47Z",
    "first_seen_at": "2026-11-14T11:25:11.578Z",
    "days_after_publication": 25.5,
    "repo": "0xCyberstan/CVE-2025-64459-Poc",
    "source": "github"
  },
  "poc_repo_count": 7,
  "exploit_count": 1,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "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.\nThe 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.\nEarlier, unsupported Django series (such as 5.0.x, 4.1.x, and 3.2.x) were not evaluated and may also be affected.\nDjango would like to thank cyberstan for reporting this issue.",
  "cwe": "CWE-89",
  "cpes": [
    "cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cisa-adp": 9.1
  },
  "repos": [
    {
      "repo": "rockmelodies/django_sqli_target_CVE-2025-64459",
      "url": "https://github.com/rockmelodies/django_sqli_target_CVE-2025-64459",
      "created_at": "2025-11-06T08:21:39Z",
      "first_seen_at": "2026-11-14T14:50:35.824Z",
      "stars": 0,
      "is_poc": "no",
      "kind": "writeup",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2016-12-19T13:38:32Z"
    },
    {
      "repo": "nunpa/CVE-2025-64459",
      "url": "https://github.com/nunpa/CVE-2025-64459",
      "created_at": "2025-11-10T13:08:57Z",
      "first_seen_at": "2026-11-14T14:50:35.824Z",
      "stars": 1,
      "is_poc": "no",
      "kind": "detection",
      "suspicion_score": 15,
      "suspicious": false,
      "suspicion_reasons": [
        "no network code found (normal for a local exploit)"
      ],
      "status": "analyzed",
      "owner_created_at": "2014-07-30T15:19:14Z"
    },
    {
      "repo": "omarkurt/django-connector-CVE-2025-64459-testbed",
      "url": "https://github.com/omarkurt/django-connector-CVE-2025-64459-testbed",
      "created_at": "2025-11-21T22:13:56Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 2,
      "is_poc": "no",
      "kind": "writeup",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2012-05-07T07:46:22Z"
    },
    {
      "repo": "0xCyberstan/CVE-2025-64459-Poc",
      "url": "https://github.com/0xCyberstan/CVE-2025-64459-Poc",
      "created_at": "2025-12-01T03:34:47Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 2,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2024-01-12T20:55:36Z"
    },
    {
      "repo": "Lucas-Cyber-Security/CVE_Projects",
      "url": "https://github.com/Lucas-Cyber-Security/CVE_Projects",
      "created_at": "2025-12-01T16:53:26Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 0,
      "is_poc": "no",
      "kind": "writeup",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2024-07-22T21:40:02Z"
    },
    {
      "repo": "Z3YR0xX/CVE-2025-64459",
      "url": "https://github.com/Z3YR0xX/CVE-2025-64459",
      "created_at": "2025-12-05T03:38:19Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 0,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2019-07-18T02:39:13Z"
    },
    {
      "repo": "alxsourin/Helpdesk-Telecom-CVE-2025-64459",
      "url": "https://github.com/alxsourin/Helpdesk-Telecom-CVE-2025-64459",
      "created_at": "2026-01-08T13:51:05Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 0,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2025-02-10T16:43:05Z"
    },
    {
      "repo": "purehate/CVE-2025-64459-hunter",
      "url": "https://github.com/purehate/CVE-2025-64459-hunter",
      "created_at": "2026-01-14T15:55:41Z",
      "first_seen_at": "2026-11-14T14:50:35.824Z",
      "stars": 0,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2009-12-12T01:26:04Z"
    },
    {
      "repo": "joshualent/django-cve-2025-64459",
      "url": "https://github.com/joshualent/django-cve-2025-64459",
      "created_at": "2026-03-09T17:37:50Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 0,
      "is_poc": "yes",
      "kind": "listed by PoC Index",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2022-05-29T18:53:30Z"
    },
    {
      "repo": "rafaelchriss/RedTeamBrasil-CVE-2025-64459",
      "url": "https://github.com/rafaelchriss/RedTeamBrasil-CVE-2025-64459",
      "created_at": "2026-07-07T14:50:14Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 0,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2021-06-28T14:55:11Z"
    },
    {
      "repo": "YouGina/CVE-2025-64459",
      "url": "https://github.com/YouGina/CVE-2025-64459",
      "created_at": "2026-08-11T20:42:10Z",
      "first_seen_at": "2026-11-14T14:50:35.824Z",
      "stars": 0,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2013-07-13T12:51:01Z"
    }
  ],
  "remediation": {
    "affected": [
      {
        "vendor": "djangoproject",
        "product": "Django",
        "ranges": [
          "\u003e= 5.2, \u003c 5.2.8",
          "\u003e= 5.1, \u003c 5.1.14",
          "\u003e= 4.2, \u003c 4.2.26"
        ],
        "fixed_in": [
          "5.2.8",
          "5.1.14",
          "4.2.26"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Django to 5.2.8 or 5.1.14 or 4.2.26 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://docs.djangoproject.com/en/dev/releases/security/"
      },
      {
        "kind": "Vendor advisory",
        "url": "https://www.djangoproject.com/weblog/2025/nov/05/security-releases/"
      }
    ]
  },
  "exploit_refs": [
    {
      "url": "https://www.exploit-db.com/exploits/52456",
      "source": "exploitdb",
      "title": "Django 5.1.13 - SQL Injection",
      "published_at": "2025-12-03T00:00:00Z",
      "first_seen_at": "2026-11-14T10:26:36.149Z"
    }
  ],
  "hunt_profile": [
    {
      "method": "GET",
      "path_template": "/",
      "query_markers": [
        "_negated=True",
        "is_public=False"
      ],
      "ports": [
        8054
      ],
      "protocol": "http",
      "repos": [
        "Z3YR0xX/CVE-2025-64459"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "Z3YR0xX/CVE-2025-64459/README.md:32",
        "Z3YR0xX/CVE-2025-64459/README.md:35"
      ]
    },
    {
      "method": "GET",
      "path_template": "/login/",
      "query_markers": [
        "username=admin",
        "_connector=OR",
        "is_superuser=True",
        "_negated=True"
      ],
      "ports": [
        8054
      ],
      "protocol": "http",
      "repos": [
        "Z3YR0xX/CVE-2025-64459"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "Z3YR0xX/CVE-2025-64459/README.md:23",
        "Z3YR0xX/CVE-2025-64459/README.md:26"
      ]
    },
    {
      "method": "GET",
      "path_template": "/{var}",
      "query_markers": [
        "__rtb_probe__=1"
      ],
      "ports": [
        8080
      ],
      "protocol": "https",
      "repos": [
        "rafaelchriss/RedTeamBrasil-CVE-2025-64459"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "rafaelchriss/RedTeamBrasil-CVE-2025-64459/rtb_connector_sqli.py:172"
      ]
    },
    {
      "method": "POST",
      "path_template": "/",
      "body_markers": [
        "csrfmiddlewaretoken=",
        "search=AND"
      ],
      "content_type": "application/x-www-form-urlencoded",
      "ports": [
        80
      ],
      "protocol": "http",
      "repos": [
        "purehate/CVE-2025-64459-hunter"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "purehate/CVE-2025-64459-hunter/cve_2025_64459_hunter.py:84",
        "purehate/CVE-2025-64459-hunter/cve_2025_64459_hunter.py:94"
      ]
    }
  ],
  "rules": []
}
