{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2025-57833","id":"CVE-2025-57833","title":"Django is subject to SQL injection through its column aliases","description":"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().","descriptionLong":"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().","published":"2025-09-03T00:00:00.000Z","updated":"2026-11-17T02:45:12.506980504Z","reserved":"2025-08-20T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"mitre","metric":{"version":"3.1","score":7.1,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:L/A:N","rating":"high","source":"mitre"},"metrics":[{"version":"3.1","score":7.1,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:L/A:N","rating":"high","source":"mitre"},{"version":"3.1","score":7.1,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:L/A:N","rating":"high","source":"mitre.org"},{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"NVD"},{"version":"3.1","score":7.1,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:L/A:N","rating":"high","source":"OSV"},{"version":"3.1","score":7.1,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:L/A:N","rating":"high","source":"GitHub"},{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"OSV"}],"rating":"high","products":["djangoproject Django"],"affectedProducts":[{"vendor":"djangoproject","product":"Django","defaultStatus":"unknown","versions":[{"lessThan":"4.2.24","status":"affected","version":"4.2","versionType":"custom"},{"lessThan":"5.1.12","status":"affected","version":"5.1","versionType":"custom"},{"lessThan":"5.2.6","status":"affected","version":"5.2","versionType":"custom"}],"platforms":[]}],"packages":[{"ecosystem":"PyPI","name":"django","purl":"pkg:pypi/django","ranges":["<4.2.24",">=5.0a1 <5.1.12",">=5.2a1 <5.2.6",">=4.2 <4.2.24",">=5.1 <5.1.12",">=5.2 <5.2.6"],"fixed":["4.2.24","5.1.12","5.2.6"],"advisory":"GHSA-6w2r-r2m5-xq5w"}],"cwes":["CWE-89"],"aliases":["BIT-django-2025-57833","GHSA-6w2r-r2m5-xq5w","PYSEC-2025-105"],"references":[{"url":"https://docs.djangoproject.com/en/dev/releases/security/","tags":["Vendor Advisory","web","advisory"]},{"url":"https://groups.google.com/g/django-announce","tags":["Vendor Advisory","web","advisory"]},{"url":"https://www.djangoproject.com/weblog/2025/sep/03/security-releases/","tags":["Vendor Advisory","article","advisory"]},{"url":"https://medium.com/@EyalSec/django-unauthenticated-0-click-rce-and-sql-injection-using-default-configuration-059964f3f898","tags":["Exploit","Third Party Advisory","web","evidence"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/09/msg00017.html","tags":["web"]},{"url":"http://www.openwall.com/lists/oss-security/2025/09/03/3","tags":["web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/57xxx/CVE-2025-57833.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-57833","tags":["advisory"]},{"url":"https://github.com/django/django/commit/102965ea93072fe3c39a30be437c683ec1106ef5","tags":["web"]},{"url":"https://github.com/django/django/commit/31334e6965ad136a5e369993b01721499c5d1a92","tags":["web"]},{"url":"https://github.com/django/django/commit/4c044fcc866ec226f612c475950b690b0139d243","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/pypa/advisory-database/tree/main/vulns/django/PYSEC-2025-105.yaml","tags":["web"]},{"url":"https://www.djangoproject.com/weblog/2025/sep/03/security-releases","tags":["web"]},{"url":"https://github.com/advisories/GHSA-6w2r-r2m5-xq5w","tags":["advisory"]}],"patchReferenced":false,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total"},"epss":0.28271,"epssPercentile":0.98156,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2025-57833","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-57833","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2025-57833","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-6w2r-r2m5-xq5w","ok":true,"note":"GHSA-6w2r-r2m5-xq5w"},{"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-57833","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":["django"],"critical":["EPSS 28% with CVSS 7.1"],"attention":null}