{
  "id": "CVE-2026-124827",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-124827",
  "published_at": "2026-12-02T13:20:46.557Z",
  "title": "Server-side file-write via RasterField assignment",
  "vendor": "djangoproject",
  "product": "Django",
  "cvss": {
    "score": 8.8,
    "source": "cna",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": {
    "created_at": "2026-12-02T15:52:12Z",
    "first_seen_at": "2026-12-02T16:22:18.362Z",
    "days_after_publication": 0.1,
    "repo": "joshuavanderpoll/CVE-2026-124827",
    "source": "github"
  },
  "poc_repo_count": 1,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "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.",
  "cwe": "CWE-73",
  "cvss_by_source": {
    "cna": 8.8
  },
  "repos": [
    {
      "repo": "joshuavanderpoll/CVE-2026-124827",
      "url": "https://github.com/joshuavanderpoll/CVE-2026-124827",
      "created_at": "2026-12-02T15:52:12Z",
      "first_seen_at": "2026-12-02T16:22:18.362Z",
      "stars": 1,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 30,
      "suspicious": false,
      "suspicion_reasons": [
        "README gives an archive password"
      ],
      "status": "analyzed",
      "owner_created_at": "2016-01-02T12:19:19Z"
    }
  ],
  "remediation": {
    "affected": [
      {
        "vendor": "djangoproject",
        "product": "Django",
        "ranges": [
          "\u003e= 6.1, \u003c 6.1.4",
          "\u003e= 6.0, \u003c 6.0.11",
          "\u003e= 5.2, \u003c 5.2.20"
        ],
        "fixed_in": [
          "6.1.4",
          "6.0.11",
          "5.2.20"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Django to 6.1.4 or 6.0.11 or 5.2.20 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://docs.djangoproject.com/en/dev/releases/security/"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/django/django/commit/a3934abd4c0d43430efec34d6ae933794df2c2f5"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/django/django/commit/b70d098878ae1a65fa2377be776610500ff44336"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/django/django/commit/6b5d29eae050ac7cf72cc5a407d2094ad8e83789"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/django/django/commit/02d09443c441ffc8064206dc4a8bdc6496fa49b0"
      },
      {
        "kind": "Vendor advisory",
        "url": "https://www.djangoproject.com/weblog/2026/dec/02/security-releases/"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [
    {
      "method": "GET",
      "path_template": "/{var}/login/",
      "ports": [
        8000
      ],
      "protocol": "https",
      "repos": [
        "joshuavanderpoll/CVE-2026-124827"
      ],
      "repo_count": 1,
      "confidence": 0.85,
      "evidence": [
        "joshuavanderpoll/CVE-2026-124827/CVE-2026-124827.min.py:30",
        "joshuavanderpoll/CVE-2026-124827/CVE-2026-124827.py:147",
        "joshuavanderpoll/CVE-2026-124827/nuclei/CVE-2026-124827.yaml:43"
      ]
    },
    {
      "method": "GET",
      "path_template": "/{var}/{var}/{var}/add/",
      "headers": [
        {
          "name": "Cookie",
          "value": "csrftoken={var}; sessionid={var}"
        }
      ],
      "ports": [
        8000
      ],
      "protocol": "https",
      "repos": [
        "joshuavanderpoll/CVE-2026-124827"
      ],
      "repo_count": 1,
      "confidence": 0.85,
      "evidence": [
        "joshuavanderpoll/CVE-2026-124827/CVE-2026-124827.min.py:41",
        "joshuavanderpoll/CVE-2026-124827/CVE-2026-124827.py:251",
        "joshuavanderpoll/CVE-2026-124827/nuclei/CVE-2026-124827.yaml:56"
      ]
    },
    {
      "method": "POST",
      "path_template": "/{var}/login/",
      "headers": [
        {
          "name": "Cookie",
          "value": "csrftoken={var}"
        },
        {
          "name": "Referer",
          "value": "{var}/{var}/login/"
        }
      ],
      "body_markers": [
        "csrfmiddlewaretoken=",
        "username=staff",
        "password=staffpass",
        "next=/",
        "username=",
        "password="
      ],
      "content_type": "application/x-www-form-urlencoded",
      "ports": [
        8000
      ],
      "protocol": "https",
      "repos": [
        "joshuavanderpoll/CVE-2026-124827"
      ],
      "repo_count": 1,
      "confidence": 0.85,
      "evidence": [
        "joshuavanderpoll/CVE-2026-124827/CVE-2026-124827.min.py:32",
        "joshuavanderpoll/CVE-2026-124827/CVE-2026-124827.py:166",
        "joshuavanderpoll/CVE-2026-124827/nuclei/CVE-2026-124827.yaml:47"
      ]
    },
    {
      "method": "POST",
      "path_template": "/{var}/{var}/{var}/add/",
      "headers": [
        {
          "name": "Referer",
          "value": "{var}/{var}/{var}/{var}/add/"
        }
      ],
      "body_markers": [
        "csrfmiddlewaretoken=",
        "name=poc",
        "field_name=",
        "name=poc-test"
      ],
      "content_type": "application/x-www-form-urlencoded",
      "ports": [
        8000
      ],
      "protocol": "https",
      "repos": [
        "joshuavanderpoll/CVE-2026-124827"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "joshuavanderpoll/CVE-2026-124827/CVE-2026-124827.min.py:56",
        "joshuavanderpoll/CVE-2026-124827/CVE-2026-124827.py:328"
      ]
    }
  ],
  "rules": []
}
