Live threats

All CVEs / Djangoproject

CVE-2026-1207Djangoproject Django

Medium 5.4

Priority
32
CVSS 3.1
5.4
EPSS
—
Auth required
Yes
Published
Feb 3, 2026
Updated
Jul 15, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-89
SSVC (CISA)
Exploitation: none · Automatable: no · Technical impact: partial
Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N

What happens

An issue was discovered in 6.0 before 6.0.2, 5.2 before 5.2.11, and 4.2 before 4.2.28. Raster lookups on ``RasterField`` (only implemented on PostGIS) allows remote attackers to inject SQL via the band index parameter. 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 Tarek Nakkouch for reporting this issue.

Original NVD text.

What to do

  1. Apply the vendor's security update for Django.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
PyPI django ≥ 6.0a1 < 6.0.2 6.0.2 pip install "django>=6.0.2"
PyPI django ≥ 5.2a1 < 5.2.11 5.2.11 pip install "django>=5.2.11"
PyPI django ≥ 4.2a1 < 4.2.28 4.2.28 pip install "django>=4.2.28"
PyPI django ≥ 4.2 < 4.2.28 4.2.28 pip install "django>=4.2.28"
PyPI django ≥ 5.2 < 5.2.11 5.2.11 pip install "django>=5.2.11"
PyPI django ≥ 6.0 < 6.0.2 6.0.2 pip install "django>=6.0.2"

Per OSV / GitHub Advisories (GHSA-mwm9-4648-f68q, PYSEC-2026-44). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
djangoprojectdjango≥ 4.2 < 4.2.28
djangoprojectdjango≥ 5.2 < 5.2.11
djangoprojectdjango≥ 6.0 < 6.0.2

Official advisories

Also: Red Hat (+2), SUSE (+3)

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

Official sources

References

Links published by the sources. Open them with care.