CVE-2020-15247: October CMS - Template Injection
- Cve: CVE-2020-15247
- Name: October CMS - Template Injection
- Description: 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.
- Impact: Authenticated users can execute arbitrary PHP code, potentially leading to full server compromise or data breach.
- Remediation: Update to version 1.0.469 or later, such as v1.1.0.
- Vulnerability type: template_injection
- Vulnerability impact: remote_code_execution
- Requirement type: logged_in
- Requirements: Attacker must be an authenticated backend user with specific permissions and cms.enableSafeMode enabled.
- Labels source: projectdiscovery
- Severity: medium
- Cvss score: 5.2
- Cvss vector: CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:L
- Epss score: 0.00296
- Epss percentile: 0.22606
- Assignee: [email protected]
- Published at: 2020-11-23T20:15:12Z
- Age in days: 2192
- Modified at: 2026-06-17T02:56:21Z
- Patch available: yes
- References total: 2
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2020-15247
- Nvd status: modified
- Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
- Not known: hackerone
Cwe
| Id | Name |
|---|---|
| CWE-862 | Missing Authorization |
| NVD-CWE-Other | — |
References
| Url | Source | Tags |
|---|---|---|
| https://github.com/octobercms/october/commit/4c650bb775ab849e48202a4923bac93bd74f9982 | nvd | Patch, Third Party Advisory |
| https://github.com/octobercms/october/security/advisories/GHSA-94vp-rmqv-5875 | nvd | Third Party Advisory |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| octobercms:october | >= 1.0.319, < 1.0.469 | no | nvd | /v1/products/octobercms/october |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| octobercms/october | commit, fix, package, security_advisory | yes | /v1/repositories/octobercms/october |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Authentication required: yes
- Exposed hosts: 264
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, remote
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports