All vulnerabilities

Servers and applications

CVE-2026-46696

Safe Mode Sandbox Bypass via Session Store and Forwarded Builder Calls

Severity
Low 3.3
Published
13 Sept 2026
Last changed
13 Sept 2026
Added to UpHeron
3 Nov 2026
Fixed in
3.7.17
Exploit chance
0.3% in the next 30 daysHigher than 20% of CVEs. EPSS by FIRST, 19 Nov 2026
Weakness
Improper privilege management (CWE-269)Improper access control (CWE-284)
Attack
Over the network · Only under certain conditions · Needs an administrator account · No user action needed
Attacker can
Read some data · Change some data
CVSS vector
CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:L/I:L/A:N
Also known as
GHSA-xv9m-fm3w-8w5x
Sources
Project advisories (GitHub)

Description

A vulnerability was identified 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.

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…

From octobercms/october's security advisory. Shortened; the full text is there.

Workarounds

If upgrading immediately is not possible:

  • 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
Workarounds as given by octobercms/october's security advisory.

Affected software

SoftwareAffected versions
October CMSServers and applications · github:octobercms/october
  • Every version before 3.7.17

About October CMS

content management system

From Wikidata, CC0 1.0.
Monthly downloads (Packagist)
2,621Packagist, 15 Nov 2026
Total downloads (Packagist)
1,056,452Packagist, 15 Nov 2026
GitHub stars
11,159GitHub, 15 Nov 2026
Forks
2,201GitHub, 15 Nov 2026
Latest release
v4.4.0GitHub, 15 Nov 2026
Released
30 Aug 2026GitHub
License
MIT LicenseWikidata
Written in
PHPWikidata
First released
15 May 2014Wikidata
First published on GitHub
26 Nov 2013GitHub

References