{"answers":{"affected":"","exploited":"There is no known exploitation of CVE-2026-124827 in the wild and no public exploit code.","exposure":"An affected version is only exploitable if your software calls django.contrib.gis.db.models.RasterField. Many projects that include it are not exposed.","fix":"Upgrade djangoproject Django to the fixed version for your release line. The advisory names 6.1.4, 6.0, 6.0.11 and 5.2.","what":"CVE-2026-124827 is a high-severity path traversal vulnerability in djangoproject Django, published on 2 Dec 2026. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-124827 and fix it if it is affected.\n\nWhat it is: CVE-2026-124827 is a high-severity path traversal vulnerability in djangoproject Django, published on 2 Dec 2026. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2026-124827 in the wild and no public exploit code.\nExposure: An affected version is only exploitable if your software calls django.contrib.gis.db.models.RasterField. Many projects that include it are not exposed.\n\nAffected product: djangoproject Django. No package-level version data is available, so check the vendor advisory linked from the reference page.\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n   If an affected version is present, also search the code for calls to django.contrib.gis.db.models.RasterField and report whether any exist.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-124827/ (Markdown: https://insights.sbomify.com/CVE-2026-124827/index.md)","id":"CVE-2026-124827","markdown":"https://insights.sbomify.com/CVE-2026-124827/index.md","name":"CVE-2026-124827","record":{"aliases":["ALPINE-CVE-2026-124827","DEBIAN-CVE-2026-124827","GHSA-fh3p-824r-m74q","UBUNTU-CVE-2026-124827"],"analysis":{"component_type":"library","exploitable_when_present":false,"fix_type":"upgrade","impacts":["data_modify","code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Python web framework","requires_auth":"low_privilege","requires_specific_call":true,"summary":"Attackers can write files at arbitrary locations via the name parameter of Django's RasterField, possibly achieving remote code execution; Django sites using GIS should care.","user_interaction":"not_required","vuln_class":"path_traversal","vulnerable_functions":["django.contrib.gis.db.models.RasterField"]},"analysis_generated_by":"sbomify/insights-2b-fp8","assigner":"DSF","component":null,"cpe":[],"cvss":{"score":8.7,"severity":"high","source":"cna","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","version":"4.0"},"cwes":[{"id":"CWE-73","name":"External Control of File Name or Path"}],"description":"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.\n`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.\nEarlier, unsupported Django series (such as 5.1.x, 5.0.x, and 4.2.x) were not evaluated and may also be affected.\nDjango would like to thank Mohammed Fathy for reporting this issue.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":"2026-12-02","github_poc":7,"max_poc_stars":25,"metasploit":0,"nuclei":0,"refs":[{"date":"2026-12-02T15:52:12Z","kind":"github_poc","ref":"https://github.com/joshuavanderpoll/CVE-2026-124827","stars":25,"title":"CVE-2026-124827 (Django4Shell): Arbitrary file write to RCE via GeoDjango RasterField. PoC exploit, Nmap NSE, Nuclei template, Docker lab."},{"date":"2026-12-02T19:55:49Z","kind":"github_poc","ref":"https://github.com/linoMlv/CVE-2026-124827-PoC-and-Lab","stars":1,"title":"Django4Shell CVE-2026-124827 teaching lab and PoC exploit"},{"date":"2026-12-03T06:28:50Z","kind":"github_poc","ref":"https://github.com/kaizensecurity/CVE-2026-124827","stars":1,"title":"Django4Shell  PoC"},{"date":"2026-12-03T08:15:07Z","kind":"github_poc","ref":"https://github.com/Christbowel/CVE-2026-124827-POC","stars":1,"title":"CVE-2026-124827 (Django4Shell) PoC: Django GeoDjango RasterField arbitrary file write to RCE via GDAL"},{"date":"2026-12-02T22:08:38Z","kind":"github_poc","ref":"https://github.com/achrafzaryouh/CVE-2026-124827","stars":0,"title":"CVE-2026-124827"},{"date":"2026-12-03T08:26:45Z","kind":"github_poc","ref":"https://github.com/Luscious8/Django4shell","stars":0,"title":"Django4Shell (CVE-2026-124827) is a critical vulnerability in GeoDjango’s RasterField that allows authenticated attackers to exploit form validation to write arbitrary files to the server and achieve remote code execution."},{"date":"2026-12-03T12:30:06Z","kind":"github_poc","ref":"https://github.com/flexEST/django4shell-checker","stars":0,"title":"An offline Python tool that checks whether your Django version is affected by Django4Shell (CVE-2026-124827) and optionally flags RasterField references in your source code for review. No third-party dependencies required."}],"tier":"poc_unverified"},"has_fix":true,"headline":"Server-side file-write via RasterField assignment","id":"CVE-2026-124827","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"path_traversal","year":"2026"},"main_cpe":null,"main_fixed":[],"main_package":null,"n_packages":0,"n_references":7,"n_vendor_status":0,"next":{"headline":"Multiple Vulnerabilities in GlobalEduca's Job Portal","id":"CVE-2026-124828"},"nickname":null,"packages":[],"prev":{"headline":"389-ds-base: 389-ds-base: integer truncation in content synchronization plugin causes denial of service","id":"CVE-2026-124825"},"products":["Django"],"published":"2026-12-02","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","text_fixes":["6.1.4","6.0","6.0.11","5.2"],"updated":"2026-12-03","vendor_status":[],"vendors":["djangoproject"]},"summary":"Attackers can write files at arbitrary locations via the name parameter of Django's RasterField, possibly achieving remote code execution; Django sites using GIS should care.","url":"https://insights.sbomify.com/CVE-2026-124827/"}