CVE-2026-22692
published medium CVSS 3.1 · 4.9October CMS: Twig Sandbox Bypass via Collection Methods
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| octobercms | — | october< 3.7.13 · >= 4.0.0, < 4.1.5 | Affected | Not stated | 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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 4.9 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| octobercms | october | < 3.7.13 (affected)>= 4.0.0, < 4.1.5 (affected) | GitHub_M · cna |
Weaknesses
2- CWE-693 CWE-693: Protection Mechanism Failure
- CWE-284 CWE-284: Improper Access Control
References
1Provider assertions
2GitHub_M · cna
October CMS: Twig Sandbox Bypass via Collection Methods
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- c24be4a1b63967c354ec2a8a61a48c9933473b3a6c39edf4f11e922f516042a4
- Ingested
- 23 Sep 2026, 09:05:30 UTC
- Source record
- Official CVE record