{"id":"CVE-2026-1207","published":"2026-02-03T14:35:33Z","modified":"2026-07-15T11:47:50Z","title":"Potential SQL injection via raster lookups on PostGIS","vendor":"djangoproject","product":"Django","tier":"core","eol":null,"affectedVersions":[{"vendor":"djangoproject","product":"Django","versions":[">= 6.0, < 6.0.2",">= 5.2, < 5.2.11",">= 4.2, < 4.2.28"]}],"fixedVersions":[{"vendor":"djangoproject","product":"Django","versions":["6.0.2","5.2.11","4.2.28"]}],"capec":[{"id":"CAPEC-66","name":"SQL Injection"}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-02-03T16:21:06.022295Z","from":"CISA ADP","provenance":"source"},"description":{"text":"An issue was discovered in 6.0 before 6.0.2, 5.2 before 5.2.11, and 4.2 before 4.2.28.\nRaster lookups on ``RasterField`` (only implemented on PostGIS) allows remote attackers to inject SQL via the band index parameter.\nEarlier, unsupported Django series (such as 5.0.x, 4.1.x, and 3.2.x) were not evaluated and may also be affected.\nDjango would like to thank Tarek Nakkouch for reporting this issue.","provenance":"source","from":"CVE.org"},"summary":{"text":"The flaw is a SQL injection issue in Django's raster lookups on RasterField, which is only implemented on PostGIS, where the band index parameter is not properly neutralised before being used in a SQL command. An attacker who can send requests to an application using these lookups, with low privileges and no user interaction needed, can inject SQL through the band index parameter to affect confidentiality and integrity.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-21T00:11:52Z"},"cvss":{"score":5.4,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.12819,"percentile":0.96361,"date":"2026-11-24","provenance":"source"},"kev":null,"vulncheckKev":{"dateAdded":"2026-02-26","exploitedFirstSeen":"2026-02-26","ransomware":false,"evidence":[{"url":"https://tracker.crowdsec.net/cves/CVE-2026-1207","date":"2026-02-26"},{"url":"https://www.crowdsec.net/vulntracking-report/cve-2026-1207","date":"2026-03-23"},{"url":"https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?host_type=src&vulnerability=cve-2026-1207","date":"2026-07-06"},{"url":"https://previdian.com/CVE-2026-1207","date":"2026-07-06"}],"evidenceTotal":4,"provenance":"source"},"exploited":true,"otx":{"pulseCount":31,"pulses":[{"name":"Known_Cve | Mar 31, 2026 | Part 2/2","url":"https://otx.alienvault.com/pulse/69ca8519c290268fd9da68cc","created":"2026-03-30"},{"name":"Known_Cve | Mar 30, 2026 | Part 2/2","url":"https://otx.alienvault.com/pulse/69ca0daa0d61a3082fccd483","created":"2026-03-30"},{"name":"Known_Cve | Mar 30, 2026 | Part 2/2","url":"https://otx.alienvault.com/pulse/69c932c178f05822e0970ce2","created":"2026-03-29"},{"name":"Known_Cve | Mar 28, 2026 | Part 2/3","url":"https://otx.alienvault.com/pulse/69c69277127fedcfcf9349b0","created":"2026-03-27"},{"name":"Known_Cve | Mar 25, 2026 | Part 2/2","url":"https://otx.alienvault.com/pulse/69c2a5c024c4e0dbda79a32f","created":"2026-03-24"},{"name":"Known_Cve | Mar 24, 2026 | Part 2/2","url":"https://otx.alienvault.com/pulse/69c14ad8b8e05ab00f33f114","created":"2026-03-23"},{"name":"Known_Cve | Mar 23, 2026 | Part 2/2","url":"https://otx.alienvault.com/pulse/69bff7aa4497a8e301bea1a6","created":"2026-03-22"},{"name":"Known_Cve | Mar 22, 2026 | Part 2/2","url":"https://otx.alienvault.com/pulse/69bea71d8670a0c7bca9e465","created":"2026-03-21"},{"name":"Known_Cve | Mar 21, 2026 | Part 2/2","url":"https://otx.alienvault.com/pulse/69bd5624d600448fdbb80976","created":"2026-03-20"},{"name":"Known_Cve | Mar 20, 2026 | Part 2/2","url":"https://otx.alienvault.com/pulse/69bc050ef54477cc1648b808","created":"2026-03-19"}],"provenance":"machine"},"cwes":[{"id":"CWE-89","name":"Improper Neutralization of Special Elements used in an SQL Command"}],"references":[{"url":"https://docs.djangoproject.com/en/dev/releases/security/","tags":["vendor-advisory"]},{"url":"https://groups.google.com/g/django-announce","tags":["mailing-list"]},{"url":"https://www.djangoproject.com/weblog/2026/feb/03/security-releases/","tags":["vendor-advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2026-1207","tags":["vdb-entry","x_refsource_REDHAT"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2436338","tags":["issue-tracking","x_refsource_REDHAT"]},{"url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-1207.json","tags":["x_sadp-csaf-vex"]},{"url":"https://access.redhat.com/errata/RHSA-2026:3959","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:5971","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:3958","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:5970","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:14835","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:3962","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:3960","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:2694","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:6291","tags":["vendor-advisory","x_refsource_REDHAT"]}],"techniques":[],"reports":[],"affected":[{"ecosystem":"PyPI","package":"Django","vulnerableRanges":[">=6.0a1, <6.0.2",">=5.2a1, <5.2.11",">=4.2a1, <4.2.28",">=4.2, <4.2.28",">=5.2, <5.2.11",">=6.0, <6.0.2"],"patched":["6.0.2","5.2.11","4.2.28"],"from":["GHSA-mwm9-4648-f68q","PYSEC-2026-44"],"provenance":"source"}],"advisories":[{"id":"GHSA-mwm9-4648-f68q","url":"https://github.com/advisories/GHSA-mwm9-4648-f68q","severity":"HIGH","ecosystem":"PyPI","package":"Django","vulnerableRanges":[">=6.0a1, <6.0.2"],"patched":["6.0.2"],"provenance":"source","from":"GHSA"},{"id":"GHSA-mwm9-4648-f68q","url":"https://github.com/advisories/GHSA-mwm9-4648-f68q","severity":"HIGH","ecosystem":"PyPI","package":"Django","vulnerableRanges":[">=5.2a1, <5.2.11"],"patched":["5.2.11"],"provenance":"source","from":"GHSA"},{"id":"GHSA-mwm9-4648-f68q","url":"https://github.com/advisories/GHSA-mwm9-4648-f68q","severity":"HIGH","ecosystem":"PyPI","package":"Django","vulnerableRanges":[">=4.2a1, <4.2.28"],"patched":["4.2.28"],"provenance":"source","from":"GHSA"}],"euvd":{"id":"EUVD-2026-5253","url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-5253","exploited":false,"exploitedSince":null,"provenance":"source"},"exploits":[],"exploitSources":{"pocGithub":{"count":1,"skipped":0,"earliest":"2026-04-26","earliestUrl":"https://github.com/sw0rd1ight/CVE-2026-1207","repos":[{"name":"sw0rd1ight/CVE-2026-1207","url":"https://github.com/sw0rd1ight/CVE-2026-1207","stars":3,"created":"2026-04-26"}]},"nuclei":[{"id":"CVE-2026-1207","name":"Django RasterField - SQL Injection","severity":"high","path":"http/cves/2026/CVE-2026-1207.yaml","url":"https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2026/CVE-2026-1207.yaml"}],"first":{"date":"2026-04-26","source":"PoC-in-GitHub","url":"https://github.com/sw0rd1ight/CVE-2026-1207"},"provenance":"source"},"exploitRefs":[],"flow":[],"timeline":[{"date":"2026-02-03","kind":"published","label":"Published (CVE.org)","url":"https://www.cve.org/CVERecord?id=CVE-2026-1207","provenance":"source"},{"date":"2026-02-26","kind":"exploited-reported","label":"Exploitation first reported (VulnCheck KEV evidence)","url":"https://tracker.crowdsec.net/cves/CVE-2026-1207","provenance":"source"},{"date":"2026-04-26","kind":"exploit-public","label":"First public exploit: PoC-in-GitHub","url":"https://github.com/sw0rd1ight/CVE-2026-1207","provenance":"source"}],"speed":{"daysToPublicExploit":82,"firstExploitFrom":"PoC-in-GitHub","daysToKev":null},"priority":{"score":71.1,"factors":[{"name":"In a KEV catalog","points":35.0,"detail":"listed in VulnCheck KEV"},{"name":"Recent KEV listing","points":5.0,"detail":"added 271 days ago"},{"name":"Known ransomware use","points":0.0,"detail":"not known"},{"name":"EPSS percentile","points":19.27,"detail":"percentile 0.9636"},{"name":"Named in threat reports","points":0.0,"detail":"0 reports"},{"name":"Public exploit code","points":5.0,"detail":"1 PoC-in-GitHub repo; 1 nuclei template"},{"name":"Mentioned in OTX pulses","points":3.0,"detail":"31 pulses"},{"name":"CVSS severity","points":3.78,"detail":"base score 5.4"},{"name":"End-of-life product","points":0.0,"detail":"supported or unknown"}]}}