概要
ログインした低権限の利用者に、任意の場所へファイルを作られるおそれ。
元の説明(英語)を読む
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.
影響を受ける人
Django の GIS 機能(RasterField)を使う開発者
対策
- Django を 6.1.4、6.0.11、5.2.20 のいずれか該当する版以降に更新する
国内の動き
海外の動き
PoC
リンクだけを載せる。中身は確かめていない。
偽物やマルウェア入りが混じる(GitHub の PoC の 1.9〜10.3% に悪意の兆候があったという研究がある)。動かすのは、自分の検証用の環境で、中身を読んでからにする。他人のシステムに向けない。
kaizensecurity/CVE-2026-124827↗★ 2 · 12/3 作成 · 攻撃コードらしいDjango4Shell PoCChristbowel/CVE-2026-124827-POC↗★ 2 · 12/3 作成 · 攻撃コードらしいCVE-2026-124827 (Django4Shell) PoC: Django GeoDjango RasterField arbitrary file write to RCE via GDALachrafzaryouh/CVE-2026-124827↗★ 0 · 12/2 作成 · 攻撃コードらしいCVE-2026-124827Luscious8/Django4shell↗★ 0 · 12/3 作成 · 攻撃コードらしい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 joshuavanderpoll/CVE-2026-124827↗★ 32 · 12/2 作成 · その他CVE-2026-124827 (Django4Shell): Arbitrary file write to RCE via GeoDjango RasterField. PoC exploit, Nmap NSE, Nuclei template, Docker lab.linoMlv/CVE-2026-124827-PoC-and-Lab↗★ 1 · 12/2 作成 · その他Django4Shell CVE-2026-124827 teaching lab and PoC exploitflexEST/django4shell-checker↗★ 0 · 12/3 作成 · その他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
経過
2026年12月2日・一次情報
脆弱性が公開された
2026年12月2日・PoC
GitHub に PoC が出た(未検証)(Bluesky で元の投稿に返信)
2026年12月3日・国内
Security NEXT が報道
2026年12月3日・優先度
優先度を「至急」に上げた
影響する版
djangoproject Django6.1.4 未満が対象(6.1.4 で修正)・6.0.11 未満が対象(6.0.11 で修正)・5.2.20 未満が対象(5.2.20 で修正)