P.K. SHARMA

Cyber security intelligence, AI governance, practitioner analysis

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 · 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).

This site's chart of the scores in the seven DSF CVE records, coloured by Django's severity rating, with each condition summarised from Django's notice.

The seven fixes: Django's notice and the DSF CVE records, read 3 December 2026

FlawDjango rating, CVSS 3.1What it needs, as Django words it
CVE-2026-132092: SQL injection in range and in lookupshigh, 9.8Aliases or key transforms containing percent signs; more than two values for range, or a bilateral transform for in
CVE-2026-124827: file write through RasterFieldhigh, 8.8A user controlled name parameter and a non-default raster driver
CVE-2026-115868: cross site scripting in truncatechars_html and Truncator.chars() with html=Truemoderate, 6.1Certain 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.3Geometries larger than 4GB on 64-bit platforms
CVE-2026-125673: cache poisoning through dot segmentslow, 3.7The cache middleware or cache_page, under certain deployment and URL setups; no login needed
CVE-2026-119642: admin changelist leak through the pk aliaslow, 2.7A 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 relationslow, 2.7A 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.

Django's own conditions for the file write, and what the upgrade does not stop.
This site's drawing of Django's description of CVE-2026-124827 and the two changes in the fix.

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.

The notice's wording for CVE-2026-132092.

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)

QuestionDjango and the DSF recordOthers
Severityhigh; CVSS 3.1 8.8, CVSS 4.0 8.7Orca: Critical, CVSS 9.0. SecurityWeek: 8.8
Who can reach itReachable by default through admin, ModelForms or writable serializers; vector says low privilegesOrca: staff level. SecurityWeek: an authenticated attacker. Nickname site: authenticated staff user
PostGISRasterField is only implemented on PostGISOrca: PostGIS backend. Nickname site: "No PostGIS or database required"
Link to earlier fixesNo earlier CVE named for this flawOrca and SecurityWeek: an incomplete fix for CVE-2026-87890
Proof of conceptNot statedOrca 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 dateFixed inWhat the record says
CVE-2026-15307, 4 August6.0.8, 5.2.17high; file write and request forgery through spatial lookups
CVE-2026-87890, 6 October6.1.2, 6.0.9, 5.2.18moderate; "An incomplete fix for CVE-2026-15307"
CVE-2026-124827, 2 December6.1.4, 6.0.11, 5.2.20high; 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

SeriesFixSecurity support
6.16.1.4Extended support to December 2027
6.06.0.11Extended support to April 2027
5.2 LTS5.2.20Extended support to April 2028
5.1NoneEnded 3 December 2025; not evaluated, may be affected
4.2 LTSNoneEnded 7 April 2026; not evaluated, may be affected
5.0 and olderNoneUnsupported; 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

SourceStatesDoes not state
Django noticeUpgrade as soon as possibleAny attack, proof of concept or workaround
CISA ADP data in the seven CVE recordsExploitation: none (dated 2 or 3 December)That none will follow
CISA KEV catalogue 2026.12.03None of the seven is listedThat a flaw is safe
Orca and SecurityWeekProof of concept details for CVE-2026-124827 are publicThat 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.

bash
# 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" .
This site's suggested searches, written 3 December 2026. Run from the project root, then again over installed packages.

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

  1. PrimarySecurity releases 6.1.4, 6.0.11 and 5.2.20, 2 December 2026: the seven flaws and the conditionsDjangoaccessed 2026-12-03
  2. PrimaryDjango 6.1.4 release notesDjango documentationaccessed 2026-12-03
  3. PrimarySecurity policy: supported versions and severity levelsDjango documentationaccessed 2026-12-03
  4. PrimaryDownload page: release series and support end datesDjangoaccessed 2026-12-03
  5. PrimaryGDAL API: raster security considerationsDjango documentationaccessed 2026-12-03
  6. PrimaryCustom lookups: what a bilateral transform isDjango documentationaccessed 2026-12-03
  7. PrimaryCVE-2026-124827: scores, affected and fixed versions, CISA ADP dataCVE Program (record by Django Software Foundation)accessed 2026-12-03
  8. PrimaryCVE-2026-132092: scores, affected and fixed versions, CISA ADP dataCVE Program (record by Django Software Foundation)accessed 2026-12-03
  9. PrimaryCVE-2026-115868: scores, affected and fixed versions, CISA ADP dataCVE Program (record by Django Software Foundation)accessed 2026-12-03
  10. PrimaryCVE-2026-125673: scores, affected and fixed versions, CISA ADP dataCVE Program (record by Django Software Foundation)accessed 2026-12-03
  11. PrimaryCVE-2026-132809: scores, affected and fixed versions, CISA ADP dataCVE Program (record by Django Software Foundation)accessed 2026-12-03
  12. PrimaryCVE-2026-119642: scores, affected and fixed versions, CISA ADP dataCVE Program (record by Django Software Foundation)accessed 2026-12-03
  13. PrimaryCVE-2026-127929: scores, affected and fixed versions, CISA ADP dataCVE Program (record by Django Software Foundation)accessed 2026-12-03
  14. PrimaryCVE-2026-87890: scores, affected and fixed versions, CISA ADP dataCVE Program (record by Django Software Foundation)accessed 2026-12-03
  15. PrimaryCVE-2026-15307: scores, affected and fixed versions, CISA ADP dataCVE Program (record by Django Software Foundation)accessed 2026-12-03
  16. PrimaryNVD entry for CVE-2026-124827: status and the source of its scoresNIST NVDaccessed 2026-12-03
  17. PrimaryNVD entry for CVE-2026-132092: status and the source of its scoresNIST NVDaccessed 2026-12-03
  18. PrimaryKnown Exploited Vulnerabilities catalogue 2026.12.03CISAaccessed 2026-12-03
  19. Reported byResearch post of 2 December on the file write: nickname, score, staff level claimOrca Securityaccessed 2026-12-03
  20. Reported byNews report of 3 December using the nicknameSecurityWeekaccessed 2026-12-03

Share this briefing

Know someone who owns this problem? Send it to them.

Related briefings

The briefing, in your inbox

Practitioner analysis of cyber and AI security news. No vendor noise.

How often

Every new briefing in one email, at 7am, or at 7am, 12:30pm and 6pm. Nothing is sent when nothing is new. Unsubscribe any time.