Template Injection Affecting craftcms/cms package, versions >=4.0.0-RC1, <4.17.0-beta.1>=5.8.7, <5.9.0-beta.1


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.06% (19th 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 IDSNYK-PHP-CRAFTCMSCMS-15440545
  • published10 Mar 2026
  • disclosed3 Mar 2026
  • creditAndrea Bocchetti

Introduced: 3 Mar 2026

NewCVE-2026-28695  (opens in a new tab)
CWE-1336  (opens in a new tab)
CWE-22  (opens in a new tab)
CWE-94  (opens in a new tab)

How to fix?

Upgrade craftcms/cms to version 4.17.0-beta.1, 5.9.0-beta.1 or higher.

Overview

craftcms/cms is a content management system.

Affected versions of this package are vulnerable to Template Injection via the create function. An attacker can execute arbitrary code on the server by supplying a crafted payload that instantiates dangerous classes, such as Symfony\Component\Process\Process, and triggers command execution through template injection.

Note: This is only exploitable if the attacker has administrator permissions or access to the System Messages utility, and the allowAdminChanges setting is enabled in production or access to the System Messages utility is available.

References

CVSS Base Scores

version 4.0
version 3.1