{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2025-64459","id":"CVE-2025-64459","title":"Potential SQL injection via _connector keyword argument in QuerySet and Q objects","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","descriptionLong":"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","updated":"2026-11-17T02:45:13.303650290Z","reserved":"2025-11-04T14:35:57.527Z","status":"Analyzed","rejected":false,"assigner":"DSF","metric":{"version":"3.1","score":9.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","rating":"critical","source":"CISA-ADP"},"metrics":[{"version":"3.1","score":9.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","rating":"critical","source":"CISA-ADP"},{"version":"3.1","score":9.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","rating":"critical","source":"OSV"},{"version":"3.1","score":9.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","rating":"critical","source":"GitHub"}],"rating":"critical","products":["djangoproject Django"],"affectedProducts":[{"vendor":"djangoproject","product":"Django","defaultStatus":"unaffected","versions":[{"lessThan":"5.2.8","status":"affected","version":"5.2","versionType":"semver"},{"status":"unaffected","version":"5.2.8","versionType":"semver"},{"lessThan":"5.1.14","status":"affected","version":"5.1","versionType":"semver"},{"status":"unaffected","version":"5.1.14","versionType":"semver"},{"lessThan":"4.2.26","status":"affected","version":"4.2","versionType":"semver"},{"status":"unaffected","version":"4.2.26","versionType":"semver"}],"platforms":[]}],"packages":[{"ecosystem":"PyPI","name":"django","purl":"pkg:pypi/django","ranges":[">=5.2a1 <5.2.8",">=5.0a1 <5.1.14","<4.2.26",">=4.2 <4.2.26",">=5.1 <5.1.14",">=5.2 <5.2.8"],"fixed":["5.2.8","5.1.14","4.2.26"],"advisory":"GHSA-frmv-pr5f-9mcr"}],"cwes":["CWE-89"],"aliases":["BIT-django-2025-64459","GHSA-frmv-pr5f-9mcr","PYSEC-2025-108"],"references":[{"url":"https://docs.djangoproject.com/en/dev/releases/security/","tags":["vendor-advisory","Vendor Advisory","advisory"]},{"url":"https://groups.google.com/g/django-announce","tags":["mailing-list","Mailing List","article","web"]},{"url":"https://www.djangoproject.com/weblog/2025/nov/05/security-releases/","tags":["vendor-advisory","Vendor Advisory","advisory"]},{"url":"https://shivasurya.me/security/django/2025/11/07/django-sql-injection-CVE-2025-64459.html","tags":["Exploit","Third Party Advisory","web","evidence"]},{"url":"https://github.com/django/django/","tags":["web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/64xxx/CVE-2025-64459.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-64459","tags":["advisory"]},{"url":"https://pypi.org/project/Django/","tags":["package"]},{"url":"https://github.com/django/django/commit/06dd38324ac3d60d83d9f3adabf0dcdf423d2a85","tags":["web"]},{"url":"https://github.com/django/django/commit/59ae82e67053d281ff4562a24bbba21299f0a7d4","tags":["web"]},{"url":"https://github.com/django/django/commit/6703f364d767e949c5b0e4016433ef75063b4f9b","tags":["web"]},{"url":"https://github.com/django/django/commit/72d2c87431f2ae0431d65d0ec792047f078c8241","tags":["web"]},{"url":"https://docs.djangoproject.com/en/dev/releases/security","tags":["web"]},{"url":"https://github.com/django/django","tags":["package"]},{"url":"https://github.com/omarkurt/django-connector-CVE-2025-64459-testbed","tags":["web"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2025-108.yaml","tags":["web"]},{"url":"https://www.djangoproject.com/weblog/2025/nov/05/security-releases","tags":["web"]},{"url":"https://github.com/advisories/GHSA-frmv-pr5f-9mcr","tags":["advisory"]}],"patchReferenced":false,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"total"},"epss":0.19257,"epssPercentile":0.97394,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2025-64459","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-64459","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2025-64459","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-frmv-pr5f-9mcr","ok":true,"note":"GHSA-frmv-pr5f-9mcr"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2025-64459","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":["django"],"critical":["CVSS 9.1 in a widely used technology","EPSS 19% with CVSS 9.1"],"attention":null}