{"id":"CVE-2025-64459","aliases":["BIT-django-2025-64459","GHSA-frmv-pr5f-9mcr","PYSEC-2025-108"],"url":"https://o3.security/vulnerability/CVE-2025-64459","summary":"Potential SQL injection via _connector keyword argument in QuerySet and Q objects","details":"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.","published":"2025-11-05T15:09:58.239Z","modified":"2026-08-12T03:51:26.689957852Z","cvss":{"score":9.1,"severity":"CRITICAL","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N"},"epss":{"score":0.19396,"percentile":0.97221,"asOf":"2026-09-17"},"cisaKev":null,"exploitsKnown":1,"affectedPackages":[{"ecosystem":"PyPI","name":"django","fixedVersion":"5.2.8"},{"ecosystem":"PyPI","name":"django","fixedVersion":"5.1.14"},{"ecosystem":"PyPI","name":"django","fixedVersion":"4.2.26"}],"fix":{"url":"https://github.com/django/django/commit/06dd38324ac3d60d83d9f3adabf0dcdf423d2a85","label":"django/django@06dd383"},"references":[{"type":"WEB","url":"https://github.com/django/django/"},{"type":"WEB","url":"https://shivasurya.me/security/django/2025/11/07/django-sql-injection-CVE-2025-64459.html"},{"type":"ADVISORY","url":"https://docs.djangoproject.com/en/dev/releases/security/"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/64xxx/CVE-2025-64459.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-64459"},{"type":"ADVISORY","url":"https://www.djangoproject.com/weblog/2025/nov/05/security-releases/"},{"type":"PACKAGE","url":"https://pypi.org/project/Django/"},{"type":"ARTICLE","url":"https://groups.google.com/g/django-announce"},{"type":"WEB","url":"https://github.com/django/django/commit/06dd38324ac3d60d83d9f3adabf0dcdf423d2a85"},{"type":"WEB","url":"https://github.com/django/django/commit/59ae82e67053d281ff4562a24bbba21299f0a7d4"},{"type":"WEB","url":"https://github.com/django/django/commit/6703f364d767e949c5b0e4016433ef75063b4f9b"},{"type":"WEB","url":"https://github.com/django/django/commit/72d2c87431f2ae0431d65d0ec792047f078c8241"},{"type":"WEB","url":"https://docs.djangoproject.com/en/dev/releases/security"},{"type":"PACKAGE","url":"https://github.com/django/django"},{"type":"WEB","url":"https://github.com/omarkurt/django-connector-CVE-2025-64459-testbed"},{"type":"WEB","url":"https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2025-108.yaml"},{"type":"WEB","url":"https://www.djangoproject.com/weblog/2025/nov/05/security-releases"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-12T03:51:26.689957852Z"}}