# CVE-2026-46696: October CMS: Safe Mode Sandbox Bypass via Session Store and Forwarded Builder Calls

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** LOW 3.3
- **CVSS:** 3.3 (v3.1, CNA) `CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:L/I:L/A:N`
- **CVSS metrics:** Attack vector: Network; Attack complexity: High; Privileges required: High; User interaction: None; Scope: Unchanged; Confidentiality impact: Low; Integrity impact: Low; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, login needed
- **EPSS:** 0.27% (percentile 12, 2026-11-26)
- **CWE:** CWE-269, CWE-284
- **Aliases:** GHSA-xv9m-fm3w-8w5x
- **Published:** 2026-09-14T16:02:35.000Z
- **Modified:** 2026-09-30T19:57:08.043Z

## Who should check

- Projects that depend on Packagist package october/system (\< 3.7.17)
- Anyone running octobercms system \< 3.7.17; \>= 4.0.0, \< 4.2.23

## Description

October System provides the system module for October Content Management System. Versions prior to 3.7.17 and 4.2.21 have a vulnerability in the Twig sandbox security policy that allowed a chained bypass when \`cms.safe\_mode\` is enabled. The Laravel session store was exposed to Twig with unrestricted method access, and raw SQL methods reachable through Eloquent's \`\_\_call\` forwarding were not blocked across the full builder chain. When combined, a backend user with CMS markup editing access could read arbitrary database values via raw SQL expressions and write to the backend authentication session key, forging a backend session as another existing user. The scope of impact is narrow. Safe Mode is a niche feature, primarily used for demo installations and multi-tenant or shared-editor scenarios where untrusted users are deliberately granted access to the CMS markup editor. Standard production deployments do not enable Safe Mode, because under normal October CMS guidance backend access - including markup editing - is restricted to trusted administrators, and direct PHP injection through markup is already possible without Safe Mode in that configuration. This issue only affects sites that meet all of the following conditions: \`cms.safe\_mode\` is enabled (a deliberate opt-in for demos or untrusted-editor scenarios; the site has at least one backend user with CMS markup editing access who is not intended to be trusted as a full administrator; and the site has at least one existing superuser account whose session the lower-privileged user can impersonate. The vulnerability has been patched in v3.7.17 and v4.2.21. The Laravel session store is now wrapped in a proxy that exposes only an explicit subset of read/write methods and rejects writes to reserved session key prefixes (\`admin\_auth\`, \`october\_auth\`, \`login\_\*\`, \`\_token\`, and other framework internals). Raw SQL and subquery methods (\`selectRaw\`, \`whereRaw\`, \`orderByRaw\`, \`joinSub\`, and related) are now blocked on \`Query\\Builder\`, \`Eloquent\\Builder\`, and \`Eloquent\\Model\` so the blocklist is consistent across the \`\_\_call\` forwarding chain. All sites that enable \`cms.safe\_mode\` are encouraged to upgrade to the latest patched version. A workaround is available. Restrict CMS markup editing access to fully trusted administrators only - the standard October CMS recommendation for any deployment. Note that disabling \`cms.safe\_mode\` is not a workaround; Safe Mode is the boundary this issue affects, and disabling it removes the only sandbox between markup editors and the server.

## Affected and fixed versions

- Packagist `october/system`: affected \< 3.7.17; fixed 3.7.17, 4.2.23 (osv)
- octobercms system: \< 3.7.17; \>= 4.0.0, \< 4.2.23 (cvelist)

## Mitigation

- Upgrade october/system to one of 3.7.17, 4.2.23 (or later in the same release line).

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-46696. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-46696.md
Affected: october/system < 3.7.17
Fixed in: 3.7.17, 4.2.23

Steps:
1. Search this machine and project for october/system (Packagist), octobercms system: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-46696 being exploited?

There is no confirmed exploitation: CVE-2026-46696 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.27% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-46696?

Low: CVSS 3.3 (v3.1, scored by CNA). Remote, login needed. The attack needs conditions outside the attacker's control, which makes it harder.

### Which versions are affected by CVE-2026-46696?

october/system \< 3.7.17.

### Is there a fix for CVE-2026-46696?

Yes. Fixed in 3.7.17, 4.2.23. Upgrade october/system to one of 3.7.17, 4.2.23 (or later in the same release line).

### How do I check if I'm affected by CVE-2026-46696?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/octobercms/october/security/advisories/GHSA-xv9m-fm3w-8w5x>
- other: <https://github.com/octobercms/october>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-46696>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-xv9m-fm3w-8w5x> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2026-46696> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-46696>
