Vulnérabilité dans Django (CVE-2026-15307)
Résumé
Vulnérabilité dans Django (CVE-2026-15307). L'exploitation peut entraîner la prise de contrôle totale du système. Exploitable via django.contrib.gis.gdal.GDALRaster. Atténuation : mise à jour vers 6.0.8 ou plus.
Description d'origine
La description telle que publiée par la source (souvent en anglais).
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.
Source: GitHub Security Advisories (Global) NVD GitHub Advisory
Résumé généré automatiquement
Assemblé par SecPulse à partir des données sources (CVSS, CWE, versions affectées) à l'aide de modèles, sans IA. Vérifiez la description d'origine et les références ci-dessous.
Une vulnérabilité référencée CVE-2026-15307 a été découverte dans Django.
Des attaquants peuvent cibler un point d'entrée spécifique comme django.contrib.gis.gdal.GDALRaster à distance pour détourner le produit.
L'exploitation peut entraîner la prise de contrôle totale du système. Score CVSS : 8.8/10.
Action : mettez à jour Django vers 6.0.8 ou supérieur.
En cas de doute, contactez votre service informatique ou cherchez « Django CVE-2026-15307 » sur le site de l'éditeur.
CVE-2026-15307 (Django) — CWE-73 / CVSS v3 8.8
Vecteur d'attaque : distant (réseau) / sans interaction utilisateur
Surface d'attaque : django.contrib.gis.gdal.GDALRaster / GeometryField / RasterField / dict
Correctif : 6.0.8 — appliquer immédiatement
Plan : 1) Audit SBOM, 2) Mise à jour staging→prod, 3) Surveillance WAF/proxy sur les endpoints affectés, 4) Recherche d'IOC dans les logs.
Réfs : voir GHSA / avis éditeur / version corrigée liés sur cette page.
Une vulnérabilité (CWE-73) affecte Django. Les attaquants atteignent le code vulnérable via django.contrib.gis.gdal.GDALRaster.
Consultez l'avis de l'éditeur pour les versions affectées de Django. Surface d'attaque : django.contrib.gis.gdal.GDALRaster / GeometryField / RasterField / dict.
Gravité : Élevée (CVSS 8.8/10). L'exploitation peut entraîner la prise de contrôle totale du système.
Mettre à jour vers 6.0.8.
En attendant le correctif : désactivez la fonctionnalité concernée, appliquez des règles WAF, ou restreignez l'accès par ACL réseau.
Recherchez dans les logs des requêtes correspondant aux IOC connus de cette CVE. Auditez les SBOM/dépendances.
Actions de réponse
Étapes concrètes et exemples de commandes que les équipes SOC/SRE doivent exécuter dans l'ordre
-
1Identify exposure identify
grep -r 'Django' . | grep -v node_modulesリポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で
Djangoを grep し、稼働しているサービス・バージョンを把握する。 -
2Apply patch patch
Upgrade Django to 6.0.8ステージング環境で 6.0.8 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスを含めること。
-
3Post-deployment verification verify
Confirm patched version is live in productionパッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番ではアクセスログ・WAF でアラート再発が無いか継続監視。
Paquets affectés
État des correctifs par distribution
Paquets corrigés publiés par chaque distribution pour cette CVE
- Debian DEBIAN-CVE-2026-15307 python-django
- Ubuntu UBUNTU-CVE-2026-15307 python-django
Références
- advisory nvd.nist.gov
- advisory github.com
- advisory docs.djangoproject.com
- advisory djangoproject.com
- package github.com
- package pypi.org
- web github.com
- web github.com
- web github.com
- web github.com
- web docs.djangoproject.com
- web groups.google.com
- web djangoproject.com