{
  "id": "CVE-2025-46731",
  "url": "https://poc.griffinguard.io/cve/CVE-2025-46731",
  "published_at": "2025-05-05T19:35:31.347Z",
  "title": "Craft CMS Contains a Potential Remote Code Execution Vulnerability via Twig SSTI",
  "vendor": "craftcms",
  "product": "cms",
  "cvss": {
    "score": 7.3,
    "source": "cna",
    "vector": "CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:P"
  },
  "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 content management system. Versions of Craft CMS on the 4.x branch prior to 4.14.13 and on the 5.x branch prior to 5.6.16 contains a potential remote code execution vulnerability via Twig SSTI. One must have administrator access and `ALLOW_ADMIN_CHANGES` must be enabled for this to work. Users should update to the patched versions 4.14.13 or 5.6.15 to mitigate the issue.",
  "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": 7.3,
    "nvd": 7.2
  },
  "repos": [
    {
      "repo": "singetu0096/CVE-2025-46731",
      "url": "https://github.com/singetu0096/CVE-2025-46731",
      "created_at": "2025-05-06T02:26:55Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 0,
      "is_poc": "no",
      "kind": "writeup",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2024-05-02T05:58:38Z"
    }
  ],
  "remediation": {
    "affected": [
      {
        "vendor": "craftcms",
        "product": "cms",
        "ranges": [
          "\u003e= 4.0.0-RC1, \u003c 4.14.13",
          "\u003e= 5.0.0-RC1, \u003c 5.6.15"
        ],
        "fixed_in": [
          "4.14.13",
          "5.6.15"
        ]
      }
    ],
    "upgrade": [
      "Upgrade cms to 4.14.13 or 5.6.15 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/craftcms/cms/security/advisories/GHSA-7c58-g782-9j38"
      },
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/craftcms/cms/security/advisories/GHSA-f3cw-hg6r-chfv"
      },
      {
        "kind": "Patch",
        "url": "http://github.com/craftcms/cms/pull/17026"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
