{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2021-21264","published":"2021-05-03T16:15:07.510000Z","last_modified":"2026-06-17T03:35:09.167000Z","status":"Modified","cvss":{"version":"3.1","score":5.2,"severity":"MEDIUM","vector":"CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:L","source":"nvd@nist.gov","primary":true},"auth":true,"cwes":["CWE-862"],"cpes":[{"criteria":"cpe:2.3:a:octobercms:october:*:*:*:*:*:*:*:*","part":"a","vendor":"octobercms","product":"october","version_end_including":"1.0.471"},{"criteria":"cpe:2.3:a:octobercms:october:*:*:*:*:*:*:*:*","part":"a","vendor":"octobercms","product":"october","version_start_including":"1.1.0","version_end_including":"1.1.1"}],"cpes_truncated":false,"vendors":["octobercms"],"products":["octobercms/october"],"epss":{"score":0.00265,"percentile":0.19633,"date":"2026-12-01","model_version":"v2026.06.15"},"cat":"app","platform":"multi","eol":false,"packages":[{"advisory":"GHSA-fcr8-6q7r-m4wg","ecosystem":"Packagist","name":"october/cms","purl":"pkg:composer/october/cms","ranges":[{"introduced":"1.0.471","fixed":"1.0.472"}],"versions":["1.0.471","v1.0.471"],"versions_truncated":false},{"advisory":"GHSA-fcr8-6q7r-m4wg","ecosystem":"Packagist","name":"october/cms","purl":"pkg:composer/october/cms","ranges":[{"introduced":"1.1.1","fixed":"1.1.2"}],"versions":["1.1.1","v1.1.1"],"versions_truncated":false}],"severity":"medium","priority_score":31,"links":{"html_es":"/es/cve/CVE-2021-21264/","html_en":"/en/cve/CVE-2021-21264/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2021-21264","cve_org":"https://www.cve.org/CVERecord?id=CVE-2021-21264"},"untrusted":{"vendor_name":"Octobercms","product_name":"October","desc_en":"October is a free, open-source, self-hosted CMS platform based on the Laravel PHP Framework. A bypass of CVE-2020-26231 (fixed in 1.0.470/471 and 1.1.1) was discovered that has the same impact as CVE-2020-26231 & 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 472 (v1.0.472) and v1.1.2. As a workaround, apply https://github.com/octobercms/october/commit/f63519ff1e8d375df30deba63156a2fc97aa9ee7 to your installation manually if unable to upgrade to Build 472 or v1.1.2.","affected":[{"untrusted_vendor":"octobercms","untrusted_product":"october","versions":[]}],"references":[{"url":"https://github.com/octobercms/october/security/advisories/GHSA-fcr8-6q7r-m4wg","tags":["Patch","Third Party Advisory"]}]}}