Skip to main content
← All vulnerabilities
CVE-2025-57833GHSA-6W2R-R2M5-XQ5WBIT-DJANGO-2025-57833PYSEC-2025-105

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.

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 4.2.24, 5.1.12, 5.2.6
5 proofs of concept on GitHub
  • Exploitation: poc
  • Automatable: no
  • Technical impact: total

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

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: no · Technical impact: total

  3. Record last updated
  4. EPSS reached 10%

    FIRST estimates at least a 10% chance of exploitation in the next 30 days

Affected versions

  • djangoproject Django

    From 4.2 · fixed in 4.2.24; From 5.1 · fixed in 5.1.12; From 5.2 · fixed in 5.2.6

  • djangoPyPI

    fixed in 4.2.24

  • djangoPyPI

    From 5.0a1 · fixed in 5.1.12

  • djangoPyPI

    From 5.2a1 · fixed in 5.2.6

  • djangoPyPI

    From 4.2 · fixed in 4.2.24; From 5.1 · fixed in 5.1.12; From 5.2 · fixed in 5.2.6

References 9

docs.djangoproject.com

groups.google.com

djangoproject.com

medium.com

GitHub · Gayang2902/CVE-2025-57833

GitHub · Mkway/CVE-2025-57833

GitHub · ianoboyle/CVE-2025-57833

GitHub · loic-houchi/Django-faille-CVE-2025-57833_test

GitHub · sw0rd1ight/CVE-2025-57833