LiveActive security incident?Get immediate response
CVE Record

CVE-2020-15247: Twig Sandbox Escape by authenticated users with access to editing CMS templates when safemode is enabled.

October is a free, open-source, self-hosted CMS platform based on the Laravel PHP Framework. In October CMS from version 1.0.319 and before version 1.0.469, 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. This is not a problem for anyone that trusts their users with those permissions to normally write & manage PHP within the CMS by not having cms.enableSafeMode enabled, but would be a problem for anyone relying on cms.enableSafeMode to ensure that users with those permissions in production do not have access to write & execute arbitrary PHP. Issue has been patched in Build 469 (v1.0.469) and v1.1.0.

MediumCVSS 5.2Not KEV-listedUpdated
Glexia's TakeAutomated analysismoderate

Security readout for executives and security teams

Plain-English summary

An unpatched October CMS site can let certain trusted backend editors bypass Safe Mode and run PHP through CMS templates. The risk is limited to authenticated users with specific CMS editing permissions, but it matters where Safe Mode was used to separate content editing from code execution.

Executive priority

Prioritize remediation where October CMS is internet-facing, production-critical, or has multiple backend editors. The vulnerability is not broadly unauthenticated, but it undermines an administrative safety boundary and can turn template-editing access into code execution.

Technical view

October CMS versions 1.0.319 to before 1.0.469 allowed a Twig sandbox escape when cms.enableSafeMode was enabled. Backend users with cms.manage_pages, cms.manage_layouts, or cms.manage_partials could craft Twig content that escaped the intended restriction and executed arbitrary PHP. Patched in Build 469 and v1.1.0.

Likely exposure

Exposure is mainly self-hosted October CMS deployments running affected 1.0.x builds with Safe Mode enabled and backend users allowed to edit pages, layouts, or partials. Sites that already trust those users to write PHP are less affected by the stated security boundary.

Exploitation context

The source bundle does not show CISA KEV listing or confirmed active exploitation. Exploitation requires authenticated backend access, high privileges, and user interaction, but could impact confidentiality, integrity, and availability once PHP execution is reached.

Researcher notes

The key control failure is a Twig sandbox escape under Safe Mode, mapped to CWE-862 in the source bundle. Assessment should focus on version, Safe Mode reliance, backend role assignments, and whether template editors are intentionally trusted with PHP execution.

Mitigation direction

  • Upgrade October CMS to Build 469, v1.0.469, v1.1.0, or later.
  • Review vendor advisory and release guidance before production rollout.
  • Audit backend accounts with CMS page, layout, or partial editing permissions.
  • Remove CMS template editing permissions from users who should not execute PHP.
  • Review recent CMS template changes made by privileged backend users.

Validation and detection

  • Inventory October CMS versions across self-hosted environments.
  • Confirm whether cms.enableSafeMode is enabled on affected deployments.
  • List users with cms.manage_pages, cms.manage_layouts, or cms.manage_partials permissions.
  • Verify the deployed build is 469 or later.
  • Check change history for suspicious page, layout, or partial edits.
Prepared
Confidence
high
Sources
4

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cwe · medium confidence lookup

CWE-862: Authorization and privilege behavior lookup

Authorization weaknesses can support privilege escalation and valid-account review, depending on exploit path. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.

Open ATT&CK lookup
description · low confidence lookup

Privilege behavior lookup

The CVE wording references privilege impact, so privilege escalation and authorization behavior review may help. This is a Glexia inferred lookup path, not an official MITRE, ATT&CK, or CVE Program mapping.

Open ATT&CK lookup
cve · low confidence lookup

CVE-2020-15247 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
Medium
CVSS
5.2 (3.1)
Known Exploited
No
Published

Vector: CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:L

Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

1CVSS vectors
0Timeline events
0ADP providers
3Source links

CVSS vector scores

1 official score

We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.

ScoreVersionSeverityVectorExploitImpactSource
5.2CVSS 3.1MediumCVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:L1.13.7Primary CVE score

Vulnerability scoring details

Base CVSS 3.1 score

5.2Medium
CVSS 3.1 vector shape for CVE-2020-15247Attack VectorAttack ComplexityPrivileges RequiredUser InteractionScopeConfidentiality ImpactIntegrity ImpactAvailability Impact

Vector: CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:L

Attack Vector
NetworkAdjacentLocalPhysical
Attack Complexity
LowHigh
Privileges Required
NoneLowHigh
User Interaction
NoneRequired
Scope
ChangedUnchanged
Confidentiality Impact
HighLowNone
Integrity Impact
HighLowNone
Availability Impact
HighLowNone
Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
octobercmsoctober>= 1.0.319, < 1.0.469Listed
Weakness

CWE details

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.

CWE-862 · source CWE mapping

Missing Authorization

Missing Authorization represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.