SCA: security update for craftcms/cms (GHSA-fp5j-j7j4-mcxc)

critical Tenable Self-Hosted Container Security Plugin ID 438647

Description

There are packages installed that are affected by a vulnerability referenced in the following CVE:

- Craft is a content management system (CMS). Prior to 5.9.9 and 4.17.4, a Remote Code Execution
vulnerability exists in the Craft CMS 5 conditions system. The
BaseElementSelectConditionRule::getElementIds() method passes user-controlled string input through
renderObjectTemplate() -- an unsandboxed Twig rendering function with escaping disabled. Any authenticated
Control Panel user (including non-admin roles such as Author or Editor) can achieve full RCE by sending a
crafted condition rule via standard element listing endpoints. This vulnerability requires no admin
privileges, no special permissions beyond basic control panel access, and bypasses all production
hardening settings (allowAdminChanges: false, devMode: false, enableTwigSandbox: true). Users should
update to the patched 5.9.9 or 4.17.4 release to mitigate the issue. (CVE-2026-31857)

Solution

Update the craftcms/cms library and its related packages to version 4.17.4 or later.

See Also

https://github.com/advisories/GHSA-fp5j-j7j4-mcxc

Plugin Details

Severity: Critical

ID: 438647

Version: Revision 1.11

Type: Local

Family: SCA Checks

Published: 3/11/2026

Updated: 10/1/2026

Supported Sensors: Tenable Cloud Security, Tenable Self-Hosted Container Security

Risk Information

VPR

Risk Factor: Medium

Score: 4.9

Percentile: 58.35

Vendor

Vendor Severity: High

CVSS v2

Risk Factor: High

Base Score: 9

Temporal Score: 7

Vector: CVSS2#AV:N/AC:L/Au:S/C:C/I:C/A:C

CVSS Score Source: CVE-2026-31857

CVSS v3

Risk Factor: High

Base Score: 8.8

Temporal Score: 7.9

Vector: CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Temporal Vector: CVSS:3.0/E:P/RL:O/RC:C

CVSS v4

Risk Factor: Critical

Base Score: 9.3

Threat Score: 8.1

Threat Vector: CVSS:4.0/E:P

Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Vulnerability Information

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 3/11/2026

Vulnerability Publication Date: 3/11/2026

Reference Information

CVE: CVE-2026-31857

cwe: CWE-94