Craftcms cms
Craft affected by authenticated RCE via Twig SSTI - create() function + Symfony Process gadget
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 5.8.7, < 5.9.0-beta.1
- >= 4.0.0-RC1, < 4.17.0-beta.1
Fixed in 5.9.0-beta.1, 4.17.0-beta.1
Mitigation
Upgrade cms to 5.9.0-beta.1 or 4.17.0-beta.1 or later.
References
Timeline
Days relative to CVE publicationFirst public PoC 207 days after publication; not in CISA KEV. First PoC: gbuyssens/CVE-2026-28695-craft-rce-bypass (created 27 Sep 2026, found by us: backfilled).
PoC repositories
Found on GitHub.2 PoCs
PoCs 2
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| gbuyssens/CVE-2026-28695-craft-rce-bypass | 27 Sep 2026 +207 d | 1 | PoC |
| predyy/CVE-2026-28695 | 27 Sep 2026 +207 d | 5 | PoC |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.
PoC characteristics
What to hunt for in your logs · from 2 PoC reposGET /admin/dashboard
- Seen in
- 1 repo: gbuyssens/CVE-2026-28695-craft-rce-bypass
- Evidence
- gbuyssens/CVE-2026-28695-craft-rce-bypass/exploit.py:59
GET /admin/login
- Seen in
- 1 repo: gbuyssens/CVE-2026-28695-craft-rce-bypass
- Evidence
- gbuyssens/CVE-2026-28695-craft-rce-bypass/exploit.py:47
POST /element-search/search
- Key headers
X-Csrf-Token: {var}- Body markers
"elementType":"craft\elements\Category""siteId""search":"""CRAFT_CSRF_TOKEN""condition"inapplication/json- Seen in
- 1 repo: predyy/CVE-2026-28695
- Evidence
- predyy/CVE-2026-28695/exp.py:51
POST /index.php
- Query
p=admin/actions/users/loginp=admin/actions/element-search/search- Key headers
Accept: application/jsonX-Csrf-Token: {var}X-Requested-With: XMLHttpRequest- Body markers
"CRAFT_CSRF_TOKEN""loginName""password"inapplication/json- Seen in
- 1 repo: gbuyssens/CVE-2026-28695-craft-rce-bypass
- Evidence
- gbuyssens/CVE-2026-28695-craft-rce-bypass/exploit.py:54 gbuyssens/CVE-2026-28695-craft-rce-bypass/exploit.py:98
POST /users/login
- Key headers
X-Csrf-Token: {var}- Body markers
"CRAFT_CSRF_TOKEN""loginName""password"inapplication/json- Seen in
- 1 repo: predyy/CVE-2026-28695
- Evidence
- predyy/CVE-2026-28695/exp.py:29
Regex
Generated from PoC characteristics; not yet reviewed. Matches the request path and query.
(?i)^/admin/dashboard(?:[?#].*)?$
(?i)^/admin/login(?:[?#].*)?$
(?i)^/element-search/search(?:[?#].*)?$
(?i)^/index\.php\?(?:.*&)?p=admin/actions/users/login.*p=admin/actions/element-search/search
(?i)^/users/login(?:[?#].*)?$
Suricata
Template generated from PoC characteristics. Review before deploying.
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2026-28695 craftcms cms exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/admin/dashboard"; reference:url,poc.griffinguard.io/cve/CVE-2026-28695; classtype:web-application-attack; sid:9633182; rev:1;)
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2026-28695 craftcms cms exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/admin/login"; reference:url,poc.griffinguard.io/cve/CVE-2026-28695; classtype:web-application-attack; sid:9626635; rev:1;)
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2026-28695 craftcms cms exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/element-search/search"; http.header_names; content:"X-Csrf-Token"; nocase; http.request_body; content:"|22|elementType|22|:|22|craft|5c|elements|5c|Category|22|"; http.request_body; content:"|22|siteId|22|"; http.request_body; content:"|22|search|22|:|22||22|"; http.request_body; content:"|22|CRAFT_CSRF_TOKEN|22|"; http.request_body; content:"|22|condition|22|"; reference:url,poc.griffinguard.io/cve/CVE-2026-28695; classtype:web-application-attack; sid:9655918; rev:1;)
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2026-28695 craftcms cms exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/index.php"; http.uri; content:"p=admin/actions/users/login"; http.uri; content:"p=admin/actions/element-search/search"; http.header; content:"Accept: application/json"; nocase; http.header_names; content:"X-Csrf-Token"; nocase; http.header; content:"X-Requested-With: XMLHttpRequest"; nocase; http.request_body; content:"|22|CRAFT_CSRF_TOKEN|22|"; http.request_body; content:"|22|loginName|22|"; http.request_body; content:"|22|password|22|"; reference:url,poc.griffinguard.io/cve/CVE-2026-28695; classtype:web-application-attack; sid:9544508; rev:1;)
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2026-28695 craftcms cms exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/users/login"; http.header_names; content:"X-Csrf-Token"; nocase; http.request_body; content:"|22|CRAFT_CSRF_TOKEN|22|"; http.request_body; content:"|22|loginName|22|"; http.request_body; content:"|22|password|22|"; reference:url,poc.griffinguard.io/cve/CVE-2026-28695; classtype:web-application-attack; sid:9240160; rev:1;)
Sigma
Template generated from PoC characteristics. Review before deploying.
title: craftcms cms exploit attempt (CVE-2026-28695)
id: gg-pocmon-cve-2026-28695-9633182
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-28695. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-28695
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/admin/dashboard'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: high
tags:
- attack.initial_access
- attack.t1190
- cve.2026.28695
title: craftcms cms exploit attempt (CVE-2026-28695)
id: gg-pocmon-cve-2026-28695-9626635
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-28695. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-28695
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/admin/login'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: high
tags:
- attack.initial_access
- attack.t1190
- cve.2026.28695
title: craftcms cms exploit attempt (CVE-2026-28695)
id: gg-pocmon-cve-2026-28695-9655918
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-28695. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-28695
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '/element-search/search'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: high
tags:
- attack.initial_access
- attack.t1190
- cve.2026.28695
title: craftcms cms exploit attempt (CVE-2026-28695)
id: gg-pocmon-cve-2026-28695-9544508
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-28695. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-28695
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '/index.php'
cs-uri-query|contains|all:
- 'p=admin/actions/users/login'
- 'p=admin/actions/element-search/search'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: high
tags:
- attack.initial_access
- attack.t1190
- cve.2026.28695
title: craftcms cms exploit attempt (CVE-2026-28695)
id: gg-pocmon-cve-2026-28695-9240160
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-28695. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-28695
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '/users/login'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: high
tags:
- attack.initial_access
- attack.t1190
- cve.2026.28695