Remote Code Execution (RCE) Affecting craftcms/cms package, versions >=3.0.0, <3.8.15>=4.0.0-RC1, <4.4.15


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of concept
EPSS
0.37% (74th 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 Remote Code Execution (RCE) vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PHP-CRAFTCMSCMS-5848033
  • published22 Aug 2023
  • disclosed21 Aug 2023
  • creditawakerrday

Introduced: 21 Aug 2023

CVE-2023-40035  (opens in a new tab)
CWE-94  (opens in a new tab)

How to fix?

Upgrade craftcms/cms to version 3.8.15, 4.4.15 or higher.

Overview

craftcms/cms is a content management system.

Affected versions of this package are vulnerable to Remote Code Execution (RCE) by bypassing the validatePath function, using a file URI scheme such as file:///path1/path2.

Note: This is exploitable only for authenticated users with the configuration ALLOW_ADMIN_CHANGES=true.

CVSS Scores

version 3.1