Arbitrary Code Injection Affecting craftcms/cms package, versions >=4.13.8, <4.16.3>=5.5.8, <5.8.4


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.05% (14th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Arbitrary Code Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PHP-CRAFTCMSCMS-11735299
  • published10 Aug 2025
  • disclosed8 Aug 2025
  • creditsegfault-it

Introduced: 8 Aug 2025

NewCVE-2025-54417  (opens in a new tab)
CWE-94  (opens in a new tab)

How to fix?

Upgrade craftcms/cms to version 4.16.3, 5.8.4 or higher.

Overview

craftcms/cms is a content management system.

Affected versions of this package are vulnerable to Arbitrary Code Injection via the /updater/restore-db endpoint. An attacker can execute arbitrary code by crafting a malicious request after obtaining a compromised security key and creating an arbitrary file in the /storage/backups directory.

Note: This is exploitable if the attacker has access to a compromised security key and can create arbitrary files in the /storage/backups folder.

CVSS Base Scores

version 4.0
version 3.1