Skip to content

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

LowCVSS 3.3 EPSS 0.27%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: partial
Technology
PHPLaravel

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.

Upgrade path

2 packages: 1 fixed.

PackageAffectedFixed inStatus
october/system(Packagist) < 3.7.17; = v1.0.319; = v1.0.320; = v1.0.321 +167 more 3.7.17, 4.2.23 Fixed
octobercms system = < 3.7.17; = >= 4.0.0, < 4.2.23 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
october/system(Packagist) < 3.7.17 3.7.17
october/system(Packagist) = v1.0.319 No fix listed
october/system(Packagist) = v1.0.320 No fix listed
october/system(Packagist) = v1.0.321 No fix listed
october/system(Packagist) = v1.0.322 No fix listed
october/system(Packagist) = v1.0.323 No fix listed
october/system(Packagist) = v1.0.324 No fix listed
october/system(Packagist) = v1.0.325 No fix listed
october/system(Packagist) = v1.0.326 No fix listed
october/system(Packagist) = v1.0.327 No fix listed
october/system(Packagist) = v1.0.328 No fix listed
october/system(Packagist) = v1.0.329 No fix listed
october/system(Packagist) = v1.0.330 No fix listed
october/system(Packagist) = v1.0.331 No fix listed
october/system(Packagist) = v1.0.332 No fix listed
october/system(Packagist) = v1.0.333 No fix listed
october/system(Packagist) = v1.0.334 No fix listed
october/system(Packagist) = v1.0.335 No fix listed
october/system(Packagist) = v1.0.336 No fix listed
october/system(Packagist) = v1.0.337 No fix listed
october/system(Packagist) = v1.0.338 No fix listed
october/system(Packagist) = v1.0.339 No fix listed
october/system(Packagist) = v1.0.340 No fix listed
october/system(Packagist) = v1.0.341 No fix listed
october/system(Packagist) = v1.0.342 No fix listed
Show 148 more
ProductAffected versionsFixed in
october/system(Packagist) = v1.0.343 No fix listed
october/system(Packagist) = v1.0.344 No fix listed
october/system(Packagist) = v1.0.345 No fix listed
october/system(Packagist) = v1.0.346 No fix listed
october/system(Packagist) = v1.0.347 No fix listed
october/system(Packagist) = v1.0.348 No fix listed
october/system(Packagist) = v1.0.349 No fix listed
october/system(Packagist) = v1.0.350 No fix listed
october/system(Packagist) = v1.0.351 No fix listed
october/system(Packagist) = v1.0.352 No fix listed
october/system(Packagist) = v1.0.353 No fix listed
october/system(Packagist) = v1.0.354 No fix listed
october/system(Packagist) = v1.0.355 No fix listed
october/system(Packagist) = v1.0.356 No fix listed
october/system(Packagist) = v1.0.357 No fix listed
october/system(Packagist) = v1.0.358 No fix listed
october/system(Packagist) = v1.0.359 No fix listed
october/system(Packagist) = v1.0.360 No fix listed
october/system(Packagist) = v1.0.361 No fix listed
october/system(Packagist) = v1.0.362 No fix listed
october/system(Packagist) = v1.0.363 No fix listed
october/system(Packagist) = v1.0.364 No fix listed
october/system(Packagist) = v1.0.365 No fix listed
october/system(Packagist) = v1.0.366 No fix listed
october/system(Packagist) = v1.0.367 No fix listed
october/system(Packagist) = v1.0.368 No fix listed
october/system(Packagist) = v1.0.369 No fix listed
october/system(Packagist) = v1.0.370 No fix listed
october/system(Packagist) = v1.0.371 No fix listed
october/system(Packagist) = v1.0.372 No fix listed
october/system(Packagist) = v1.0.373 No fix listed
october/system(Packagist) = v1.0.374 No fix listed
october/system(Packagist) = v1.0.375 No fix listed
october/system(Packagist) = v1.0.376 No fix listed
october/system(Packagist) = v1.0.377 No fix listed
october/system(Packagist) = v1.0.378 No fix listed
october/system(Packagist) = v1.0.379 No fix listed
october/system(Packagist) = v1.0.380 No fix listed
october/system(Packagist) = v1.0.381 No fix listed
october/system(Packagist) = v1.0.382 No fix listed
october/system(Packagist) = v1.0.383 No fix listed
october/system(Packagist) = v1.0.384 No fix listed
october/system(Packagist) = v1.0.385 No fix listed
october/system(Packagist) = v1.0.386 No fix listed
october/system(Packagist) = v1.0.387 No fix listed
october/system(Packagist) = v1.0.388 No fix listed
october/system(Packagist) = v1.0.389 No fix listed
october/system(Packagist) = v1.0.390 No fix listed
october/system(Packagist) = v1.0.391 No fix listed
october/system(Packagist) = v1.0.392 No fix listed
october/system(Packagist) = v1.0.393 No fix listed
october/system(Packagist) = v1.0.394 No fix listed
october/system(Packagist) = v1.0.395 No fix listed
october/system(Packagist) = v1.0.396 No fix listed
october/system(Packagist) = v1.0.397 No fix listed
october/system(Packagist) = v1.0.398 No fix listed
october/system(Packagist) = v1.0.399 No fix listed
october/system(Packagist) = v1.0.400 No fix listed
october/system(Packagist) = v1.0.401 No fix listed
october/system(Packagist) = v1.0.402 No fix listed
october/system(Packagist) = v1.0.403 No fix listed
october/system(Packagist) = v1.0.404 No fix listed
october/system(Packagist) = v1.0.405 No fix listed
october/system(Packagist) = v1.0.406 No fix listed
october/system(Packagist) = v1.0.407 No fix listed
october/system(Packagist) = v1.0.408 No fix listed
october/system(Packagist) = v1.0.409 No fix listed
october/system(Packagist) = v1.0.410 No fix listed
october/system(Packagist) = v1.0.411 No fix listed
october/system(Packagist) = v1.0.412 No fix listed
october/system(Packagist) = v1.0.413 No fix listed
october/system(Packagist) = v1.0.414 No fix listed
october/system(Packagist) = v1.0.415 No fix listed
october/system(Packagist) = v1.0.416 No fix listed
october/system(Packagist) = v1.0.417 No fix listed
october/system(Packagist) = v1.0.418 No fix listed
october/system(Packagist) = v1.0.419 No fix listed
october/system(Packagist) = v1.0.420 No fix listed
october/system(Packagist) = v1.0.421 No fix listed
october/system(Packagist) = v1.0.422 No fix listed
october/system(Packagist) = v1.0.423 No fix listed
october/system(Packagist) = v1.0.424 No fix listed
october/system(Packagist) = v1.0.425 No fix listed
october/system(Packagist) = v1.0.426 No fix listed
october/system(Packagist) = v1.0.427 No fix listed
october/system(Packagist) = v1.0.428 No fix listed
october/system(Packagist) = v1.0.429 No fix listed
october/system(Packagist) = v1.0.430 No fix listed
october/system(Packagist) = v1.0.431 No fix listed
october/system(Packagist) = v1.0.432 No fix listed
october/system(Packagist) = v1.0.433 No fix listed
october/system(Packagist) = v1.0.434 No fix listed
october/system(Packagist) = v1.0.435 No fix listed
october/system(Packagist) = v1.0.436 No fix listed
october/system(Packagist) = v1.0.437 No fix listed
october/system(Packagist) = v1.0.438 No fix listed
october/system(Packagist) = v1.0.439 No fix listed
october/system(Packagist) = v1.0.440 No fix listed
october/system(Packagist) = v1.0.441 No fix listed
october/system(Packagist) = v1.0.442 No fix listed
october/system(Packagist) = v1.0.443 No fix listed
october/system(Packagist) = v1.0.444 No fix listed
october/system(Packagist) = v1.0.445 No fix listed
october/system(Packagist) = v1.0.446 No fix listed
october/system(Packagist) = v1.0.447 No fix listed
october/system(Packagist) = v1.0.448 No fix listed
october/system(Packagist) = v1.0.449 No fix listed
october/system(Packagist) = v1.0.450 No fix listed
october/system(Packagist) = v1.0.451 No fix listed
october/system(Packagist) = v1.0.452 No fix listed
october/system(Packagist) = v1.0.453 No fix listed
october/system(Packagist) = v1.0.454 No fix listed
october/system(Packagist) = v1.0.455 No fix listed
october/system(Packagist) = v1.0.456 No fix listed
october/system(Packagist) = v1.0.457 No fix listed
october/system(Packagist) = v1.0.458 No fix listed
october/system(Packagist) = v1.0.459 No fix listed
october/system(Packagist) = v1.0.460 No fix listed
october/system(Packagist) = v1.0.461 No fix listed
october/system(Packagist) = v1.0.462 No fix listed
october/system(Packagist) = v1.0.463 No fix listed
october/system(Packagist) = v1.0.464 No fix listed
october/system(Packagist) = v1.0.465 No fix listed
october/system(Packagist) = v1.0.466 No fix listed
october/system(Packagist) = v1.0.467 No fix listed
october/system(Packagist) = v1.0.468 No fix listed
october/system(Packagist) = v1.0.469 No fix listed
october/system(Packagist) = v1.0.470 No fix listed
october/system(Packagist) = v1.0.471 No fix listed
october/system(Packagist) = v1.0.472 No fix listed
october/system(Packagist) = v1.0.473 No fix listed
october/system(Packagist) = v1.0.474 No fix listed
october/system(Packagist) = v1.0.475 No fix listed
october/system(Packagist) = v1.0.476 No fix listed
october/system(Packagist) = v1.1.0 No fix listed
october/system(Packagist) = v1.1.1 No fix listed
october/system(Packagist) = v1.1.10 No fix listed
october/system(Packagist) = v1.1.11 No fix listed
october/system(Packagist) = v1.1.12 No fix listed
october/system(Packagist) = v1.1.2 No fix listed
october/system(Packagist) = v1.1.3 No fix listed
october/system(Packagist) = v1.1.4 No fix listed
october/system(Packagist) = v1.1.5 No fix listed
october/system(Packagist) = v1.1.6 No fix listed
october/system(Packagist) = v1.1.9 No fix listed
october/system(Packagist) >= 4.0.0, < 4.2.23 4.2.23
octobercms system = < 3.7.17 No fix listed
octobercms system = >= 4.0.0, < 4.2.23 No fix listed

References