CVE-2026-22692

MEDIUM

October CMS: Twig Sandbox Bypass via Collection Methods

Title source: cna
STIX 2.1

Exploitation Summary

EIP tracks 1 public exploit for CVE-2026-22692. PoCs published by lukasz-rybak.

AI-analyzed exploit summary The repository provides functional Twig payloads demonstrating a sandbox bypass in October CMS via `collect()->mapInto()`, enabling RCE, LFI, and XXE attacks. The PoC leverages class instantiation to execute arbitrary PHP functions or read files.

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.

Exploits (1)

nomisec WORKING POC
by lukasz-rybak · poc
https://github.com/lukasz-rybak/CVE-2026-22692

The repository provides functional Twig payloads demonstrating a sandbox bypass in October CMS via `collect()->mapInto()`, enabling RCE, LFI, and XXE attacks. The PoC leverages class instantiation to execute arbitrary PHP functions or read files.

Classification
Working Poc 100%
Attack Type
Rce | Lfi | Xxe
Complexity
Moderate
Reliability
Reliable
Target: October CMS (<= 4.1.4, <= 3.7.12)
Auth required
Prerequisites: Authenticated access to October CMS template editor · CMS_SAFE_MODE=true
devstral-2 · analyzed Apr 14, 2026 Full analysis →

References (1)

Core 1
Core References

Scores

CVSS v3 4.9
EPSS 0.0002
EPSS Percentile 5.1%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N

CISA SSVC

Vulnrichment
Exploitation none
Automatable no
Technical Impact partial

Details

CWE
CWE-284 CWE-693
Status published
Products (3)
october/rain 4.0.0 - 4.1.5Packagist
octobercms/october < 3.7.13 (2 CPE variants)
octobercms/october >= 4.0.0, < 4.1.5
Published Apr 14, 2026
Tracked Since Apr 14, 2026