Arbitrary Code Execution Affecting october/cms package, versions >=1.0.471, <1.0.472>=1.1.1, <1.1.2


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.05% (16th 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 Execution vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PHP-OCTOBERCMS-1279036
  • published4 May 2021
  • disclosed4 May 2021
  • creditka1n4t

Introduced: 4 May 2021

CVE-2021-21264  (opens in a new tab)
CWE-862  (opens in a new tab)

How to fix?

Upgrade october/cms to version 1.0.472, 1.1.2 or higher.

Overview

october/cms is a CMS module for October CMS.

Affected versions of this package are vulnerable to Arbitrary Code Execution. A bypass of CVE-2020-26231 was discovered that has the same impact as CVE-2020-26231 and CVE-2020-15247.

An authenticated backend user with the cms.manage_pages, cms.manage_layouts, or cms.manage_partials permissions who would normally not be permitted to provide PHP code to be executed by the CMS due to cms.enableSafeMode being enabled, is able to write specific Twig code to escape the Twig sandbox and execute arbitrary PHP.

References

CVSS Base Scores

version 3.1