CVE-2026-49400
Received Received - Intake

PHP Object Injection in October CMS via SessionMaker

Vulnerability report for CVE-2026-49400, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-09-14

Last updated on: 2026-09-14

Assigner: GitHub, Inc.

Description

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-09-14
Last Modified
2026-09-14
Generated
2026-09-14
AI Q&A
2026-09-14
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 2 associated CPEs
Vendor Product Version / Range
october_system october_content_management_system to 4.2.21 (exc)
october october_cms to 4.2.21 (exc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-502 The product deserializes untrusted data without sufficiently ensuring that the resulting data will be valid.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

CVE-2026-49400 is a PHP Object Injection vulnerability in October CMS affecting versions before 3.7.17 and 4.2.21. The issue occurs in the backend widget session storage where the SessionMaker trait stored widget session state as base64(serialize(...)) and consumed it with unserialize() without proper class restrictions. This allowed arbitrary PHP object instantiation if an attacker could write to a widget.* session key with malicious serialized data.

Detection Guidance

Detection requires checking October CMS versions and Safe Mode configuration. Use commands like 'php artisan october:version' to verify version. Inspect session storage paths for widget.* keys. Check if cms.safe_mode is enabled in config/cms.php.

Impact Analysis

The vulnerability allows an attacker to instantiate arbitrary PHP classes and potentially execute code via PHP gadget chains. However, exploitation requires Safe Mode to be enabled, which is a niche feature for demo or multi-tenant environments. Standard production deployments are not impacted as Safe Mode is typically disabled.

Compliance Impact

This vulnerability has limited direct impact on compliance with standards like GDPR or HIPAA because it only affects installations with cms.safe_mode enabled, a niche feature for demo or multi-tenant environments. Standard production deployments are not impacted as Safe Mode is typically disabled. The vulnerability requires both Safe Mode enabled and a reachable PHP gadget chain, reducing the risk of unauthorized data access or modification.

Mitigation Strategies

Upgrade October CMS to versions 3.7.17 or 4.2.21 or later. If upgrading is not possible, disable Safe Mode by setting 'cms.safe_mode' to false in config/cms.php. Restrict CMS markup editing access to trusted administrators only.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-49400. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart