CVE-2026-79987
Received Received - Intake

Authenticated Command Execution in Craft CMS Control Panel

Vulnerability report for CVE-2026-79987, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-09-10

Last updated on: 2026-09-10

Assigner: Hackrate

Description

A remote, authenticated, non-admin Craft CMS Control Panel user with only the accessCp permission can execute operating system commands as the PHP web worker.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-09-10
Last Modified
2026-09-10
Generated
2026-09-10
AI Q&A
2026-09-10
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 2 associated CPEs
Vendor Product Version / Range
craftcms cms 5.10.13
craftcms cms From 5.8.0 (inc) to 5.10.13 (exc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-470 The product uses external input with reflection to select which classes or code to use, but it does not sufficiently prevent the input from selecting improper classes or code.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This is a high-severity remote code execution (RCE) vulnerability in Craft CMS versions 5.8.0 to 5.10.12. A remote, authenticated, non-admin user with only the accessCp permission can execute operating system commands as the PHP web worker. The flaw exists in the ElementSearchController::actionSearch() function where the criteria.with[*].when parameter from request JSON is preserved and used as a PHP callback. By setting when to system and injecting a command into the user's fullName, the attacker can execute arbitrary OS commands.

Detection Guidance

Detecting this vulnerability requires checking Craft CMS versions and monitoring for suspicious activity in the Control Panel. Verify if your Craft CMS version is between 5.8.0 and 5.10.12. Check logs for unusual requests to /admin/actions/element-search/search with criteria.with[*].when parameters. Look for commands executed via the system() function in logs or unexpected file modifications.

Impact Analysis

Successful exploitation grants arbitrary execution of operating-system commands with the Craft PHP worker’s privileges. This allows access to application secrets, environment and database credentials, CMS content, and files readable by the PHP process. It also enables modification of content and writable application/runtime files, and disruption of the Craft service.

Compliance Impact

This vulnerability allows remote code execution with low privileges, potentially exposing sensitive data such as application secrets, environment and database credentials, CMS content, and files readable by the PHP process. This could lead to unauthorized access to personal data, violating GDPR's data protection principles and HIPAA's security requirements for protected health information.

Mitigation Strategies

Immediately update Craft CMS to version 5.10.13 or later to patch this vulnerability. Remove or restrict non-admin user access to the Control Panel until the update is applied. Review and audit all non-admin user accounts for unauthorized access or suspicious activity.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-79987. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart