{
  "id": "CVE-2026-28695",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-28695",
  "published_at": "2026-03-04T16:15:32.556Z",
  "title": "Craft affected by authenticated RCE via Twig SSTI - create() function + Symfony Process gadget",
  "vendor": "craftcms",
  "product": "cms",
  "cvss": {
    "score": 7.5,
    "source": "cna",
    "vector": "CVSS:4.0/AV:N/AC:L/AT:P/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": {
    "created_at": "2026-09-27T10:16:49Z",
    "first_seen_at": "2026-11-14T11:25:11.578Z",
    "days_after_publication": 206.8,
    "repo": "gbuyssens/CVE-2026-28695-craft-rce-bypass",
    "source": "github"
  },
  "poc_repo_count": 2,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "Craft is a content management system (CMS). There is an authenticated admin RCE in Craft CMS 5.8.21 via Server-Side Template Injection using the create() Twig function combined with a Symfony Process gadget chain. The create() Twig function exposes Craft::createObject(), which allows instantiation of arbitrary PHP classes with constructor arguments. Combined with the bundled symfony/process dependency, this enables RCE. This bypasses the fix implemented for CVE-2025-57811 (patched in 5.8.7). This vulnerability is fixed in 5.9.0-beta.1 and 4.17.0-beta.1.",
  "cwe": "CWE-1336",
  "cpes": [
    "cpe:2.3:a:craftcms:craft_cms:*:*:*:*:*:*:*:*",
    "cpe:2.3:a:craftcms:craft_cms:4.0.0:-:*:*:*:*:*:*",
    "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:-:*:*:*:*:*:*",
    "cpe:2.3:a:craftcms:craft_cms:5.0.0:rc1:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 7.5,
    "nvd": 7.2
  },
  "repos": [
    {
      "repo": "gbuyssens/CVE-2026-28695-craft-rce-bypass",
      "url": "https://github.com/gbuyssens/CVE-2026-28695-craft-rce-bypass",
      "created_at": "2026-09-27T10:16:49Z",
      "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": "2026-07-17T09:15:47Z"
    },
    {
      "repo": "predyy/CVE-2026-28695",
      "url": "https://github.com/predyy/CVE-2026-28695",
      "created_at": "2026-09-27T18:15:52Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 5,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2020-08-11T12:39:11Z"
    }
  ],
  "remediation": {
    "affected": [
      {
        "vendor": "craftcms",
        "product": "cms",
        "ranges": [
          "\u003e= 5.8.7, \u003c 5.9.0-beta.1",
          "\u003e= 4.0.0-RC1, \u003c 4.17.0-beta.1"
        ],
        "fixed_in": [
          "5.9.0-beta.1",
          "4.17.0-beta.1"
        ]
      }
    ],
    "upgrade": [
      "Upgrade cms to 5.9.0-beta.1 or 4.17.0-beta.1 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/craftcms/cms/security/advisories/GHSA-94rc-cqvm-m4pw"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/craftcms/cms/commit/e31e50849ad71638e11ea55fbd1ed90ae8f8f6e0"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [
    {
      "method": "GET",
      "path_template": "/admin/dashboard",
      "protocol": "http",
      "repos": [
        "gbuyssens/CVE-2026-28695-craft-rce-bypass"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "gbuyssens/CVE-2026-28695-craft-rce-bypass/exploit.py:59"
      ]
    },
    {
      "method": "GET",
      "path_template": "/admin/login",
      "protocol": "http",
      "repos": [
        "gbuyssens/CVE-2026-28695-craft-rce-bypass"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "gbuyssens/CVE-2026-28695-craft-rce-bypass/exploit.py:47"
      ]
    },
    {
      "method": "POST",
      "path_template": "/element-search/search",
      "headers": [
        {
          "name": "X-Csrf-Token",
          "value": "{var}"
        }
      ],
      "body_markers": [
        "\"elementType\":\"craft\\elements\\Category\"",
        "\"siteId\"",
        "\"search\":\"\"",
        "\"CRAFT_CSRF_TOKEN\"",
        "\"condition\""
      ],
      "content_type": "application/json",
      "protocol": "http",
      "repos": [
        "predyy/CVE-2026-28695"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "predyy/CVE-2026-28695/exp.py:51"
      ]
    },
    {
      "method": "POST",
      "path_template": "/index.php",
      "query_markers": [
        "p=admin/actions/users/login",
        "p=admin/actions/element-search/search"
      ],
      "headers": [
        {
          "name": "Accept",
          "value": "application/json"
        },
        {
          "name": "X-Csrf-Token",
          "value": "{var}"
        },
        {
          "name": "X-Requested-With",
          "value": "XMLHttpRequest"
        }
      ],
      "body_markers": [
        "\"CRAFT_CSRF_TOKEN\"",
        "\"loginName\"",
        "\"password\""
      ],
      "content_type": "application/json",
      "protocol": "http",
      "repos": [
        "gbuyssens/CVE-2026-28695-craft-rce-bypass"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "gbuyssens/CVE-2026-28695-craft-rce-bypass/exploit.py:54",
        "gbuyssens/CVE-2026-28695-craft-rce-bypass/exploit.py:98"
      ]
    },
    {
      "method": "POST",
      "path_template": "/users/login",
      "headers": [
        {
          "name": "X-Csrf-Token",
          "value": "{var}"
        }
      ],
      "body_markers": [
        "\"CRAFT_CSRF_TOKEN\"",
        "\"loginName\"",
        "\"password\""
      ],
      "content_type": "application/json",
      "protocol": "http",
      "repos": [
        "predyy/CVE-2026-28695"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "predyy/CVE-2026-28695/exp.py:29"
      ]
    }
  ],
  "rules": []
}
