Intel

AIKIDO-2025-10913

craftcms/cms is vulnerable to Remote Code Execution (RCE)

Remote Code Execution (RCE)GHSA-742x-x762-7383 Published Dec 10, 2025

85

High Risk

This Affects:

PHPcraftcms/cms
4.0.0 - 4.16.16
Fixed in 4.16.17
5.0.0 - 5.8.20
Fixed in 5.8.21
Are you affected? Scan for Free

TL;DR

Affected versions of this package are vulnerable to Remote Code Execution due to insufficient validation of the $arrow parameter in the groupFilter method, where the old code allowed an unvalidated callable or string to be executed. An attacker could potentially exploit this by passing crafted malicious input that gets executed as code, leading to arbitrary command execution on the server. The patch mitigates this by implementing a validation check via self::checkArrowFunction() before processing the parameter.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Background info

craftcms/cms is vulnerable to Remote Code Execution (RCE) in versions 5.0.0 - 5.8.20 and 4.0.0 - 4.16.16.

How to fix this

Upgrade the craftcms/cms library to the patch version.