ADVISORIES

Vulnerability

CVE-2025-13372

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.

24 advisories report this vulnerability, across 8 ecosystems.

Advisories

  • ALPINE-CVE-2025-13372

    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…

    CVE-2025-13372 Alpine Updated 3 November 2026
  • ALPINE-EDGE-CVE-2025-13372
    CVE-2025-13372 Alpine Updated 18 November 2026
  • CGA-39c5-q9x9-vjq7
    CVE-2025-13372 Chainguard Updated 27 October 2026
  • CGA-7hxg-cgv9-397w
    CVE-2025-13372 Chainguard Updated 5 November 2026
  • CGA-cx53-m3v5-7vvc
    CVE-2025-13372 Chainguard Updated 27 October 2026
  • CGA-pp9c-m5q7-3pcq
    CVE-2025-13372 Chainguard Updated 27 October 2026
  • DEBIAN-CVE-2025-13372

    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…

    CVE-2025-13372 Debian Updated 23 October 2026
  • DSA-6117-1

    python-django - security update

    CVE-2025-13372CVE-2025-57833CVE-2025-59681CVE-2025-59682 Debian Updated 20 November 2026
  • DSA-6136-1

    python-django - security update

    CVE-2019-14232CVE-2023-41164CVE-2023-43665CVE-2024-24680 Debian Updated 20 November 2026
  • GHSA-rqw2-ghq9-44m7

    Django is vulnerable to SQL injection in column aliases

    Moderate CVE-2025-13372 PyPI Updated 10 September 2026
  • OESA-2025-2847

    python-django security update

    Medium CVE-2025-13372 openEuler Updated 18 August 2026
  • OESA-2025-2848

    python-django security update

    Medium CVE-2025-13372 openEuler Updated 18 August 2026
  • OESA-2025-2849

    python-django security update

    Medium CVE-2025-13372 openEuler Updated 18 August 2026
  • OESA-2025-2850

    python-django security update

    High CVE-2025-13372CVE-2025-64460 openEuler Updated 18 August 2026
  • OESA-2025-2851

    python-django security update

    High CVE-2025-13372CVE-2025-64460 openEuler Updated 18 August 2026
  • PYSEC-2025-104

    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…

    CVE-2025-13372 PyPI Updated 10 June 2026
  • SUSE-SU-2025:4384-1

    Security update for python-Django

    CVE-2025-13372CVE-2025-64460 SUSEopenSUSE Updated 4 February 2026
  • UBUNTU-CVE-2025-13372

    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…

    CVE-2025-13372 Ubuntu Updated 20 May 2026
  • USN-7903-1

    python-django vulnerabilities

    CVE-2025-13372CVE-2025-64460 Ubuntu Updated 25 June 2026
  • openSUSE-SU-2025:15805-1

    python311-Django-5.2.9-1.1 on GA media

    CVE-2025-13372CVE-2025-64460 openSUSE Updated 23 March 2026
  • openSUSE-SU-2025:15806-1

    python311-Django4-4.2.27-1.1 on GA media

    CVE-2025-13372CVE-2025-64460 openSUSE Updated 23 March 2026
  • openSUSE-SU-2025:20153-1

    Security update for python-Django

    CVE-2025-13372CVE-2025-64459CVE-2025-64460 openSUSE Updated 23 March 2026
  • openSUSE-SU-2026:10005-1

    python312-Django6-6.0-1.1 on GA media

    CVE-2015-3982CVE-2015-5145CVE-2015-5963CVE-2016-7401 openSUSE Updated 23 March 2026
  • openSUSE-SU-2026:11270-1

    python313-Django5-5.2.16-1.1 on GA media

    CVE-2015-3982CVE-2015-5145CVE-2015-5963CVE-2016-7401 openSUSE Updated 15 July 2026

References