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

- Severity: Medium 5.2 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.30%, higher than 24% of CVEs (2026-12-01)
- Published: 2020-11-23T19:35:14.000Z
- Modified: 2026-09-10T03:48:35.507Z
- Also known as: GHSA-94vp-rmqv-5875
- Weaknesses: CWE-862
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- octobercms october: >= 1.0.319, < 1.0.469; from 1.0.319 before 1.0.469
- october/cms (Packagist): from 1.0.319 before 1.0.469

## Every score

- GitHub_M: CVSS:3.1 5.2 Medium `CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:L`
- GitHub: CVSS:3.1 5.2 Medium `CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:L`
- NVD: CVSS:3.1 5.2 Medium `CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:L`
- NVD: CVSS:2.0 4.4 Medium `AV:L/AC:M/Au:N/C:P/I:P/A:P`

## References

- <https://github.com/octobercms/october/security/advisories/GHSA-94vp-rmqv-5875> (third-party-advisory, web)
- <https://github.com/octobercms/october/commit/4c650bb775ab849e48202a4923bac93bd74f9982> (patch, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2020-15247> (advisory)
- <https://github.com/octobercms/october> (package)

## Sources

- CVE List: [CVE-2020-15247](https://www.cve.org/CVERecord?id=CVE-2020-15247), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-94vp-rmqv-5875](https://github.com/advisories/GHSA-94vp-rmqv-5875), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2020-15247](https://nvd.nist.gov/vuln/detail/CVE-2020-15247), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2020-15247 · Whole record: https://cve.day/CVE-2020-15247.json · Rebuilt by cve.day 2026-11-25T22:57:55.913Z
