Live threats

All CVEs / Djangoproject

CVE-2025-57833Djangoproject Django

High 8.1 No auth needed

Priority
64
CVSS 3.1
8.1
EPSS
—
Auth required
No
Published
Sep 3, 2025
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-89
SSVC (CISA)
Exploitation: proof of concept · Automatable: no · Technical impact: total
Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

What happens

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

Original NVD text.

What to do

  1. Apply the vendor's security update for Django.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
PyPI django < 4.2.24 4.2.24 pip install "django>=4.2.24"
PyPI django ≥ 5.0a1 < 5.1.12 5.1.12 pip install "django>=5.1.12"
PyPI django ≥ 5.2a1 < 5.2.6 5.2.6 pip install "django>=5.2.6"
PyPI django ≥ 4.2 < 4.2.24 4.2.24 pip install "django>=4.2.24"
PyPI django ≥ 5.1 < 5.1.12 5.1.12 pip install "django>=5.1.12"
PyPI django ≥ 5.2 < 5.2.6 5.2.6 pip install "django>=5.2.6"

Per OSV / GitHub Advisories (GHSA-6w2r-r2m5-xq5w, PYSEC-2025-105). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
djangoprojectdjango≥ 4.2 < 4.2.24
djangoprojectdjango≥ 5.1 < 5.1.12
djangoprojectdjango≥ 5.2 < 5.2.6

Official advisories

Vendor, CERT and distribution advisories that name this CVE. Original titles.

Official sources

References

Links published by the sources. Open them with care.