# Django, a website-building toolkit, fixes 7 security flaws, including one that can let attackers run code

The 2 December 2026 releases—6.1.4, 6.0.11 and 5.2.20—fix a flaw tracked under the public vulnerability ID CVE-2026-124827 that could let attackers write files on servers and, in some setups, run unauthorized code. Django urges users to upgrade.

Published 3 December 2026 · Verified as of 3 December 2026 · AveNews · Software

https://www.avenews.am/en/posts/django-geodjango-rce-security-patches · [Հայերեն](https://www.avenews.am/hy/posts/django-geodjango-rce-security-patches)

> **Summary:** Django, a toolkit for building websites, fixed 7 security flaws. One affected how sites accept map data: the update removes the affected field from automatically generated forms by default, and Django urges operators to check map data from untrusted sources before accepting it.

Django’s 2 December 2026 updates (6.1.4, 6.0.11 and 5.2.20) fix 7 security flaws, including CVE-2026-124827 in GeoDjango, the mapping component of the open-source toolkit for building websites in the Python programming language. In affected applications, untrusted map data could cause the server to write files and, depending on the software that handles the map-data format, run unauthorized code. Two earlier fixes changed how applications search map data but left the field used to accept that data exposed.[^3][^2][^1]

## Which applications are affected

The affected field, RasterField, stores map data as a grid of cells, like the pixels in a satellite image. GeoDjango uses the Geospatial Data Abstraction Library, or GDAL, to read and write that data. Django says the flaw could make that library write a file at a location chosen by an attacker. Whether it could also let the attacker run unauthorized code depends on the software that handles the map-data format. Django implements RasterField only on PostGIS. Fields that store shapes rather than grids were unaffected.[^4][^2]

Before the update, Django treated RasterField as an ordinary text field in forms. That fallback exposed the flaw by default when applications made the affected field available through the built-in administration panel, forms generated from the application’s data model, or interfaces that let clients write to that model.[^2]

*Supported Django versions affected by the file-write flaw*

| Affected versions | First fixed release |
| --- | --- |
| 6.1 before 6.1.4 | 6.1.4[^5] |
| 6.0 before 6.0.11 | 6.0.11[^5] |
| 5.2 before 5.2.20 | 5.2.20[^5] |

Django also patched its main development branch. The Django Software Foundation, which maintains the toolkit, says it did not evaluate older unsupported lines such as 5.1, 5.0 and 4.2, which may also be affected.[^2][^3][^5]

## What the earlier fixes missed

The August 2026 fix addressed CVE-2026-15307, a flaw in how GeoDjango read map grids during searches. It could let an attacker write files on the server and potentially run code. The October 2026 fix addressed CVE-2026-87890, which the August update had missed. [The Hacker News](https://thehackernews.com/2026/12/new-django4shell-vulnerability-enables.html) reported that the flaw could make the server send an unintended request when map data submitted for a search referred to a grid stored elsewhere. The outlet also noted that neither fix covered data supplied directly to RasterField.[^1]

Django credited Mohamed K. Fathy, head of cybersecurity at Robusta Technology Group, with reporting the flaw. He called it Django4shell. Django rates it high under its security policy. As of 2 December, the security tracker vulnerable.now said none of the organizations it monitors had reported real-world exploitation.[^2][^1][^5]

*Published scores for the file-write flaw on a 10-point security severity scale*

| Who assigned or published the score | Score |
| --- | --- |
| Django Software Foundation, using version 4.0 of the Common Vulnerability Scoring System | 8.7[^5] |
| The Hacker News | 9[^1] |

## What the releases fix

*Django’s fixes, by public vulnerability ID and severity under its security policy*

| Vulnerability ID | What the flaw could allow | Django rating |
| --- | --- | --- |
| CVE-2026-124827 | Unintended file writes through RasterField and, in some setups, unauthorized code execution. | High[^2] |
| CVE-2026-132092 | Potential injection of unauthorized commands into database queries. | High[^2] |
| CVE-2026-115868 | Potential execution of unwanted scripts in a visitor’s browser when a page displays shortened text. | Moderate[^2] |
| CVE-2026-125673 | A site could serve a stored response at the wrong web address in some setups. | Low[^2] |
| CVE-2026-119642 | Staff with view access could uncover data through an alternate name for a record’s identifier. | Low[^2] |
| CVE-2026-127929 | Staff with view access could uncover data through links between records. | Low[^2] |
| CVE-2026-132809 | Very large map shapes could overrun reserved memory and crash the application or cause unpredictable behavior. | Low[^2] |

## What operators should do after upgrading

Django urges users to upgrade as soon as possible. The update makes RasterField non-editable by default, so forms generated from a data model leave it out unless developers explicitly include it. If a definition selects a non-default format handler, Django now rejects it when passed as a dictionary (a set of named values) or as JSON (a text format for structured data). For other handlers, Django documents GDALRaster, a representation for grid-based map data, as the way to pass a definition the application has already verified and trusts.[^2]

The file-write fix does not stop untrusted raster data from making the server send unintended requests. Django advises checking that data before accepting it. It also advises clearing any potentially affected caches after upgrading. These are the stores where sites keep responses for reuse, and Django recommends clearing them because the update does not remove previously stored responses.[^2]

## References

- [Django](https://www.avenews.am/en/references/django-q842014): The open-source toolkit for building websites in Python has released updates that fix seven security flaws.
- [Geospatial Data Abstraction Library](https://www.avenews.am/en/references/geospatial-data-abstraction-library-q580605): The software library that reads and writes geographic data could be made to write files on a vulnerable server.
- [Django Software Foundation](https://www.avenews.am/en/references/django-software-foundation-q5285237): The organization that maintains Django assigned the file-write flaw a severity score of 8.7.

## Sources

[^1]: [New Django4Shell Vulnerability Enables Django RCE via GeoDjango Form Validation](https://thehackernews.com/2026/12/new-django4shell-vulnerability-enables.html), The Hacker News, 2 December 2026
[^2]: [Django security releases issued: 6.1.4, 6.0.11, and 5.2.20 \| Weblog \| Django](https://djangoproject.com/weblog/2026/dec/02/security-releases), djangoproject.com
[^3]: [Django (web framework)](https://grokipedia.com/page/Django_(web_framework)), grokipedia.com
[^4]: [GDAL](https://grokipedia.com/page/GDAL), grokipedia.com
[^5]: [CVE-2026-124827: Server-side file-write via RasterField assignment \| vulnerable.now](https://vulnerable.now/CVE-2026-124827), vulnerable.now
