CVE Catalog

CVE-2025-57833

HighCVSS 7.1
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Very high risk
23.68%

98th percentile - higher than 98% of all known CVEs

Summary

Django 4.2 before 4.2.24, 5.1 before 5.1.12, and 5.2 before 5.2.6 are subject to SQL injection in FilteredRelation column aliases. The attack vector uses a suitably crafted dictionary with dictionary expansion as **kwargs passed to QuerySet.annotate() or QuerySet.alias().

Risk Assessment

An attacker could inject malicious SQL, potentially leading to unauthorized data access or modification.

Recommendation

Update Django to 4.2.24, 5.1.12, 5.2.6 or later and review code for unsafe data passed to annotate()/alias().

Other vulnerabilities in Django

See all
Original NVD description (English source)

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

Vulnerability data from NVD (NIST) · CISA KEV · EPSS