Exploited now
Vulnerability WatchVulnerabilities, exploits & advisories — updated every 15 minutes
Alerts

Home › News › Python

News High CVE Analysis

Django4shell: Critical RCE Flaw CVE-2026-124827 Traced to Incomplete GeoDjango Raster Fixes

According to The Hacker News, a critical remote code execution flaw in Django, tracked as CVE-2026-124827 and rated 9.0 by CVSS, stems from an incomplete fix to an earlier GeoDjango raster bug. Administrators running the listed Django versions should review exposure now.

PythonVulnerabilities

Key points

  • CVE-2026-124827 (Django4shell) is a critical RCE flaw with a CVSS score of 9.0, affecting Django 6.1.4, 6.0.11 and 5.2.20
  • It stems from an incomplete fix to CVE-2026-87890, which was an incomplete patch for GeoDjango bug CVE-2026-15307
  • Successful exploitation requires staff-level authentication and can lead to file overwrites and code execution
  • Three other fixes cover SQL injection, XSS and cache poisoning

What was reported

According to The Hacker News, researchers found a critical remote code execution vulnerability in Django that affects versions 6.1.4, 6.0.11 and 5.2.20. The issue is tracked as CVE-2026-124827, carries a CVSS score of 9.0, and is referred to as Django4shell.

How it connects to earlier bugs

The new flaw is linked to an incomplete fix for CVE-2026-87890, which was itself an incomplete patch for CVE-2026-15307. That earlier bug was resolved in August 2026. CVE-2026-15307 is rated high severity and affects spatial lookup raster parsing in GeoDjango, where it could allow server-side file writes. CVE-2026-87890 involved server-side request forgery through crafted GDAL Virtual Raster payloads that point to external raster sources.

Impact and conditions

The report says that a gap in how RasterField values are assigned lets an attacker set the target path, file content and filename through a specially built JSON raster body. A file written to the worker's current working directory, which is typically on the Python import path, can run automatically when the interpreter starts. Reported outcomes include web shells, altered configuration files and access to sensitive data. Exploitation requires four conditions, and three of them are typically met in default Django setups. Staff-level authentication is described as the main prerequisite. The article notes that ModelForms and the default admin make RasterField reachable without customization, that the GDAL EHdr driver ships in standard builds, and that writable locations such as the project root are often available. GeoDjango's use in GIS and mapping applications increases the potential impact.

Other fixes in the update

The same security update round covers an SQL injection flaw in range and lookup operations (CVE-2026-132092), a cross-site scripting issue in the truncatechars_html filter (CVE-2026-115868), and a cache poisoning issue caused by dot segments in request paths (CVE-2026-125673).

The source does not list the fixed Django release numbers. For full details, read the original report at The Hacker News.

What to do

  1. Identify whether any Django deployments run the listed affected versions and use GeoDjango RasterField
  2. Apply the Django security update for CVE-2026-124827; the report does not give fixed version numbers, so confirm them in Django's official advisory
  3. Review staff account access, since staff-level authentication is the main prerequisite named in the report
  4. Review write permissions on project roots and the worker working directory

Our article, written with AI assistance from the facts of the original report and the official vulnerability data below. Read the original for full details.

Original report

The Hacker Newsthehackernews.com

“New Django4Shell Vulnerability Enables Django RCE via GeoDjango Form Validation”

The maintainers of Django have released versions 6.1.4, 6.0.11, and 5.2.20 to address seven security vulnerabilities, including a critical security flaw that could potentially enable remote code execution. The vulnerability, tracked as CVE-2026-124827 (CVSS score: 9.0), has been codenamed Django4shell by Mohamed K. Fathy, head of cybersecurity at Robusta Technology Group. It's an incomplete fix

Also reported by

Vulnerabilities mentioned

More on this topic