Django's CVE records score an SQL flaw 9.8, above the 8.8 file write others call Django4Shell
Django 6.1.4, 6.0.11 and 5.2.20 fix seven security issues. The file write nicknamed Django4Shell scores 8.8 in its CVE record, while an SQL injection fixed beside it scores 9.8. Read at 19:35 UTC on 3 December 2026.
By Parminder Kumar Sharma · LinkedIn · · 10 min read
The flaw without the nickname scores higher
In the CVE records published on 2 December 2026 by the Django Software Foundation (DSF), the SQL injection CVE-2026-132092 carries a CVSS 3.1 base score of 9.8. The server side file write CVE-2026-124827, which some now call Django4Shell, carries 8.8. The gap is 1.0 point (derived). On CVSS 4.0 the figures are 9.3 and 8.7. Django's own scale rates both simply "high".
A higher score does not establish that the SQL flaw is easier to meet in a real project, or that either has been used against anyone. Both have conditions, and the score assumes those conditions are already in place. The records, the notice and the reporting below were read between 19:32 and 19:35 UTC on 3 December 2026.
What Django released
Django's notice of 2 December announces versions 6.1.4, 6.0.11 and 5.2.20, covering seven security issues: two rated high, one moderate and four low. The 6.1.4 release notes list the same set alongside ordinary bug fixes. Two of the seven sit in GeoDjango code (the RasterField write and an overflow in OGRGeometry). The other five do not (derived).
The seven fixes: Django's notice and the DSF CVE records, read 3 December 2026
| Flaw | Django rating, CVSS 3.1 | What it needs, as Django words it |
|---|---|---|
| CVE-2026-132092: SQL injection in range and in lookups | high, 9.8 | Aliases or key transforms containing percent signs; more than two values for range, or a bilateral transform for in |
| CVE-2026-124827: file write through RasterField | high, 8.8 | A user controlled name parameter and a non-default raster driver |
| CVE-2026-115868: cross site scripting in truncatechars_html and Truncator.chars() with html=True | moderate, 6.1 | Certain inputs matching the truncation length, rendered in an HTML attribute |
| CVE-2026-132809: heap buffer overflow in OGRGeometry.wkb (also hex, geos and pickling) | low, 5.3 | Geometries larger than 4GB on 64-bit platforms |
| CVE-2026-125673: cache poisoning through dot segments | low, 3.7 | The cache middleware or cache_page, under certain deployment and URL setups; no login needed |
| CVE-2026-119642: admin changelist leak through the pk alias | low, 2.7 | A staff user with view permission and a OneToOneField primary key; multi table inheritance was affected by default |
| CVE-2026-127929: admin changelist leak through reverse relations | low, 2.7 | A staff user with view permission who knows related names; a regression since 5.0.3 |
The file write: what has to be true
RasterField is the GeoDjango model field for rasters, meaning grids of pixels such as satellite imagery or elevation. Django says it "is only implemented on PostGIS", and that geometry fields were not affected.
Assigning a raster definition with "a user-controlled name parameter and a non-default driver" could make GDAL, the geospatial library underneath, write a file to a location the attacker chooses. Django's wording on the worst case is conditional: "Depending on the raster driver, this could enable remote code execution."
The reach is wider than the conditions suggest. Because RasterField fell back to a plain text form field, Django says the flaw was "reachable by default on models with RasterField registered in the admin or using ModelForms or writable model serializers". A serializer here means the layer an API uses to accept data into a model.
The fix does two things. RasterField now defaults editable to False, so a ModelForm leaves it out unless it is explicitly included. Assigning a dict or JSON string that names another driver now raises GDALException; code that needs one wraps the definition in GDALRaster to mark the value as trusted. The GDAL reference says those inputs must otherwise use the default "MEM" driver.
The SQL injection: narrow wording, top score
CVE-2026-132092 concerns two everyday query filters, __range and __in. Django says they were open to SQL injection "in queries involving aliases or key transforms containing percent signs". An alias is a name given to a computed column; a key transform reaches inside structured data such as a JSON field.
Each filter had a further condition. The range flaw "required incorrectly using more than two right-hand side values", and the lookup now insists on exactly two. The in flaw "required a bilateral transform": a custom transform with bilateral set to True, which applies to both sides of a comparison. Django also notes that percent signs in column aliases and key transforms were deprecated in 6.0 and are due for removal in Django 2028.
Django does not say which of these parts an attacker would need to control, and gives no workaround. The 9.8 vector records low attack complexity and no privileges required. Neither the vector nor the notice says how many applications meet the conditions.
Where the name Django4Shell comes from
The name is not Django's. It does not appear in Django's notice, the 6.1.4 release notes or the seven CVE records. SecurityWeek puts it in a headline dated 3 December, and Orca Security, in a post dated 2 December, says the flaw "has been dubbed" Django4Shell "due to its severity and similarity to past shell-class vulnerabilities", without saying who did the dubbing. Orca sells cloud security software and its post promotes it.
SecurityWeek also links a website, django4shell.com, named after the flaw. Only that page's title and description were read here: the description says "Discovered by Robusta Technology Group." Django's notice thanks one individual for the report and mentions no company; how the two relate was not established, nor who used the name first. The site is not linked here, because Orca says proof of concept details are public through the researcher's disclosure.
A nickname built on "shell" invites a reader to picture a flaw that hits every Django site from the outside. The record says something narrower: a field that only exists on PostGIS, two conditions on the input, and a CVSS vector that requires some privileges. The reverse mistake is as easy: assuming that a project with no maps has nothing urgent here.
Where the accounts differ on CVE-2026-124827 (unresolved)
| Question | Django and the DSF record | Others |
|---|---|---|
| Severity | high; CVSS 3.1 8.8, CVSS 4.0 8.7 | Orca: Critical, CVSS 9.0. SecurityWeek: 8.8 |
| Who can reach it | Reachable by default through admin, ModelForms or writable serializers; vector says low privileges | Orca: staff level. SecurityWeek: an authenticated attacker. Nickname site: authenticated staff user |
| PostGIS | RasterField is only implemented on PostGIS | Orca: PostGIS backend. Nickname site: "No PostGIS or database required" |
| Link to earlier fixes | No earlier CVE named for this flaw | Orca and SecurityWeek: an incomplete fix for CVE-2026-87890 |
| Proof of concept | Not stated | Orca and SecurityWeek: details are public (not checked here) |
Treat the "staff only" reading with care. A public form or API that writes to such a model is not a staff page, and Django's sentence about ModelForms and serializers is not limited to staff. No NVD score of its own was found: its entries for both high flaws showed the DSF scores and the status Deferred.
The third raster fix in 120 days
Orca's reading that this is an incomplete fix is its own. What Django's records do show is a run of three CVEs touching how GDAL raster input is handled, from 4 August to 2 December 2026, 120 days (derived).
Three related DSF records
| CVE and published date | Fixed in | What the record says |
|---|---|---|
| CVE-2026-15307, 4 August | 6.0.8, 5.2.17 | high; file write and request forgery through spatial lookups |
| CVE-2026-87890, 6 October | 6.1.2, 6.0.9, 5.2.18 | moderate; "An incomplete fix for CVE-2026-15307" |
| CVE-2026-124827, 2 December | 6.1.4, 6.0.11, 5.2.20 | high; file write through RasterField assignment |
A project that upgraded for August or October still needs this release.
Who is exposed, and which branches get a fix
If a project does not use GeoDjango, the RasterField write has nothing to act on, and the OGRGeometry overflow is unlikely to. That still leaves the SQL injection, the cross site scripting, the cache poisoning and the two admin leaks, each under its own conditions. Check installed third party packages too, since they can define fields and transforms your own code never mentions (this site's inference).
Release series, from Django's download page and CVE records, read 3 December 2026
| Series | Fix | Security support |
|---|---|---|
| 6.1 | 6.1.4 | Extended support to December 2027 |
| 6.0 | 6.0.11 | Extended support to April 2027 |
| 5.2 LTS | 5.2.20 | Extended support to April 2028 |
| 5.1 | None | Ended 3 December 2025; not evaluated, may be affected |
| 4.2 LTS | None | Ended 7 April 2026; not evaluated, may be affected |
| 5.0 and older | None | Unsupported; the record names 5.0.x as not evaluated |
Django's security policy is plain about the gap: older versions "may also be affected, but we do not investigate to determine that". The download page lists the support dates above. Absence of 4.2 from an affected list is not a clean result. The development branch also received patches.
Is anything being exploited?
Exploitation, as the sources stood at 19:35 UTC on 3 December 2026
| Source | States | Does not state |
|---|---|---|
| Django notice | Upgrade as soon as possible | Any attack, proof of concept or workaround |
| CISA ADP data in the seven CVE records | Exploitation: none (dated 2 or 3 December) | That none will follow |
| CISA KEV catalogue 2026.12.03 | None of the seven is listed | That a flaw is safe |
| Orca and SecurityWeek | Proof of concept details for CVE-2026-124827 are public | That anyone has been attacked |
The KEV catalogue was the version released at 17:50 UTC on 3 December. Public proof of concept details, if the two accounts are right, shorten the time available. They are not evidence of use.
What to do, in order
Take this with you
This site's suggested order
- Upgrade to 6.1.4, 6.0.11 or 5.2.20, and check the installed version in every image and environment, not only the requirements file.
- On 5.1, 4.2 or older, plan the move to a supported series now. No patch is coming for those.
- Find every RasterField. For each, list the admin pages, forms, serializers and direct assignments that can write to it, and validate any untrusted value before assignment, because request forgery remains.
- Review range and in filters, bilateral transforms, and any alias or JSON key name built from request data. Prefer a fixed allow list of names.
- Clear affected caches after upgrading. Django says existing cached responses are not invalidated.
- Retest admin pages and forms that edit rasters, and any code that passed other than two values to range.
- If a RasterField was open to input before the upgrade, look for unexpected files. Orca suggests watching for unexpected .pth or sitecustomize.py files and web shells.
The searches below are this site's suggestion, not Django's. They only read your own source tree. A match is a place to review, not proof of a flaw, and no match is not proof of safety: names built at run time will not show.
# Installed version (run inside each environment)
python -m django --version
# GeoDjango and RasterField use, including migrations
grep -rnE "django\.contrib\.gis|RasterField" --include='*.py' .
# range and in lookups
grep -rnE "__(range|in)[^a-z_]" --include='*.py' .
# Names passed as keyword dictionaries, bilateral transforms, key transforms
grep -rnE "(annotate|alias|values|values_list|aggregate)\(\*\*|bilateral *= *True|KeyTransform|KT\(" --include='*.py' .
# Caching and HTML truncation (all file types, for templates)
grep -rnE "UpdateCacheMiddleware|cache_page|truncatechars_html|html=True" .
The question the nickname leaves open
The memorable name belongs to the flaw that needs a particular field on a particular database. The higher score sits on two filters that ordinary applications use every day, under conditions few teams could confirm from memory. When the next release arrives with a nickname attached to one of its entries, who in your team reads the other six?
Key facts
Sources
- PrimarySecurity releases 6.1.4, 6.0.11 and 5.2.20, 2 December 2026: the seven flaws and the conditionsDjangoaccessed 2026-12-03
- PrimaryDjango 6.1.4 release notesDjango documentationaccessed 2026-12-03
- PrimarySecurity policy: supported versions and severity levelsDjango documentationaccessed 2026-12-03
- PrimaryDownload page: release series and support end datesDjangoaccessed 2026-12-03
- PrimaryGDAL API: raster security considerationsDjango documentationaccessed 2026-12-03
- PrimaryCustom lookups: what a bilateral transform isDjango documentationaccessed 2026-12-03
- PrimaryCVE-2026-124827: scores, affected and fixed versions, CISA ADP dataCVE Program (record by Django Software Foundation)accessed 2026-12-03
- PrimaryCVE-2026-132092: scores, affected and fixed versions, CISA ADP dataCVE Program (record by Django Software Foundation)accessed 2026-12-03
- PrimaryCVE-2026-115868: scores, affected and fixed versions, CISA ADP dataCVE Program (record by Django Software Foundation)accessed 2026-12-03
- PrimaryCVE-2026-125673: scores, affected and fixed versions, CISA ADP dataCVE Program (record by Django Software Foundation)accessed 2026-12-03
- PrimaryCVE-2026-132809: scores, affected and fixed versions, CISA ADP dataCVE Program (record by Django Software Foundation)accessed 2026-12-03
- PrimaryCVE-2026-119642: scores, affected and fixed versions, CISA ADP dataCVE Program (record by Django Software Foundation)accessed 2026-12-03
- PrimaryCVE-2026-127929: scores, affected and fixed versions, CISA ADP dataCVE Program (record by Django Software Foundation)accessed 2026-12-03
- PrimaryCVE-2026-87890: scores, affected and fixed versions, CISA ADP dataCVE Program (record by Django Software Foundation)accessed 2026-12-03
- PrimaryCVE-2026-15307: scores, affected and fixed versions, CISA ADP dataCVE Program (record by Django Software Foundation)accessed 2026-12-03
- PrimaryNVD entry for CVE-2026-124827: status and the source of its scoresNIST NVDaccessed 2026-12-03
- PrimaryNVD entry for CVE-2026-132092: status and the source of its scoresNIST NVDaccessed 2026-12-03
- PrimaryKnown Exploited Vulnerabilities catalogue 2026.12.03CISAaccessed 2026-12-03
- Reported byResearch post of 2 December on the file write: nickname, score, staff level claimOrca Securityaccessed 2026-12-03
- Reported byNews report of 3 December using the nicknameSecurityWeekaccessed 2026-12-03


