CVE-2026-1207: Potential SQL injection via raster lookups on PostGIS

Published Feb 3, 2026
·
Updated

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.

Affected Software

9 affected componentsFixes available
pypi/django<6.0.2
pypi/django<5.2.11
pypi/django<4.2.28
pip/Django>=4.2a1<4.2.28
4.2.28
pip/Django>=5.2a1<5.2.11
5.2.11
pip/Django>=6.0a1<6.0.2
6.0.2
djangoproject Django>=4.2<4.2.28
djangoproject Django>=5.2<5.2.11
djangoproject Django>=6.0<6.0.2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade pip/Django to a version that resolves this vulnerability.

    Fixed in 4.2.28
  2. Upgrade

    Upgrade pip/Django to a version that resolves this vulnerability.

    Fixed in 5.2.11
  3. Upgrade

    Upgrade pip/Django to a version that resolves this vulnerability.

    Fixed in 6.0.2

Event History

Feb 3, 2026
CVE Published
via MITRE·02:35 PM
Data Sourced
via MITRE·02:35 PM
DescriptionWeakness
Data Sourced
via Red Hat·03:01 PM
DescriptionSeverityAffected Software
Data Sourced
via NVD·03:16 PM
RemedyDescriptionSeverityWeaknessAffected Software
Advisory Published
via GitHub·03:30 PM
Data Sourced
via GitHub·03:30 PM
DescriptionWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-1207?

CVE-2026-1207 is considered a critical vulnerability due to the potential for SQL injection attacks.

2

How do I fix CVE-2026-1207?

To fix CVE-2026-1207, upgrade Django to version 4.2.28, 5.2.11, or 6.0.2, depending on your current version.

3

What versions of Django are affected by CVE-2026-1207?

Django versions prior to 6.0.2, 5.2.11, and 4.2.28 are affected by CVE-2026-1207.

4

What type of attacks does CVE-2026-1207 enable?

CVE-2026-1207 allows remote attackers to perform SQL injection via raster lookups on the RasterField.

5

Is there a known exploit for CVE-2026-1207?

Yes, there are indications that CVE-2026-1207 can be exploited to perform SQL injection attacks, compromising database security.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203