{
  "id": "CVE-2025-57833",
  "url": "https://poc.griffinguard.io/cve/CVE-2025-57833",
  "published_at": "2025-09-03T00:00:00Z",
  "vendor": "djangoproject",
  "product": "Django",
  "cvss": {
    "score": 8.1,
    "source": "nvd",
    "vector": "CVSS:3.1/AV:N/AC:H/PR:N/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": "2025-09-05T05:03:29Z",
    "first_seen_at": "2026-11-14T11:25:11.578Z",
    "days_after_publication": 2.2,
    "repo": "Mkway/CVE-2025-57833",
    "source": "github"
  },
  "poc_repo_count": 4,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "An issue was discovered in Django 4.2 before 4.2.24, 5.1 before 5.1.12, and 5.2 before 5.2.6. FilteredRelation is subject to SQL injection in column aliases, using a suitably crafted dictionary, with dictionary expansion, as the **kwargs passed QuerySet.annotate() or QuerySet.alias().",
  "cwe": "CWE-89",
  "cpes": [
    "cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 7.1,
    "nvd": 8.1
  },
  "repos": [
    {
      "repo": "Mkway/CVE-2025-57833",
      "url": "https://github.com/Mkway/CVE-2025-57833",
      "created_at": "2025-09-05T05:03:29Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 2,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2017-12-08T06:09:56Z"
    },
    {
      "repo": "loic-houchi/Django-faille-CVE-2025-57833_test",
      "url": "https://github.com/loic-houchi/Django-faille-CVE-2025-57833_test",
      "created_at": "2025-09-09T12:08:05Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 2,
      "is_poc": "fake",
      "kind": "fake",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2025-01-10T08:11:32Z"
    },
    {
      "repo": "ianoboyle/CVE-2025-57833",
      "url": "https://github.com/ianoboyle/CVE-2025-57833",
      "created_at": "2025-10-08T21:18:38Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 1,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2017-01-27T20:08:04Z"
    },
    {
      "repo": "sw0rd1ight/CVE-2025-57833",
      "url": "https://github.com/sw0rd1ight/CVE-2025-57833",
      "created_at": "2025-11-02T09:08:46Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 6,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2018-11-06T13:29:42Z"
    },
    {
      "repo": "Gayang2902/CVE-2025-57833",
      "url": "https://github.com/Gayang2902/CVE-2025-57833",
      "created_at": "2025-11-27T10:12:57Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 1,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2020-09-06T19:37:13Z"
    }
  ],
  "remediation": {
    "affected": [
      {
        "vendor": "djangoproject",
        "product": "Django",
        "ranges": [
          "\u003e= 4.2, \u003c 4.2.24",
          "\u003e= 5.1, \u003c 5.1.12",
          "\u003e= 5.2, \u003c 5.2.6"
        ],
        "fixed_in": [
          "4.2.24",
          "5.1.12",
          "5.2.6"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Django to 4.2.24 or 5.1.12 or 5.2.6 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [
    {
      "method": "POST",
      "path_template": "/api/search",
      "body_markers": [
        "\"search_field\""
      ],
      "content_type": "application/json",
      "ports": [
        8000
      ],
      "protocol": "http",
      "repos": [
        "Mkway/CVE-2025-57833"
      ],
      "repo_count": 1,
      "confidence": 0.85,
      "evidence": [
        "Mkway/CVE-2025-57833/CVE-2025-57833.md:86",
        "Mkway/CVE-2025-57833/CVE-2025-57833.md:96",
        "Mkway/CVE-2025-57833/CVE-2025-57833.md:106"
      ]
    },
    {
      "method": "POST",
      "path_template": "/book/search",
      "body_markers": [
        "\"alias\":\"XXX\"",
        "\"author\":\"Bob\"",
        "\"alias\":\"XXX;select user --\"",
        "\"alias\":\" using(id);select user --\""
      ],
      "content_type": "application/json",
      "ports": [
        8085
      ],
      "protocol": "http",
      "repos": [
        "sw0rd1ight/CVE-2025-57833"
      ],
      "repo_count": 1,
      "confidence": 0.85,
      "evidence": [
        "sw0rd1ight/CVE-2025-57833/README.md:66",
        "sw0rd1ight/CVE-2025-57833/README.md:86",
        "sw0rd1ight/CVE-2025-57833/README.md:98"
      ]
    },
    {
      "method": "GET",
      "path_template": "/api/debug/",
      "ports": [
        8000
      ],
      "protocol": "http",
      "repos": [
        "Mkway/CVE-2025-57833"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "Mkway/CVE-2025-57833/document/README.md:512",
        "Mkway/CVE-2025-57833/local_attacks/exploit.py:19"
      ]
    },
    {
      "method": "GET",
      "path_template": "/vuln/",
      "query_markers": [
        "param=malicious_input"
      ],
      "ports": [
        8000
      ],
      "protocol": "http",
      "repos": [
        "ianoboyle/CVE-2025-57833"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "ianoboyle/CVE-2025-57833/exploit.sh:1"
      ]
    },
    {
      "method": "POST",
      "path_template": "/api/safe-search/",
      "content_type": "application/json",
      "ports": [
        8000
      ],
      "protocol": "http",
      "repos": [
        "Mkway/CVE-2025-57833"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "Mkway/CVE-2025-57833/document/README.md:501",
        "Mkway/CVE-2025-57833/document/README.md:663"
      ]
    },
    {
      "method": "POST",
      "path_template": "/api/vulnerable-search/",
      "body_markers": [
        "\"search_field\"",
        "\"search_field\":\"author_join\""
      ],
      "content_type": "application/json",
      "ports": [
        8000
      ],
      "protocol": "http",
      "repos": [
        "Mkway/CVE-2025-57833"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "Mkway/CVE-2025-57833/CVE-2025-57833.md:213",
        "Mkway/CVE-2025-57833/CVE-2025-57833.md:218",
        "Mkway/CVE-2025-57833/DOCKER_README.md:75",
        "Mkway/CVE-2025-57833/DOCKER_README.md:80",
        "Mkway/CVE-2025-57833/README.md:222",
        "Mkway/CVE-2025-57833/document/README.md:493",
        "Mkway/CVE-2025-57833/document/README.md:520",
        "Mkway/CVE-2025-57833/document/README.md:527",
        "Mkway/CVE-2025-57833/document/README.md:536",
        "Mkway/CVE-2025-57833/document/README.md:545",
        "Mkway/CVE-2025-57833/document/README.md:554",
        "Mkway/CVE-2025-57833/document/README.md:569",
        "Mkway/CVE-2025-57833/document/README.md:581",
        "Mkway/CVE-2025-57833/document/README.md:593",
        "Mkway/CVE-2025-57833/document/README.md:606",
        "Mkway/CVE-2025-57833/document/README.md:684",
        "Mkway/CVE-2025-57833/local_attacks/exploit.py:35",
        "Mkway/CVE-2025-57833/local_attacks/exploit.py:60",
        "Mkway/CVE-2025-57833/local_attacks/exploit.py:91"
      ]
    }
  ],
  "rules": []
}
