djangoproject Django

CVE-2025-57833
HIGH 7.1

At a glance

Source
NVD
EPSS
EPSS 26.11 % · percentile 98 ()
State
PUBLISHED
Published
Updated
Assigner
mitre
NVD status
Modified

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

Weaknesses (CWE)

  • CWE-89 — Improper Neutralization of Special Elements used in an SQL Command

References

Scores

VersionScoreVectorScored by
CVSS 3.1HIGH 7.1CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:L/A:Nmitre
CVSS 3.1HIGH 7.1CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:L/A:NNVD · cve@mitre.org (Secondary)
CVSS 3.1HIGH 8.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:HNVD · nvd@nist.gov (Primary)

Advisories

European references

Affected configurations (NVD CPE)

Affected products

ProductVersions
djangoproject · Djangoaffected 4.2 < 4.2.24 ; affected 5.1 < 5.1.12 ; affected 5.2 < 5.2.6

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD