CVE-2025-54417
PHP vulnerability analysis and mitigation

Overview

Craft CMS versions 4.13.8 through 4.16.2 and 5.5.8 through 5.8.3 contain a vulnerability that can bypass CVE-2025-23209, which was originally reported as a potential Remote Code Execution (RCE) vulnerability with a compromised security key. The vulnerability was discovered in August 2025 and has been assigned CVE-2025-54417 (GitHub Advisory).

Technical details

The vulnerability requires two specific pre-conditions to be exploited: first, having access to a compromised security key, and second, the ability to create an arbitrary file in Craft's /storage/backups folder. When these conditions are met, an attacker could craft a specific malicious request to the /updater/restore-db endpoint to execute CLI commands remotely. The vulnerability has been assigned a CVSS v4.0 score of 5.2 (Medium) with the vector string CVSS:4.0/AV:N/AC:H/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U (NVD).

Impact

If successfully exploited, this vulnerability could allow attackers to execute arbitrary CLI commands remotely on the affected system, potentially leading to system compromise and unauthorized access to sensitive data. The impact is particularly severe if an attacker has already obtained the security key (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been fixed in Craft CMS versions 4.16.3 and 5.8.4. Users are strongly advised to upgrade to these patched versions. The fix involves removing the automated database restoration functionality from web updates, as implemented in commit a19d46b (GitHub Commit).

Additional resources


SourceThis report was generated using AI

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management