Server-side file-write via RasterField assignment
- Exploited
- Public exploit code, no confirmed attacks
- Fix
- Fixed in 6.1.4, 6.0.11, 5.2.20
- Who is exposed
- Not reported
Summary
An issue was discovered in Django 6.1 before 6.1.4, 6.0 before 6.0.11, and 5.2 before 5.2.20. django.contrib.gis.db.models.RasterField allows the creation of files at attacker-controlled locations via the name parameter of a data definition. Depending on the raster driver, this could enable remote code execution. Earlier, unsupported Django series (such as 5.1.x, 5.0.x, and 4.2.x) were not evaluated and may also be affected. Django would like to thank Mohammed Fathy for reporting this issue.
What to do
Upgrade to a fixed version: 6.1.4, 6.0.11, 5.2.20.
Check your systems with an agent
Paste this into a coding or ops agent. It checks your systems read-only and reports a table per asset.
Check whether my systems are affected by CVE-2026-124827 (Server-side file-write via RasterField assignment), using the cve.now data below.
Rules: work read-only. Do not run exploit code, proof-of-concept scripts or scanners that send attack payloads, and do not change any configuration, package, image or deployment. Report findings only.
What cve.now has for CVE-2026-124827 (entry last updated 2026-12-02):
Affected:
- PyPI package django: from 6.1, fixed in 6.1.4; from 6.0, fixed in 6.0.11; from 5.2, fixed in 5.2.20
Fixed versions: 6.1.4, 6.0.11, 5.2.20.
Setup: unknown whether the bug needs a non-default feature or setting. Check the advisory.
CISA KEV: CVE-2026-124827 is not listed as of cve.now's last read.
This KEV status is for CVE-2026-124827 only. If you also check another CVE, look up its own KEV status; never assume it from this one.
How to check:
- Packages (PyPI): find every lockfile in each project and run the stack.check operation of the cve.now MCP server (execute) on each one. Compare the resolved versions, not the ranges a manifest declares, with the affected versions above. Include transitive dependencies.
Verify against the linked advisories before concluding, and cite the date you read each one:
- https://docs.djangoproject.com/en/dev/releases/security/
- https://www.djangoproject.com/weblog/2026/dec/02/security-releases/
- https://github.com/django/django/commit/a3934abd4c0d43430efec34d6ae933794df2c2f5
- https://github.com/django/django/commit/b70d098878ae1a65fa2377be776610500ff44336
- https://github.com/django/django/commit/6b5d29eae050ac7cf72cc5a407d2094ad8e83789
- https://github.com/django/django/commit/02d09443c441ffc8064206dc4a8bdc6496fa49b0
- https://groups.google.com/g/django-announce
Do not conclude an asset is unaffected unless you checked it and the evidence covers both its version and the conditions above. If you could not check something, mark it unknown and say what is missing.
Report a table with one row per asset and these columns: Asset | Version or build | Status (affected, fixed, not applicable, unknown) | Compensating controls | Exposure (internet-facing, internal, none) | Evidence | Next action.
Entry: https://cve.now/CVE-2026-124827
For follow-up questions, use the cve.now MCP server at https://mcp.cve.now/mcp (no authentication), for example execute with name cve.get and arguments {"id": "CVE-2026-124827"}.Affected versions
cve.now Index
- Exploitation22/40Public exploit on Exploit-DB or GitHub
- Exposure3/25Reachable over the network · Unknown: No advisory context yet
- Reach20/20django: 12M downloads a week
- Severity9.8/10CVSS 8.8, total technical impact per CISA
- No patch0/5No signal
What would change the score
- Would score about 88 if added to CISA KEV
- Would score about 83 if CISA's SSVC rates exploitation active
- Would score about 74 if advisories confirm default setups are exposed
Impact
- Widely useddjango has 12m weekly downloads. pypistats.org12.2k packages depend on django. deps.dev
Timeline
- CVE published
- First seen by cve.now
- Posted on X by cve.now
- CISA SSVC assessment
Exploitation: none · Automatable: no · Technical impact: total
- Record last updated
- Exploit code on GitHub
joshuavanderpoll/CVE-2026-124827, linoMlv/CVE-2026-124827-PoC-and-Lab
Evidence 11
| Kind | Source |
|---|---|
| Vendor advisory 2Establishes: Affected and fixed versions. | |
| Advisory | docs.djangoproject.com · en/dev/releases/security |
| Advisory | djangoproject.com · weblog/2026/dec/02/security-releases |
| CVE record 2Establishes: The identifier and description. | |
| Record | CVE List · CVE-2026-124827 |
| Record | NVD · CVE-2026-124827 |
| Public exploit code 2Establishes: Public exploit code exists (Exploit-DB, Metasploit, Nuclei and GitHub). | |
| Exploit | GitHub · joshuavanderpoll/CVE-2026-124827 · Repository |
| Exploit | GitHub · linoMlv/CVE-2026-124827-PoC-and-Lab · Repository |
| Other links 5 | |
| Patch | GitHub · django/django · Commit a3934abd |
| Patch | GitHub · django/django · Commit b70d0988 |
| Patch | GitHub · django/django · Commit 6b5d29ea |
| Patch | GitHub · django/django · Commit 02d09443 |
| Link | groups.google.com · g/django-announce |
Questions about CVE-2026-124827
Is CVE-2026-124827 being exploited?
It is not in CISA's Known Exploited Vulnerabilities catalog, and CISA's SSVC assessment does not mark exploitation as active. That does not mean it has not been attacked: vendors and researchers can report attacks before CISA lists them. Public exploit code exists (a proof of concept on GitHub).
Source: cve.now feed data
Which versions are affected by CVE-2026-124827?
django (PyPI): from 6.1 before 6.1.4; from 6.0 before 6.0.11; from 5.2 before 5.2.20.
Source: cve.now feed data
How do I fix CVE-2026-124827?
Upgrade to a fixed version: 6.1.4, 6.0.11, 5.2.20.
Source: cve.now feed data
Related
- CVE-2026-132092Potential SQL injection in range and in lookups
- CVE-2026-15307Server-side file-write and request forgery via spatial lookups
- CVE-2026-115868Potential cross-site scripting vulnerability in truncatechars_html
- CVE-2026-53878Header injection possibility since DomainNameValidator accepted newlines in input
- CVE-2026-132809Heap buffer overflow in OGRGeometry.wkb
- CVE-2026-114582Server-side request forgery via SpatialReference string input
No corrections so far. Something wrong on this page? Report an error.