Skip to content
OpenAdvisories
Medium · 4.9 Public exploit CVE-2026-22692 EUVD-2026-22357GHSA-m5qg-jc75-4jp6

October CMS: Twig Sandbox Bypass via Collection Methods

Published Apr 14, 2026 · Updated Apr 14, 2026 · Assigned by GitHub_M

Description

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.

Affected products

VendorProductAffectedFixed
octobercms october < 3.7.13, >= 4.0.0, < 4.1.5 —

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 1 repository

  • lukasz-rybak/CVE-2026-22692 ★ 0 · Apr 14, 2026

    CVE-2026-22692 - Critical Twig Sandbox Bypass via collect()->mapInto() allowing RCE/LFI/XXE in October CMS

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Affected packages

EcosystemPackageAffectedFixedRecord
Packagist october/rain >= 4.0.0, < 4.1.5 4.1.5 GHSA-m5qg-jc75-4jp6
Packagist october/rain < 3.7.13 3.7.13 GHSA-m5qg-jc75-4jp6

References