CVE-2025-57833

HIGHCVSS 8.1/10EPSS 15.60%

Last modified

CVE-2025-57833 is a high-severity vulnerability rated 8.1/10 on the CVSS scale. 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().. EPSS estimates a 15.60% chance of exploitation in the next 30 days.

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

Metrics

CVSS 3.1
8.1/10

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

EPSS Probability
15.60%

96.4th percentile

Probability of exploitation in the next 30 days. Learn more

Weakness Enumeration

Affected Software

VendorProductVersions
DjangoprojectDjango>= 4.2, < 4.2.24
DjangoprojectDjango>= 5.1, < 5.1.12
DjangoprojectDjango>= 5.2, < 5.2.6

References

Timeline

Published
Last Modified
Status
Modified

Frequently Asked Questions

What is CVE-2025-57833?
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().
How severe is CVE-2025-57833?
CVE-2025-57833 has a CVSS score of 8.1/10 (HIGH severity). The EPSS model estimates a 15.60% probability of exploitation in the next 30 days.
How do I fix CVE-2025-57833?
Check the vendor references and advisories linked above for patched versions and mitigation guidance. You can also run a Strix scan to test if your systems are affected.

Are you affected by CVE-2025-57833?

Run a free Strix scan to check your systems for this vulnerability.

Scan your code now

Source: NVD / NIST