{
  "id": "CVE-2025-57811",
  "url": "https://poc.griffinguard.io/cve/CVE-2025-57811",
  "published_at": "2025-08-25T17:52:07.786Z",
  "title": "Craft Potential Remote Code Execution via Twig SSTI",
  "vendor": "craftcms",
  "product": "cms",
  "cvss": {
    "score": 7.2,
    "source": "nvd",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "Craft is a platform for creating digital experiences. From versions 4.0.0-RC1 to 4.16.5 and 5.0.0-RC1 to 5.8.6, there is a potential remote code execution vulnerability via Twig SSTI (Server-Side Template Injection). This is a follow-up to CVE-2024-52293. This vulnerability has been patched in versions 4.16.6 and 5.8.7.",
  "cwe": "CWE-1336",
  "cpes": [
    "cpe:2.3:a:craftcms:craft_cms:*:*:*:*:*:*:*:*",
    "cpe:2.3:a:craftcms:craft_cms:4.0.0:rc1:*:*:*:*:*:*",
    "cpe:2.3:a:craftcms:craft_cms:4.0.0:rc2:*:*:*:*:*:*",
    "cpe:2.3:a:craftcms:craft_cms:4.0.0:rc3:*:*:*:*:*:*",
    "cpe:2.3:a:craftcms:craft_cms:5.0.0:rc1:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 6.1,
    "nvd": 7.2
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "craftcms",
        "product": "cms",
        "ranges": [
          "\u003e= 4.0.0-RC1, \u003c 4.16.6",
          "\u003e= 5.0.0-RC1, \u003c 5.8.7"
        ],
        "fixed_in": [
          "4.16.6",
          "5.8.7"
        ]
      }
    ],
    "upgrade": [
      "Upgrade cms to 4.16.6 or 5.8.7 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/craftcms/cms/security/advisories/GHSA-crcq-738g-pqvc"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/craftcms/cms/pull/17612"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/craftcms/cms/commit/e77f8a287dcdda41f1724f525d03542f18566cbc"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
