{"id":"CVE-2023-44382","published":"2023-12-01T21:48:41Z","modified":"2024-08-02T20:07:33Z","title":"October CMS safe mode bypass using Twig sandbox escape","vendor":"octobercms","product":"october","tier":"tail","description":{"text":"October is a Content Management System (CMS) and web platform to assist with development workflow. An authenticated backend user with the `editor.cms_pages`, `editor.cms_layouts`, or `editor.cms_partials` permissions who would normally not be permitted to provide PHP code to be executed by the CMS due to `cms.safe_mode` being enabled can write specific Twig code to escape the Twig sandbox and execute arbitrary PHP. This issue has been patched in 3.4.15.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.1,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00936,"percentile":0.5915,"provenance":"source"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"}],"references":[{"url":"https://github.com/octobercms/october/security/advisories/GHSA-p8q3-h652-65vx","tags":["x_refsource_CONFIRM"]}],"priority":{"score":18.2,"factors":[{"name":"EPSS percentile","points":11.83},{"name":"CVSS severity","points":6.37}]},"vendorSlug":"octobercms","affectedVersions":[{"vendor":"octobercms","product":"october","versions":[">= 3.0.0, < 3.4.15"]}],"affected":[{"ecosystem":"Packagist","package":"october/system","vulnerableRanges":[">=3.0.0, <3.4.15"],"patched":["3.4.15"],"from":["GHSA-p8q3-h652-65vx"],"provenance":"source"}],"summary":{"text":"The flaw is in October CMS (the october product from octobercms), where the Twig sandbox used for CMS pages, layouts and partials can be escaped, allowing code injection. An attacker who holds an authenticated backend account with the editor.cms_pages, editor.cms_layouts or editor.cms_partials permission, and who would otherwise be blocked by cms.safe_mode, can craft Twig code that escapes the sandbox and executes arbitrary PHP on the server, with no user interaction required.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:34:01Z"},"euvd":{"id":"EUVD-2023-3005","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2022-24800","published":"2022-07-12","fixed":"2.2.15","kev":false},{"cve":"CVE-2022-35944","published":"2022-10-13","fixed":"3.0.66","kev":false,"link":{"from":"CVE-2022-35944","to":"CVE-2023-44382","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:october/system","fromFixed":"3.0.66","toFixed":"3.4.15","daysApart":414}]}},{"cve":"CVE-2023-44381","published":"2023-12-01","fixed":"3.4.15","kev":false},{"cve":"CVE-2023-44382","published":"2023-12-01","fixed":"3.4.15","kev":false},{"cve":"CVE-2023-44383","published":"2023-11-29","fixed":"3.5.2","kev":false,"link":{"from":"CVE-2023-44382","to":"CVE-2023-44383","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:october/system","fromFixed":"3.4.15","toFixed":"3.5.2","daysApart":-2}]}},{"cve":"CVE-2024-24764","published":"2024-06-26","fixed":"3.5.15","kev":false},{"cve":"CVE-2024-25637","published":"2024-06-26","fixed":"3.5.15","kev":false}],"package":"Packagist:october/system"}}