WR 株式会社WR 松戸のホームページ制作・社内システム・IT相談

株式会社WR

千葉県松戸市
松戸・柏・市川・流山・船橋 対応

ホーム›脆弱性情報›Django›CVE-2026-15307

重要 CVSS 8.7 Django CVE-2026-15307 公表 2026年8月4日

Djangoにファイル書き込みの脆弱性

Django — CVE-2026-15307

自分のサイトが該当するか無料診断 → 原文を見る(NVD(米国 脆弱性データベース))↗

どんな問題か

DjangoのGeoDjango機能で、入力された内容を安全に扱えない問題があります。スタッフが管理画面で入れた値でも、想定外のファイル作成や外部通信につながることがあります。

放置するとどうなるか

ファイルを勝手に置かれ、あとで読み込まれると不正実行につながるおそれがあります。データ改ざんや乗っ取りの危険があります。

今すぐやること

Django 5.2は5.2.17以上、6.0は6.0.8以上へ更新してください。古い5.1.x、5.0.x、4.2.xを使っている場合は、提供元の案内を確認して早急に対応してください。

自分のサイトが該当するかの確認手順

  1. お使いのサーバー・プログラムに Django が使われているか、制作会社・保守会社・サーバー会社に確認します(管理画面やサーバーのバージョン表示でも分かります)。
  2. バージョンが「5.2 before 5.2.17 and 6.0 before 6.0.8」に当てはまるか確認します。
  3. 当てはまる場合は、修正版へのアップデートを依頼します。レンタルサーバーの場合はサーバー会社側で対応済みのこともあるので、お知らせを確認してください。
原文(英語)を表示
An issue was discovered in Django 5.2 before 5.2.17 and 6.0 before 6.0.8. GeoDjango spatial lookups optimistically parse the right-hand-side value as a raster by passing it to the `django.contrib.gis.gdal.GDALRaster` constructor. Any value used in a spatial lookup against a `GeometryField` or `RasterField` reaches this constructor, including untrusted input, for example a spatial-field filter submitted through the Django admin changelist query string by a staff user with view permission. A `dict`, or a `str` holding its JSON representation, is opened in write mode regardless of the constructor's `write=False` default, allowing a file with an attacker-chosen name and contents to be written through a file-backed GDAL driver. Any other `str` is treated as a datasource, allowing an outbound network request through a GDAL virtual filesystem handler. Writing a file to a location later imported by the application can result in 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 Bence Nagy, localhost-detect, and kimchunbok_ for reporting this issue.

※ 解説は NVD(米国 脆弱性データベース) の公表内容をもとにAIが生成しています。対象バージョン・修正版などの正確な情報は、必ず原文をご確認ください。

無料で相談する →