{"id":"CVE-2026-22692","published":"2026-04-14T16:48:04Z","modified":"2026-04-14T19:42:40Z","title":"October CMS: Twig Sandbox Bypass via Collection Methods","vendor":"octobercms","product":"october","tier":"tail","description":{"text":"October is a Content Management System (CMS) and web platform. Versions prior to 3.7.13 and versions 4.0.0 through 4.1.4 contain a sandbox bypass vulnerability in the optional Twig safe mode feature (CMS_SAFE_MODE). Certain methods on the collect() helper were not properly restricted, allowing authenticated users with template editing permissions to bypass sandbox protections. Exploitation requires authenticated backend access with CMS template editing permissions and only affects installations with CMS_SAFE_MODE enabled (disabled by default). This issue has been fixed in versions 3.7.13 and 4.1.5. To workaround this issue, users can disable CMS_SAFE_MODE if untrusted template editing is not required, and restrict CMS template editing permissions to fully trusted administrators only.","provenance":"source","from":"CVE.org"},"cvss":{"score":4.9,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0041,"percentile":0.36182,"provenance":"source"},"cwes":[{"id":"CWE-693","name":"Protection Mechanism Failure"},{"id":"CWE-284","name":"Improper Access Control"}],"references":[{"url":"https://github.com/octobercms/october/security/advisories/GHSA-m5qg-jc75-4jp6","tags":["x_refsource_CONFIRM"]}],"priority":{"score":15.7,"factors":[{"name":"EPSS percentile","points":7.24},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":3.43}]},"exploitSources":{"pocGithub":{"count":1,"skipped":0,"earliest":"2026-04-14","earliestUrl":"https://github.com/lukasz-rybak/CVE-2026-22692","repos":[{"name":"lukasz-rybak/CVE-2026-22692","url":"https://github.com/lukasz-rybak/CVE-2026-22692","stars":0,"created":"2026-04-14"}]},"first":{"date":"2026-04-14","source":"PoC-in-GitHub","url":"https://github.com/lukasz-rybak/CVE-2026-22692"},"provenance":"source"},"vendorSlug":"octobercms","affectedVersions":[{"vendor":"octobercms","product":"october","versions":["< 3.7.13",">= 4.0.0, < 4.1.5"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-04-14T19:42:23.040347Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Packagist","package":"october/rain","vulnerableRanges":[">=4.0.0, <4.1.5","<3.7.13"],"patched":["4.1.5","3.7.13"],"from":["GHSA-m5qg-jc75-4jp6"],"provenance":"source"}],"summary":{"text":"October CMS contains a flaw in its optional Twig safe mode (CMS_SAFE_MODE) where certain methods on the collect() helper were not properly restricted, allowing the sandbox to be bypassed. An attacker needs authenticated backend access with CMS template editing permissions, and the issue only affects installations where CMS_SAFE_MODE is enabled, which is not the default.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:04:47Z"},"euvd":{"id":"EUVD-2026-22357","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2017-15284","published":"2017-10-12","fixed":"1.0.426","kev":false},{"cve":"CVE-2020-15128","published":"2020-07-31","fixed":"1.0.468","kev":false},{"cve":"CVE-2021-3311","published":"2021-02-05","fixed":"1.1.2","kev":false},{"cve":"CVE-2026-22692","published":"2026-04-14","fixed":"4.1.5","kev":false},{"cve":"CVE-2026-25125","published":"2026-04-14","fixed":"4.1.10","kev":false,"link":{"from":"CVE-2026-22692","to":"CVE-2026-25125","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:october/rain","fromFixed":"4.1.5","toFixed":"4.1.10","daysApart":0},{"kind":"version-step","provenance":"source","package":"Packagist:october/rain","fromFixed":"3.7.13","toFixed":"3.7.14","daysApart":0}]}},{"cve":"CVE-2026-25133","published":"2026-04-14","fixed":"4.1.10","kev":false,"link":{"from":"CVE-2026-22692","to":"CVE-2026-25133","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:october/rain","fromFixed":"4.1.5","toFixed":"4.1.10","daysApart":0},{"kind":"version-step","provenance":"source","package":"Packagist:october/rain","fromFixed":"3.7.13","toFixed":"3.7.14","daysApart":0}]}}],"package":"Packagist:october/rain"}}