October CMS: Twig Sandbox Bypass via Collection Methods
Key facts
- Attack vector
- Network
- Privileges required
- High
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Security bypass
- Confidentiality · integrity · availability
- High · None · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · NVD. Fix status from CNA and GitHub. Impact type from CWE-284.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| October CMS | october | before 3.7.13; 4.0.0 to before 4.1.5 | 3.7.13, 4.1.5 | Patch available | CNA |
| — | october/rain (Packagist) | 4.0.0 to before 4.1.5 | 4.1.5 | Patch available | GHSA-m5qg-jc75-4jp6 |
| — | october/rain (Packagist) | before 3.7.13 | 3.7.13 | Patch available | GHSA-m5qg-jc75-4jp6 |
- october VendorOctober CMS Affected before 3.7.13; 4.0.0 to before 4.1.5 Fixed in 3.7.13, 4.1.5 Patch available CNA
- october/rain (Packagist) Vendor— Affected 4.0.0 to before 4.1.5 Fixed in 4.1.5 Patch available GHSA-m5qg-jc75-4jp6
- october/rain (Packagist) Vendor— Affected before 3.7.13 Fixed in 3.7.13 Patch available GHSA-m5qg-jc75-4jp6
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:octobercms:october:*:*:*:*:*:*:*:* | before 3.7.13; 4.0.0 to before 4.1.5 | Vulnerable | October CMS |
- cpe:2.3:a:octobercms:october:*:*:*:*:*:*:*:* Versions before 3.7.13; 4.0.0 to before 4.1.5 Vulnerable ·October CMS
Remediation
- Fix · CNA october (octobercms) Fixed in 3.7.13, 4.1.5
- Fix · GHSA-m5qg-jc75-4jp6 october/rain (Packagist) Fixed in 4.1.5 Advisory →
- Fix · GHSA-m5qg-jc75-4jp6 october/rain (Packagist) Fixed in 3.7.13 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2026-22692
- 2026-10-03 Alias added: GHSA-m5qg-jc75-4jp6
References
More October CMS October vulnerabilities
- TI-2021-12316 Account Takeover in Octobercms KEVCVSS 3.1CRITICAL 9.1
- TI-2021-12318 Arbitrary code execution in october/system CVSS 3.1HIGH 8.8
- TI-2017-14456 October CMS build 412 is vulnerable to PHP code execution in the file upload… CVSS 3.0HIGH 7.2
- TI-2023-23545 A Cross-Site Scripting (XSS) vulnerability in installation of October v.3.4.16 allows an… CVSS 3.1MEDIUM 5.4
- TI-2023-19223 An arbitrary file upload vulnerability in October CMS v3.4.4 allows attackers to execute… CVSS 3.1MEDIUM 5.4
- TI-2024-30847 October 3.6.30 allows an authenticated admin account to upload a PDF file containing… CVSS 3.1MEDIUM 4.7
Sources
- CVE-2026-22692 · CVE Program
- CVE-2026-22692 · NVD
- FIRST EPSS
- GHSA-m5qg-jc75-4jp6 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences