Check if your application uses Django's django.contrib.gis.db.models.RasterField (GeoDjango raster support) — if you don't use GeoDjango, you are not affected.
Confirm which Django series you run (6.1.x, 6.0.x, or 5.2.x) and check your exact version number.
Upgrade to the fixed version for your series: 6.1.4, 6.0.11, or 5.2.20.
Restrict which accounts can submit raster data definitions until the upgrade is complete.
After upgrading, review your server for any unexpected files written by the application.
pip install --upgrade django==6.1.4 # or django==6.0.11 / django==5.2.20 depending on your series
Sourced from public security reporting — each date is when it was published, not when it happened.
What it is
From the CVE record
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.
In plain language
Written by AI from the record
A flaw in Django (a popular website-building framework) could let a logged-in user with some access write files to places they shouldn't on the server, and in some setups that could let them run commands — if your site uses Django's geographic/mapping features, you should update soon, but there's no sign attackers are using this yet.
Path traversal (CWE-73) in Django's GeoDjango RasterField lets a low-privileged authenticated user supply an attacker-controlled file name during raster data definition, writing files to arbitrary server locations and, depending on the configured raster driver, achieving remote code execution.
If you're affected
Server file system compromise
Possible remote code execution
Data integrity loss
Operational disruption if exploited
What is it
Django is a toolkit many websites are built on, and one of its optional features lets sites store geographic map data (rasters). This bug is like a mail-sorting room where a clerk is supposed to only drop packages in labeled bins, but a trusted-but-limited employee can trick the system into dropping a package anywhere in the building — including places that could cause real damage. It only matters to you if your site uses this mapping feature.
Who is affected
This matters to you if your website or application is built on Django and specifically uses the GeoDjango raster field feature (django.contrib.gis.db.models.RasterField) to handle geographic/map data. If you don't use GeoDjango or rasters at all, this vulnerability doesn't apply to you. Even where it does apply, exploitation requires an attacker to already have some level of authenticated access to your application.
How urgent is it
There is no evidence this is being exploited right now — it isn't on any confirmed-exploitation list and no public exploit code exists yet, but a fix is already available and the potential impact (server file writes, possibly remote code execution) is serious. Because it requires an attacker to already have some account access and only affects sites using the raster feature, this is a 'patch on your normal update schedule, don't drop everything' situation rather than an emergency — but don't let it linger either.
What to do — in detail
Confirm exposure by checking whether your codebase imports or configures django.contrib.gis.db.models.RasterField and whether GeoDjango raster support is enabled in any models. If not in use, no action beyond normal patching cadence is needed. If in use, identify your Django minor series and upgrade to the fixed release: 6.1.4 (for 6.1.x), 6.0.11 (for 6.0.x), or 5.2.20 (for 5.2.x LTS). Review the linked upstream commits for the exact code change if you need to backport or verify a vendored/forked Django. Note that earlier unsupported series (5.1.x, 5.0.x, 4.2.x) were not evaluated by the Django team and may also be vulnerable — if you're running one of these, prioritize migrating to a supported, patched series. As a temporary mitigation if you cannot upgrade immediately, restrict raster-data-definition endpoints to trusted/administrative accounts only and validate/sanitize any user-supplied name parameters at the application layer before they reach RasterField. Monitor for unexpected file creation in directories writable by the Django process, particularly around raster import/export operations, and watch the Django security mailing list and NVD for any update to exploitation status or KEV listing.
Technical context
CVSS 3.1 score 8.8 (High) with vector AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H — network-exploitable, low complexity, requires low privileges, no user interaction, with high impact to confidentiality, integrity, and availability. Weakness class is CWE-73 (External Control of File Name or Path). The vulnerability is not in CISA's Known Exploited Vulnerabilities catalog, and no public proof-of-concept or exploit code has been reported. Press attention is limited to patch-announcement coverage, not exploitation reports. Fixes are released for Django 6.1.4, 6.0.11, and 5.2.20; unsupported branches (5.1.x, 5.0.x, 4.2.x) were not audited and should be treated as potentially vulnerable. Exploit maturity should be considered low/theoretical at this time, pending any change in exploitation evidence.
This is a general assessment based on public vulnerability data. It does not account for your specific infrastructure — when in doubt, consult a security specialist.