Back to the blog

Django: Public PoC for a code execution vulnerability

A proof of concept for CVE-2026-124827, a vulnerability in Django’s RasterField component, is publicly available. Exploitation requires limited privileges and may allow files to be created at arbitrary paths.

Analysis

CVE-2026-124827 concerns the handling of the name parameter in data definitions assigned to RasterField in Django’s django.contrib.gis module. A proof of concept is publicly available. The flaw is classified as improper external control of a file name or path and has a CVSS v4.0 score of 8.7.

Affected software and versions

SoftwareAffected versionsRelated CVEs
djangoproject Django>= 6.1; < 6.1.4CVE-2026-124827, CVE-2026-132092
djangoproject Django>= 6.0; < 6.0.11CVE-2026-124827, CVE-2026-132092
djangoproject Django>= 5.2; < 5.2.20CVE-2026-124827, CVE-2026-132092