October CMS: PHP Object Injection via Backend Widget Session Storage
Key facts
- Attack vector
- Network
- Privileges required
- High
- User interaction
- None
- Attack complexity
- High
- Impact type
- Code execution
- Confidentiality · integrity · availability
- Low · Low · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-502.
Summary
October System provides the system module for October Content Management System. Prior to versions 3.7.17 and 4.2.21, the backend `SessionMaker` trait stored widget session state as `base64(serialize(...))` and consumed it with `unserialize()` without an `allowed_classes` restriction. Any code path that could write to a `widget.*` session key with attacker-controlled bytes could trigger PHP object injection the next time the widget read its session state, allowing instantiation of arbitrary classes and reachable PHP gadget chains. This issue only affects installations running with `cms.safe_mode` enabled. Safe Mode is a niche opt-in 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. In standard production deployments Safe Mode is off, backend access is restricted to trusted administrators, and a markup editor can already execute arbitrary PHP directly. The session-write path that reaches this sink is gated by the Safe Mode sandbox, so installations without Safe Mode enabled are not exposed. Scope of impact is narrow even with Safe Mode enabled. The standard backend code paths that populate widget session state (search terms, sort options, selected IDs, filter values) wrap the input inside a known array shape before serializing, so user-supplied values never reach `unserialize()` as a controllable serialized payload. Exploitation requires the Safe Mode session-write path together with a suitable PHP gadget chain reachable from the installed dependency set. The hardening below removes the underlying object-injection sink so the class of issue is closed off regardless. The vulnerability has been patched in v3.7.17 and v4.2.21. Two changes were applied. `Backend\Traits\SessionMaker` now stores widget session state as plain JSON instead of `base64(serialize(...))`, eliminating the object-injection sink entirely for new writes. Reads transparently fall back to the legacy format for one upgrade cycle so existing sessions retain their saved widget state. The legacy `unserialize()` fallback path now sets `allowed_classes => false`, so even values written before the upgrade cannot instantiate objects. As a workaround, restrict CMS markup editing access to fully trusted administrators only, the standard October CMS recommendation for any deployment.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| October CMS | october | before 3.7.17; 4.0.0 to before 4.2.23 | 3.7.17, 4.2.23 | Patch available | CNA |
| — | october/system (Packagist) | before 3.7.17 | 3.7.17 | Patch available | GHSA-2ff2-mx52-q8wp |
| — | october/system (Packagist) | 4.0.0 to before 4.2.23 | 4.2.23 | Patch available | GHSA-2ff2-mx52-q8wp |
- october VendorOctober CMS Affected before 3.7.17; 4.0.0 to before 4.2.23 Fixed in 3.7.17, 4.2.23 Patch available CNA
- october/system (Packagist) Vendor— Affected before 3.7.17 Fixed in 3.7.17 Patch available GHSA-2ff2-mx52-q8wp
- october/system (Packagist) Vendor— Affected 4.0.0 to before 4.2.23 Fixed in 4.2.23 Patch available GHSA-2ff2-mx52-q8wp
CPE names Threatist (inferred) · 1
Inferred from how NVD named this product before; not given by a source.
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:octobercms:october:*:*:*:*:*:*:*:* | — | — | October CMS |
- cpe:2.3:a:octobercms:october:*:*:*:*:*:*:*:* Versions — — ·October CMS
Remediation
- Fix · CNA october (octobercms) Fixed in 3.7.17, 4.2.23
- Fix · GHSA-2ff2-mx52-q8wp october/system (Packagist) Fixed in 3.7.17 Advisory →
- Fix · GHSA-2ff2-mx52-q8wp october/system (Packagist) Fixed in 4.2.23 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2026-49400
- 2026-10-03 Alias added: GHSA-2ff2-mx52-q8wp
References
More October CMS vulnerabilities
- TI-2021-12316 Account Takeover in Octobercms KEVCVSS 3.1CRITICAL 9.1
- TI-2021-12318 Arbitrary code execution in october/system CVSS 3.1HIGH 8.8
- TI-2017-14456 October CMS build 412 is vulnerable to PHP code execution in the file upload… CVSS 3.0HIGH 7.2
- TI-2023-23545 A Cross-Site Scripting (XSS) vulnerability in installation of October v.3.4.16 allows an… CVSS 3.1MEDIUM 5.4
- TI-2023-19223 An arbitrary file upload vulnerability in October CMS v3.4.4 allows attackers to execute… CVSS 3.1MEDIUM 5.4
- TI-2024-30847 October 3.6.30 allows an authenticated admin account to upload a PDF file containing… CVSS 3.1MEDIUM 4.7
Sources
- CVE-2026-49400 · CVE Program
- CVE-2026-49400 · NVD
- FIRST EPSS
- GHSA-2ff2-mx52-q8wp · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences