{"id":"CVE-2025-57833","aliases":["CVE-2025-57833","GHSA-6w2r-r2m5-xq5w","BIT-DJANGO-2025-57833","PYSEC-2025-105"],"related":[],"kind":"vulnerability","state":"published","title":"Django is subject to SQL injection through its column aliases","summary":"An issue was discovered in Django 4.2 before 4.2.24, 5.1 before 5.1.12, and 5.2 before 5.2.6. FilteredRelation is subject to SQL injection in column aliases, using a suitably crafted dictionary, with dictionary expansion, as the **kwargs passed QuerySet.annotate() or QuerySet.alias().","summarySource":"cvelist","descriptions":[{"lang":"en","text":"An issue was discovered in Django 4.2 before 4.2.24, 5.1 before 5.1.12, and 5.2 before 5.2.6. FilteredRelation is subject to SQL injection in column aliases, using a suitably crafted dictionary, with dictionary expansion, as the **kwargs passed QuerySet.annotate() or QuerySet.alias().","source":"cvelist"}],"published":"2025-09-03T00:00:00.000Z","modified":"2026-09-10T16:01:31.335Z","severity":{"scorer":"mitre","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:L/A:N","score":7.1,"rating":"HIGH"},"severities":[{"scorer":"mitre","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:L/A:N","score":7.1,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:L/A:N","score":7.1,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","score":8.1,"rating":"HIGH"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","score":8.1,"rating":"HIGH"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"HIGH"}],"cwes":["CWE-89"],"affected":[{"ranges":[{"type":"custom","introduced":"4.2","fixed":"4.2.24","status":"affected"},{"type":"custom","introduced":"5.1","fixed":"5.1.12","status":"affected"},{"type":"custom","introduced":"5.2","fixed":"5.2.6","status":"affected"}],"vendor":"djangoproject","product":"Django","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"4.2.24"}],"ecosystem":"PyPI","package":"django","purl":"pkg:pypi/django","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"5.0a1","status":"affected","fixed":"5.1.12"}],"ecosystem":"PyPI","package":"django","purl":"pkg:pypi/django","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"5.2a1","status":"affected","fixed":"5.2.6"}],"ecosystem":"PyPI","package":"django","purl":"pkg:pypi/django","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"4.2","fixed":"4.2.24"},{"status":"affected","introduced":"5.1","fixed":"5.1.12"},{"status":"affected","introduced":"5.2","fixed":"5.2.6"}],"vendor":"djangoproject","product":"django","cpe":"cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"4.2","status":"affected","fixed":"4.2.24"},{"type":"ecosystem","introduced":"5.1","status":"affected","fixed":"5.1.12"},{"type":"ecosystem","introduced":"5.2","status":"affected","fixed":"5.2.6"}],"ecosystem":"PyPI","package":"django","purl":"pkg:pypi/django","source":"pysec"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"4.2.24"},{"type":"semver","introduced":"5.0.0","status":"affected","fixed":"5.1.12"},{"type":"semver","introduced":"5.2.0","status":"affected","fixed":"5.2.6"}],"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":["advisory","vendor-advisory","web"],"sources":["cvelist","ghsa","nvd","pysec","bitnami"]},{"url":"https://www.djangoproject.com/weblog/2025/sep/03/security-releases/","tags":["advisory","vendor-advisory"],"sources":["cvelist","nvd","pysec","bitnami"]},{"url":"https://medium.com/@EyalSec/django-unauthenticated-0-click-rce-and-sql-injection-using-default-configuration-059964f3f898","tags":["advisory","evidence","exploit","third-party-advisory","web"],"sources":["cvelist","ghsa","nvd","pysec","bitnami"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/09/msg00017.html","tags":["web"],"sources":["cvelist","ghsa","nvd","pysec","bitnami"]},{"url":"http://www.openwall.com/lists/oss-security/2025/09/03/3","tags":["web"],"sources":["cvelist","ghsa","nvd","pysec","bitnami"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-57833","tags":["advisory","web"],"sources":["ghsa","bitnami"]},{"url":"https://github.com/django/django/commit/102965ea93072fe3c39a30be437c683ec1106ef5","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/django/django/commit/31334e6965ad136a5e369993b01721499c5d1a92","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/django/django/commit/4c044fcc866ec226f612c475950b690b0139d243","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/pypa/advisory-database/tree/main/vulns/django/PYSEC-2025-105.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://www.djangoproject.com/weblog/2025/sep/03/security-releases","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/advisories/GHSA-6w2r-r2m5-xq5w","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"mitre","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"total","date":"2025-09-08T17:33:03.859Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-57833","url":"https://www.cve.org/CVERecord?id=CVE-2025-57833","licence":"CVE Terms of Use","modified":"2025-11-04T21:13:19.662Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-6w2r-r2m5-xq5w","url":"https://github.com/advisories/GHSA-6w2r-r2m5-xq5w","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:27.987Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-57833","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-57833","licence":"Public domain","modified":"2026-06-17T09:43:30.480Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2025-105","url":"https://osv.dev/vulnerability/PYSEC-2025-105","licence":"CC-BY-4.0","modified":"2026-06-10T17:01:10.893Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-DJANGO-2025-57833","url":"https://osv.dev/vulnerability/BIT-DJANGO-2025-57833","licence":"Apache-2.0","modified":"2026-09-10T16:01:31.335Z"}],"updatedAt":"2026-11-25T22:59:04.091Z","epss":{"score":0.27058,"percentile":0.98081,"date":"2026-12-01T12:00:22.000Z"}}