# CVE-2020-26231: Bypass of fix for CVE-2020-15247, Twig sandbox escape

- 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.29%, higher than 23% of CVEs (2026-12-01)
- Published: 2020-11-23T20:54:18.000Z
- Modified: 2026-09-10T03:48:35.581Z
- Also known as: GHSA-r89v-cgv7-3jhx
- Weaknesses: CWE-862
- Assigned by: GitHub_M

## Description

October is a free, open-source, self-hosted CMS platform based on the Laravel PHP Framework. A bypass of CVE-2020-15247 (fixed in 1.0.469 and 1.1.0) was discovered that has the same impact as 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. 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 470 (v1.0.470) and v1.1.1.

(As written by CVE List.)

## Affected

- octobercms october: = 1.0.469; 1.0.469; 1.1.0
- october/cms (Packagist): from 1.0.469 before 1.0.470

## 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 Low `CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:L`
- NVD: CVSS:3.1 6.7 Medium `CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H`
- 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-r89v-cgv7-3jhx> (patch, third-party-advisory, web)
- <https://github.com/octobercms/october/commit/d34fb8ab51108495a9a651b841202d935f4e12f7> (patch, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2020-26231> (advisory)
- <https://github.com/advisories/GHSA-94vp-rmqv-5875> (advisory)

## Sources

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

---

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