{"id":"CVE-2025-64459","aliases":["CVE-2025-64459","GHSA-frmv-pr5f-9mcr","BIT-DJANGO-2025-64459","PYSEC-2025-108"],"related":[],"kind":"vulnerability","state":"published","title":"Potential SQL injection via _connector keyword argument in QuerySet and Q objects","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.\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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"Se descubrió un problema en 5.1 anterior a 5.1.14, 4.2 anterior a 4.2.26 y 5.2 anterior a 5.2.8. Los métodos 'QuerySet.filter()', 'QuerySet.exclude()' y 'QuerySet.get()', y la clase 'Q()', están sujetos a inyección SQL cuando se utiliza un diccionario adecuadamente diseñado, con expansión de diccionario, como argumento '_connector'. Series anteriores de Django sin soporte (como 5.0.x, 4.1.x y 3.2.x) no fueron evaluadas y también pueden verse afectadas. Django desea agradecer a cyberstan por informar de este problema.","source":"nvd"}],"published":"2025-11-05T15:09:58.239Z","modified":"2026-09-08T08:46:35.569Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","score":9.1,"rating":"CRITICAL"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","score":9.1,"rating":"CRITICAL"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","score":9.1,"rating":"CRITICAL"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","score":9.1,"rating":"CRITICAL"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"CRITICAL"}],"cwes":["CWE-89"],"affected":[{"ranges":[{"type":"semver","introduced":"5.2","fixed":"5.2.8","status":"affected"},{"type":"semver","version":"5.2.8","status":"unaffected"},{"type":"semver","introduced":"5.1","fixed":"5.1.14","status":"affected"},{"type":"semver","version":"5.1.14","status":"unaffected"},{"type":"semver","introduced":"4.2","fixed":"4.2.26","status":"affected"},{"type":"semver","version":"4.2.26","status":"unaffected"}],"vendor":"djangoproject","product":"Django","package":"django","repo":"https://github.com/django/django/","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"5.2a1","status":"affected","fixed":"5.2.8"}],"ecosystem":"PyPI","package":"django","purl":"pkg:pypi/django","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"5.0a1","status":"affected","fixed":"5.1.14"}],"ecosystem":"PyPI","package":"django","purl":"pkg:pypi/django","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"4.2.26"}],"ecosystem":"PyPI","package":"django","purl":"pkg:pypi/django","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"4.2","fixed":"4.2.26"},{"status":"affected","introduced":"5.1","fixed":"5.1.14"},{"status":"affected","introduced":"5.2","fixed":"5.2.8"}],"vendor":"djangoproject","product":"django","cpe":"cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"4.2","status":"affected","fixed":"4.2.26"},{"type":"ecosystem","introduced":"5.1","status":"affected","fixed":"5.1.14"},{"type":"ecosystem","introduced":"5.2","status":"affected","fixed":"5.2.8"}],"ecosystem":"PyPI","package":"django","purl":"pkg:pypi/django","source":"pysec"},{"ranges":[{"type":"semver","introduced":"4.2.0","status":"affected","fixed":"4.2.26"},{"type":"semver","introduced":"5.1.0","status":"affected","fixed":"5.1.14"},{"type":"semver","introduced":"5.2.0","status":"affected","fixed":"5.2.8"}],"ecosystem":"Bitnami","package":"django","purl":"pkg:bitnami/django","source":"bitnami"}],"references":[{"url":"https://docs.djangoproject.com/en/dev/releases/security/","tags":["advisory","vendor-advisory"],"sources":["cvelist","nvd","pysec","bitnami"]},{"url":"https://groups.google.com/g/django-announce","tags":["article","discussion","mailing-list","web"],"sources":["cvelist","ghsa","nvd","pysec","bitnami"]},{"url":"https://www.djangoproject.com/weblog/2025/nov/05/security-releases/","tags":["advisory","vendor-advisory"],"sources":["cvelist","nvd","pysec","bitnami"]},{"url":"https://shivasurya.me/security/django/2025/11/07/django-sql-injection-CVE-2025-64459.html","tags":["advisory","evidence","exploit","third-party-advisory","web"],"sources":["cvelist","ghsa","nvd","pysec","bitnami"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-64459","tags":["advisory","web"],"sources":["ghsa","bitnami"]},{"url":"https://github.com/django/django/commit/06dd38324ac3d60d83d9f3adabf0dcdf423d2a85","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/django/django/commit/59ae82e67053d281ff4562a24bbba21299f0a7d4","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/django/django/commit/6703f364d767e949c5b0e4016433ef75063b4f9b","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/django/django/commit/72d2c87431f2ae0431d65d0ec792047f078c8241","tags":["web"],"sources":["ghsa"]},{"url":"https://docs.djangoproject.com/en/dev/releases/security","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/django/django","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/omarkurt/django-connector-CVE-2025-64459-testbed","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2025-108.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://www.djangoproject.com/weblog/2025/nov/05/security-releases","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/advisories/GHSA-frmv-pr5f-9mcr","tags":["advisory"],"sources":["pysec"]}],"credits":["cyberstan","Jacob Walls","Natalia Bidart"],"assigner":"DSF","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"total","date":"2025-11-06T04:55:36.221Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-64459","url":"https://www.cve.org/CVERecord?id=CVE-2025-64459","licence":"CVE Terms of Use","modified":"2026-02-26T17:47:16.519Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-frmv-pr5f-9mcr","url":"https://github.com/advisories/GHSA-frmv-pr5f-9mcr","licence":"CC-BY-4.0","modified":"2026-06-05T14:45:52.053Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-64459","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-64459","licence":"Public domain","modified":"2026-06-17T09:54:24.473Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2025-108","url":"https://osv.dev/vulnerability/PYSEC-2025-108","licence":"CC-BY-4.0","modified":"2026-06-10T17:01:06.455Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-DJANGO-2025-64459","url":"https://osv.dev/vulnerability/BIT-DJANGO-2025-64459","licence":"Apache-2.0","modified":"2026-09-08T08:46:35.569Z"}],"updatedAt":"2026-11-25T22:59:07.238Z","epss":{"score":0.19496,"percentile":0.97435,"date":"2026-12-01T12:00:22.000Z"}}