CVE-2025-57833

HIGH LAB

Django < 4.2.24 - SQL Injection

Title source: rule

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().

Exploits (5)

nomisec WORKING POC 3 stars
by Mkway · poc
https://github.com/Mkway/CVE-2025-57833
nomisec WORKING POC 2 stars
by sw0rd1ight · poc
https://github.com/sw0rd1ight/CVE-2025-57833
nomisec WORKING POC 2 stars
by Gayang2902 · poc
https://github.com/Gayang2902/CVE-2025-57833
github WORKING POC 2 stars
by ianoboyle · pythonpoc
https://github.com/ianoboyle/CVE-2025-57833
nomisec WORKING POC 2 stars
by loic-houchi · poc
https://github.com/loic-houchi/Django-faille-CVE-2025-57833_test

Scores

CVSS v3 7.1
EPSS 0.0002
EPSS Percentile 5.7%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:L/A:N

Lab Environment

COMMUNITY
Community Lab
docker pull postgres:15-alpine
docker pull m.daocloud.io/docker.io/library/postgres:latest
+2 more repos

Details

CWE
CWE-89
Status published
Products (2)
djangoproject/django 4.2 - 4.2.24
pypi/Django 0 - 4.2.24PyPI
Published Sep 03, 2025
Tracked Since Feb 18, 2026