anything2shell

Check if your domain is exposed to Django4Shell

Runs our passive, non-intrusive HTTP header, cookie & telemetry check on the main scanner.

Django4Shell

CVE-2026-124827 CVE-2026-132092 (SQLi) CVE-2026-115868 + 4 More CVSS 8.8 High (v3.1, Django) · 9.0 (Researcher) Patched Dec 2 · 7 Security Fixes EPSS Awaiting NVD
Boardroom Quick Reference

CIA Risk Posture & Executive Assurance

Dec 2 Patches Out · 4th GeoDjango Fix of 2026 CVSS: 8.8 (v3.1) / 8.7 (v4.0) Patched: Django 6.1.4 · 6.0.11 · 5.2.20
Confidentiality
High Risk
Secret Exfiltration & SQLi Exposure

Planted Python startup code reads SECRET_KEY, database passwords, and cloud keys on worker boot; CVE-2026-132092 also patches a High-severity ORM SQL injection.

Integrity
Critical Risk
Arbitrary File Write & Startup RCE

Staff users or writable API tokens on GeoDjango RasterField models can write sitecustomize.py or .pth files during validation—breaking multi-tenant isolation.

Availability
Elevated Risk
Config Corruption & Cache Poisoning

Arbitrary file writes can corrupt app configs, while CVE-2026-125673 dot-segment cache poisoning and CVE-2026-132809 OGRGeometry heap overflows impact availability.

Executive Decision Points Assurance vs. Activity — Key questions for your CISO / IT Lead
Which apps use GeoDjango RasterField or run EOL Django 4.2 / 5.0 / 5.1?

Django4Shell affects GeoDjango on PostGIS when a RasterField is reachable via Django Admin, a ModelForm, or a writable serializer—while the other 6 fixes (including SQLi CVE-2026-132092) apply to broader Django apps. EOL branches (4.2, 5.0, 5.1) receive no security patch.

Have Python startup paths & staff accounts been audited since August 2026?

Because CVE-2026-124827 is an incomplete patch lineage from August’s CVE-2026-15307 and writes files before model.save(), revoking a contractor or phished staff login does not remove a planted sitecustomize.py or .pth backdoor.

Technical Deep-Dive, Persistence Hunt & Remediation

Django4Shell (CVE-2026-124827) is a server-side arbitrary file-write and remote code execution vulnerability in GeoDjango’s django.contrib.gis.db.models.RasterField, patched on December 2, 2026 in Django 6.1.4, 6.0.11, and 5.2.20 alongside six additional security vulnerabilities.

Reported by Mohamed K. Fathy of Robusta Technology Group (django4shell.com ↗, The Hacker News ↗) and scored CVSS v3.1 8.8 / v4.0 8.7 (High) by the Django Software Foundation CNA (9.0 researcher rating), CVE-2026-124827 is the fourth GeoDjango raster fix of 2026—closing an incomplete fix chain after February’s CVE-2026-1207 (actively scanned within weeks per CrowdSec), August’s CVE-2026-15307 (spatial lookup file write), and October’s CVE-2026-87890 (GDAL Virtual Raster SSRF).

How validation becomes RCE before model.save(): Because RasterField (implemented on PostGIS; standard geometry fields like points and polygons are unaffected) fell back to a plain CharField form widget, any model with a RasterField registered in Django Admin, exposed in a ModelForm, or wired into a writable REST serializer accepted raw JSON/dict raster definitions by default. Submitting a crafted JSON raster body with an attacker-controlled name path and a non-default GDAL driver such as EHdr (shipped in every standard apt, yum, Homebrew, and conda GDAL build) forces GDAL to write an arbitrary file during form/serializer validation—before model.save() or any database transaction runs.

From file write to persistent shell: As detailed in MATT Research’s analysis ↗, when the web worker’s current working directory (typically on sys.path) or virtual environment is writable, writing sitecustomize.py, usercustomize.py, or a .pth file in site-packages causes Python to execute the attacker’s code automatically on the next Gunicorn/uWSGI worker fork, manage.py cron job, subprocess spawn, or reload. That turns a phished staff account, a tenant-scoped customer admin in a multi-tenant GIS SaaS, a leaked partner API token on a writable serializer, or a departing contractor into full server compromise.

Six Companion Fixes in 6.1.4 / 6.0.11 / 5.2.20: Even Django deployments without GeoDjango should upgrade for the December 2 release’s six other fixes (Django Security Advisory ↗), led by High-severity SQL injection in __range and __in lookups involving % in column aliases or key transforms (CVE-2026-132092), Moderate XSS in truncatechars_html inside HTML attributes (CVE-2026-115868), and dot-segment cache poisoning in HttpRequest.build_absolute_uri() (CVE-2026-125673).

Why it’s a risk

If an application uses RasterField on PostGIS, three of the four exploit preconditions—default Admin/ModelForm exposure, GDAL’s built-in EHdr file driver, and a writable worker CWD or site-packages—are typically met out of the box. Only staff-level authentication or a writable API serializer token is needed to plant startup code or web shells without touching the database.

How to recognize it (Versions, Logs & Persistence IoCs)

  • Vulnerable versions: Django 6.1 < 6.1.4, 6.0 < 6.0.11, and 5.2 < 5.2.20. End-of-life branches (5.1, 5.0, 4.2 and older) receive no upstream patch.
  • Codebase exposure check: Models importing django.contrib.gis.db.models.RasterField without editable=False or explicit exclusion in ModelAdmin, ModelForm, or Django REST Framework serializers.
  • Host & audit indicators: Unexpected sitecustomize.py or usercustomize.py on sys.path, newly created *.pth files inside site-packages since August 2026, or suspicious POSTs / django_admin_log entries on raster models.

How to mitigate it

  • Upgrade immediately to Dec 2 releases: Update to Django 6.1.4, 6.0.11, or 5.2.20 (which set RasterField(editable=False) by default and raise GDALException on non-default dict/JSON drivers), redeploy workers, and flush page caches for CVE-2026-125673.
  • Emergency workaround if upgrade waits: Set editable=False on every RasterField and add it to exclude / read_only_fields across all ModelAdmin, ModelForm, and DRF serializer classes.
  • Defense-in-depth & persistence hunt: Mount application code, virtualenvs, and site-packages read-only to the web process, disable unused GDAL drivers via GDAL_SKIP, and enforce MFA on all staff logins.
    Show persistence hunt & hardening CLI Hide persistence hunt & hardening CLI
    1. Audit Exposure & Hunt Planted Startup Files
    # 1. Check installed Django version (must be >= 6.1.4, 6.0.11, or 5.2.20)
    python -m django --version
    
    # 2. Locate any GeoDjango RasterField definitions in your app code
    grep -rn "RasterField" --include="*.py" --exclude-dir=".venv" --exclude-dir="venv" .
    
    # 3. Check for planted sitecustomize.py / usercustomize.py (compare any non-None path against base OS image)
    python -c "import importlib.util as u; print(u.find_spec('sitecustomize'), u.find_spec('usercustomize'))"
    
    # 4. Hunt rogue .pth startup files modified since August 2026
    python -c "import site, pathlib, time; [print(p) for d in site.getsitepackages() for p in pathlib.Path(d).glob('*.pth') if p.stat().st_mtime > 1754265600]"
    2. Upgrade, Flush Cache & Harden GDAL
    # Upgrade within your supported major/minor track (6.1.4, 6.0.11, or 5.2.20)
    pip install --upgrade "Django~=6.1.4"   # or "Django~=6.0.11" / "Django~=5.2.20"
    
    # Restrict unused GDAL file-writing drivers in service environment
    export GDAL_SKIP="EHdr ENVI PAux MFF HFA NITF"
    
    # Clear Django cache after upgrading (required for CVE-2026-125673 dot-segment cache poisoning)
    python manage.py shell -c "from django.core.cache import cache; cache.clear()"
What does NOT work (Common Traps): Assuming database permissions, transaction rollbacks, or revoking a compromised staff account is sufficient leaves GeoDjango servers exposed (Django Security Advisory ↗, MATT Research ↗):
  • Relying on DB errors or read-only DB roles: GDAL writes the attacker’s file during form/serializer validation before model.save() or any SQL query executes—even a failed validation request can drop the payload.
  • Deactivating a staff user without checking .pth / sitecustomize.py: A planted startup file in CWD or site-packages persists across restarts long after the staff account or API token is revoked; rebuild from a clean container image.
  • Wrapping untrusted input in GDALRaster(): In patched Django, wrapping input in GDALRaster explicitly marks it as trusted; Django warns that untrusted RasterField input can still trigger SSRF unless strictly validated first.
  • Upgrading without clearing page caches: Existing responses poisoned via CVE-2026-125673 dot-segment paths (. / .. in build_absolute_uri()) are not invalidated automatically when Django upgrades.
CVE Identifier Severity Fixed In (Dec 2) Vulnerability Class & Exploit Preconditions
CVE-2026-124827 ↗
Django4Shell
8.8 High (v3.1, Django)
9.0 Researcher
6.1.4 · 6.0.11 · 5.2.20 GeoDjango RasterField Arbitrary File-Write RCE: Assigning a JSON/dict raster with user-controlled name + non-default GDAL driver (EHdr) via Admin, ModelForm, or writable serializer writes arbitrary files (sitecustomize.py, .pth) during validation.
CVE-2026-132092 ↗ High (Django Policy) 6.1.4 · 6.0.11 · 5.2.20 ORM SQL Injection in range & in Lookups: Queries using column aliases or key transforms containing % were vulnerable to SQLi when __range passed >2 RHS values or __in used a bilateral transform.
CVE-2026-115868 ↗ Moderate (Django) 6.1.4 · 6.0.11 · 5.2.20 Cross-Site Scripting in truncatechars_html: truncatechars_html and Truncator.chars(html=True) allowed attribute-context XSS when input text length matched the truncation length.
CVE-2026-125673 ↗ Low (Django) 6.1.4 · 6.0.11 · 5.2.20 Web Cache Poisoning via Dot Segments: HttpRequest.build_absolute_uri() mis-normalized . and .. path segments in UpdateCacheMiddleware / @cache_page, allowing unauthenticated cache poisoning. Flush caches post-upgrade.
CVE-2026-119642 ↗ Low (Django) 6.1.4 · 6.0.11 · 5.2.20 Admin Changelist Leakage via pk Alias: Staff users with view permission on models using a custom OneToOneField primary key (including multi-table inheritance by default) could enumerate related data via querystring lookups.
CVE-2026-127929 ↗ Low (Django) 6.1.4 · 6.0.11 · 5.2.20 Admin Changelist Leakage via Reverse Relations: Regression from Django 5.0.3 (reported by OpenAI) allowing staff users with view permission to enumerate related model values via reverse-relation querystring searches.
CVE-2026-132809 ↗ Low (Django) 6.1.4 · 6.0.11 · 5.2.20 Heap Buffer Overflow in OGRGeometry.wkb: Undersized buffer allocation on 64-bit platforms for geometries larger than 4GB (also affecting hex, geos, and pickling).

Other Active *2Shell Advisories

← Back to Overview & URL Scanner
CVE-2026-114938 x86-64 AVX-512 EPSS Awaiting NVD

Java4Shell

Out-of-bounds write in OpenJDK’s x86-64 AVX-512 Base64 decoder enabling pre-auth RCE on default Jira, Confluence, Artifactory, Jenkins, and PingFederate installs.

Patched Releases Java SE 17.0.21.1 · 21.0.13.1 · 25.0.5.1 · 8u513 + -XX:-UseBASE64Intrinsics
Full Advisory, JVM Audit & Mitigation
CVE-2026-109618 / 109619 CVE-2026-126714 (phpAfterShell) EPSS 99.99%

PHP2Shell

Core PHP session & OPcache flaws plus Nov 19 patches for 7 critical RCEs including phpAfterShell session TOCTOU and default-config FastCGI php://input desync.

Patched Releases (Nov 19) PHP 8.5.13 · 8.4.28 · 8.3.37 · 8.2.36 · 8.6.0 + session.upload_progress.enabled = 0
Full Advisory, IoCs & Mitigation
CVE-2026-123007 / 123633 CVE-2026-111497 (Envoy) CVSS 9.2 Critical

HTTP2Shell / NGINX2Shell

Two unauthenticated HTTP/2 RCEs in NGINX (1.9.5–1.31.8) allow ASLR bypass and worker takeover even on static HTTPS sites, alongside Envoy & Istio’s Brotli RCE.

Patched Releases NGINX 1.31.9 / 1.30.7 (http2 off;) · Envoy 1.40.0 / 1.39.3 · Istio 1.31.2
Full Advisory & Mitigation