Intel

AIKIDO-2026-963052

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

Remote Code Execution (RCE)CVE-2026-79987 Published Yesterday

87

High Risk

This Affects:

PHPcraftcms/cms
5.8.0 - 5.10.12
Fixed in 5.10.13
Are you affected? Scan for Free

TL;DR

EagerLoadPlan::$when accepts any PHP callable without restricting it to a Closure, and eager-load criteria reach it after sanitization that only strips on /as prefixed keys. A control panel user with only the accessCp permission can submit an eager-load when value such as system through the element search criteria, which is later invoked as a callback and executes operating system commands as the PHP web worker. The fix restricts $when to a Closure.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you grant control panel access to users who are not fully trusted.

Background info

craftcms/cms is vulnerable to Remote Code Execution (RCE) in versions 5.8.0 - 5.10.12.

How to fix this

Upgrade the craftcms/cms library to the patch version.

Are You Affected?

Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.

Free. No credit card required.

Aikido Platform