Skip to content
Heist/ feed
Back to feed
High

Craft CMS 5.0.0-RC1 before 5.10.6 Authenticated RCE via condition.config

Type: advisorySources: OSV

Craft CMS versions from 4.0.0-RC1 before 4.18.2 and from 5.0.0-RC1 before 5.10.6 contain an authenticated remote code execution vulnerability in the control panel element-search condition handling. Craft cleanses the outer request-controlled condition array via Component::cleanseConfig(), but Conditions::createCondition() later decodes and merges the JSON string in condition.config without re-running cleanseConfig() on the decoded configuration. Because condition.config is a JSON string during the first cleanse, Yii special config keys such as 'as ...' and 'on ...' can be hidden inside it and, after JSON decoding, are interpreted by Yii as behavior/event configuration during FieldLayout object creation. An attacker with an authenticated control panel session (and a valid CSRF token) can exploit this to execute operating system commands as the PHP/web user.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2026-72778
Confirmed fixed CVEs
Not specified
Updated in this feed
7 Nov 2026, 21:08 UTC · Revision 1

Source evidence

Craft CMS 5.0.0-RC1 before 5.10.6 Authenticated RCE via condition.config

core-osv · Original source

Published 11 Aug 2026, 12:17 UTC

Craft CMS versions from 4.0.0-RC1 before 4.18.2 and from 5.0.0-RC1 before 5.10.6 contain an authenticated remote code execution vulnerability in the control panel element-search condition handling. Craft cleanses the outer request-controlled condition array via Component::cleanseConfig(), but Conditions::createCondition() later decodes and merges the JSON string in condition.config without re-running cleanseConfig() on the decoded configuration. Because condition.config is a JSON string during the first cleanse, Yii special config keys such as 'as ...' and 'on ...' can be hidden inside it and, after JSON decoding, are interpreted by Yii as behavior/event configuration during FieldLayout object creation. An attacker with an authenticated control panel session (and a valid CSRF token) can exploit this to execute operating system commands as the PHP/web user.

osv:CVE-2026-72778
Complete source record
{
  "id": "168c66f7857eed0cbb8d1b252684d25f7e2d14bf09ad0d205a1c784cc1828ca0",
  "url": "https://osv.dev/vulnerability/CVE-2026-72778",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Craft CMS 5.0.0-RC1 before 5.10.6 Authenticated RCE via condition.config",
    "summary": "Craft CMS versions from 4.0.0-RC1 before 4.18.2 and from 5.0.0-RC1 before 5.10.6 contain an authenticated remote code execution vulnerability in the control panel element-search condition handling. Craft cleanses the outer request-controlled condition array via Component::cleanseConfig(), but Conditions::createCondition() later decodes and merges the JSON string in condition.config without re-running cleanseConfig() on the decoded configuration. Because condition.config is a JSON string during the first cleanse, Yii special config keys such as 'as ...' and 'on ...' can be hidden inside it and, after JSON decoding, are interpreted by Yii as behavior/event configuration during FieldLayout object creation. An attacker with an authenticated control panel session (and a valid CSRF token) can exploit this to execute operating system commands as the PHP/web user.",
    "evidence": "osv:CVE-2026-72778",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2026-72778",
      "aliases": [
        "CVE-2026-72778",
        "GHSA-265m-7826-wjqm"
      ],
      "metrics": [
        {
          "type": "CVSS_V4",
          "score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/craftcms/cms",
              "type": "GIT",
              "events": [
                {
                  "introduced": "04755d93f86d07cc183db47db8a0eee106892e30"
                },
                {
                  "fixed": "5c055703a13ba3a52bf013d7ba6c0223d6f62ef8"
                },
                {
                  "introduced": "daac7c1da2f701f2e9ddee1da1457ce61660b581"
                },
                {
                  "fixed": "c7ea105e1d2cf043e76e7847d84e5732071a26b4"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "5.0.0-RC1"
                      },
                      {
                        "fixed": "5.10.6"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StandardRange"
                  },
                  {
                    "range": [
                      {
                        "introduced": "4.0.0-RC1"
                      },
                      {
                        "fixed": "4.18.2"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StandardRange"
                  }
                ]
              }
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-72778.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:51.532661796Z",
      "provider": "osv",
      "references": [
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/72xxx/CVE-2026-72778.json",
        "https://github.com/craftcms/cms/security/advisories/GHSA-265m-7826-wjqm",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-72778",
        "https://www.vulncheck.com/advisories/craft-cms-rc1-before-authenticated-rce-via-condition-config"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-915"
        ],
        "cna_assigner": "VulnCheck",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/72xxx/CVE-2026-72778.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-72778",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 520414,
  "published_at": "2026-08-11T12:17:14.099+00:00"
}