Feed
4.3MEDIUM

CVE-2025-13372Django is vulnerable to SQL injection in column aliases

A medium-severity vulnerability reachable over the network, needing no privileges and user interaction. EPSS estimates a 0.5% chance of exploitation in the next 30 days. A fixed version is named.

Exploited in the wild
Not in KEV
EPSS
0.5%
percentile 40%
Priority
18/100 low
how it is computed
Fix
Named by a source
CVE published 2 Dec 2025

Reference

None of the "Needs attention" rules apply right now.

EPSS 0.5% (+1) · Network attack vector (+10) · No privileges required (+5)

Immediate actions

Who should check

  • django (PyPI) pkg:pypi/django

    • Affected>= 5.2a1, < 5.2.9Fixed in5.2.9OSV (GHSA-rqw2-ghq9-44m7)
    • Affected>= 5.1a1, < 5.1.15Fixed in5.1.15OSV (GHSA-rqw2-ghq9-44m7)
    • Affected>= 4.2a1, < 4.2.27Fixed in4.2.27OSV (GHSA-rqw2-ghq9-44m7)
    • Affected>= 4.2, < 4.2.27Fixed in4.2.27OSV (PYSEC-2025-104)
    • Affected>= 5.1, < 5.1.15Fixed in5.1.15OSV (PYSEC-2025-104)
    • Affected>= 5.2, < 5.2.9Fixed in5.2.9OSV (PYSEC-2025-104)
  • djangoproject django product:djangoproject/django

    • Affected>= 5.2, < 5.2.9Affected range ends before5.2.9as published by CNA (CVE List)
    • Affected>= 5.1, < 5.1.15Affected range ends before5.1.15as published by CNA (CVE List)
    • Affected>= 4.2, < 4.2.27Affected range ends before4.2.27as published by CNA (CVE List)
    • Affected>= 4.2, < 4.2.27Affected range ends before4.2.27as published by CPE data (via the NVD API)
    • Affected>= 5.1, < 5.1.15Affected range ends before5.1.15as published by CPE data (via the NVD API)
    • Affected>= 5.2, < 5.2.9Affected range ends before5.2.9as published by CPE data (via the NVD API)

Products (not packages) are shown as their sources publish them. We check no product version against these ranges; a fixed version is the one the source names. Ask the vendor's advisory.

Confirmed facts

CVSS
4.3 MEDIUM (version 3.1)
Score from
CISA-ADP
Attack vector
network
Attack complexity
low
Privileges required
none
User interaction
required
Weakness
CWE-89
Exploitation (CISA SSVC)
none
Automatable (CISA SSVC)
no
Assigned by
6a34fbeb-21d4-45e7-8e0a-62b95bc12c92

Unknowns

  • We show one CVSS score. Other sources may score this CVE differently.

Advisory text

Quoted from the source advisory (untrusted)An issue was discovered in 5.2 before 5.2.9, 5.1 before 5.1.15, and 4.2 before 4.2.27. `FilteredRelation` is subject to SQL injection in column aliases, using a suitably crafted dictionary, with dictionary expansion, as the `**kwargs` passed to `QuerySet.annotate()` or `QuerySet.alias()` on PostgreSQL. Earlier, unsupported Django series (such as 5.0.x, 4.1.x, and 3.2.x) were not evaluated and may also be affected. Django would like to thank Stackered for reporting this issue.

Update history

  • 2 Dec 2025Published

References

Sources

This page is our own presentation: records are shortened, normalised and merged. Licences

Last checked: kev 44 min ago · osv 44 min ago · nvd 43 min ago · epss 43 min ago · JSON · ask via MCP: explain_vulnerability

Also known as BIT-django-2025-13372, GHSA-rqw2-ghq9-44m7, PYSEC-2025-104