CVEReports
CVEReports

Automated vulnerability intelligence platform. Comprehensive reports for high-severity CVEs generated by AI.

Product

  • Home
  • Sitemap
  • RSS Feed

Company

  • About
  • Contact
  • Privacy Policy
  • Terms of Service

© 2026 CVEReports. All rights reserved.

Made with love by Amit Schendel & Alon Barad



GHSA-2XMM-M4WV-3FJH

GHSA-2XMM-M4WV-3FJH: Incomplete Scheme Validation in October CMS Image Resizer

Alon Barad
Alon Barad
Software Engineer

Sep 14, 2026·5 min read·4 visits

Executive Summary (TL;DR)

A flaw in the October CMS image resizer allows processing of non-HTTP protocols, potentially leading to arbitrary code execution via PHAR deserialization.

This report provides a technical analysis of GHSA-2XMM-M4WV-3FJH, an incomplete scheme validation vulnerability in the image resizing utility of October CMS. By exploiting this flaw, authenticated or privileged users can pass dangerous URI schemes to trigger deserialization of untrusted metadata.

Vulnerability Overview

October CMS incorporates an image resizing component that processes local and remote image resources. The core of this system handles URLs and local file paths to retrieve, resize, and cache images.

The vulnerability, designated as GHSA-2XMM-M4WV-3FJH, resides within the scheme validation routine of the image resizer. The component classifies any input string containing the substring :// as an external URL. This over-inclusive classification allows arbitrary URI schemes, including dangerous PHP stream wrappers, to bypass designed validation checks.

This security weakness affects October CMS installations from version 4.3.0 up to, but not including, version 4.3.5. Exploitation of the flaw can lead to untrusted metadata deserialization, which may result in remote code execution under specific conditions.

Root Cause Analysis

The root cause of this vulnerability lies in the implementation of the ResizeImageItem::fromObject() method within October CMS. This method is responsible for instantiating image representation objects based on user-supplied sources.

To determine if a source string represents a remote resource, the logic checks for the presence of the scheme indicator ://. The implementation assumes that any string containing :// is an external HTTP or HTTPS URL, subsequently routing the path to the self::fromUrl() initialization path.

Because the verification is limited to the existence of :// anywhere in the string, attackers can supply non-HTTP schemes like phar://, file://, or ftp://. When subsequent image operations are executed on the parsed path, PHP’s stream wrapper subsystem intercepts the request. For example, processing a phar:// stream triggers the parsing of the PHP Archive (PHAR) manifest, which automatically deserializes any serialized metadata embedded within the archive.

Code Analysis

The following code illustrates the vulnerable routing mechanism. The method incorrectly uses a general substring search to identify external URLs instead of verifying explicit, permitted protocols.

// Vulnerable routing mechanism in ResizeImageItem::fromObject()
public static function fromObject($source) {
    if (is_string($source)) {
        // Loose validation: allows phar:// or file://
        if (strpos($source, '://') !== false) {
            return self::fromUrl($source);
        } 
        // ... local file handling ...
    }
}

The remediation implemented in version 4.3.5 restricts the accepted schemes specifically to HTTP and HTTPS protocols. The updated logic parses the scheme and matches it against an explicit whitelist of safe communication protocols.

// Remediated validation pattern
public static function fromObject($source) {
    if (is_string($source)) {
        $scheme = parse_url($source, PHP_URL_SCHEME);
        // Hardened check: only allow safe http/https schemes
        if ($scheme && in_array(strtolower($scheme), ['http', 'https'])) {
            return self::fromUrl($source);
        }
        // ... local file handling ...
    }
}

Exploitation Methodology

Exploitation of GHSA-2XMM-M4WV-3FJH requires a multi-stage attack path. The attacker must possess credentials or exploit a separate vector to upload a malicious PHP Archive disguised as an innocuous file type onto the server.

The uploaded file contains a serialized PHP object payload designed to trigger a gadget chain present within the application's dependencies. The attacker then submits the payload path using the phar:// stream wrapper to a feature that passes the value directly into the image resizer, such as a vulnerable backend template parameter or an unvalidated frontend input.

When the image resizer attempts to determine the dimensions or process the cached image, it invokes standard PHP filesystem functions. PHP parses the PHAR file structure, deserializes the malicious object from the metadata, and triggers the gadget chain's magic methods, executing code on the underlying operating system.

Impact Assessment

The primary impact of this vulnerability is untrusted deserialization (CWE-502). If an attacker successfully triggers the deserialization of a crafted PHAR archive, they can potentially achieve remote code execution (RCE) in the context of the web server process.

The realization of RCE depends on the presence of a valid deserialization gadget chain within the application's runtime class path. Since October CMS relies on various Laravel components and external Composer libraries, numerous well-documented gadget chains may exist.

The CVSS score is evaluated as 3.9 (Low) due to high requirements for privileges and user interaction. In standard configurations, only authenticated users with administrative or developer-level template authorization can supply strings directly to the image resizer component.

Remediation & Mitigation Guidance

The recommended course of action is upgrading the October CMS package (october/october) to version 4.3.5 or higher. This version implements strict validation of schemes, restricting accepted remote protocols to HTTP and HTTPS.

If immediate upgrading is not possible, organizations should apply defense-in-depth mitigations. Developers must audit Twig templates and PHP controllers to ensure no user-controlled strings are passed directly into the |resize filter or the ResizeImages::resize() API.

Additionally, administrators can disable the PHAR stream wrapper by adding phar to the stream_resolve_include_path configuration or using third-party PHP extensions to restrict the protocols available to PHP's file handling functions.

Technical Appendix

CVSS Score
3.9/ 10
CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:L/I:L/A:L

Affected Systems

October CMS (october/october package)
AttributeDetail
CWE IDCWE-20, CWE-502
Attack VectorNetwork (AV:N)
CVSS Score3.9 (Low)
Exploit StatusPoC (Proof of Concept)
KEV StatusNot Listed
ImpactUntrusted Deserialization / Code Execution
CWE-20
Improper Input Validation

The product receives input that is expected to be validated, but the validation is missing, incorrect, or incomplete, allowing unauthorized inputs.

Vulnerability Timeline

Advisory published on GitHub Security Advisory Database
2026-09-14
October CMS v4.3.5 patch released
2026-09-14

References & Sources

  • [1]GitHub Security Advisory GHSA-2xmm-m4wv-3fjh
  • [2]October CMS Primary Code Repository
  • [3]Advisory Database Reference

Attack Flow Diagram

Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.
Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.

More Reports

•about 2 hours ago•CVE-2026-46696
3.3

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

CVE-2026-46696 identifies a critical sandbox bypass vulnerability in the October CMS platform that affects the Twig template security policy when safe mode is enabled. An authenticated backend user with permissions to modify CMS markup templates can chain unrestricted session store method access with Eloquent database query forwarding omissions. This chain allows the attacker to execute arbitrary raw SQL queries to read system secrets and subsequently write those secrets directly to the active session payload, achieving unauthorized administrative privilege escalation.

Alon Barad
Alon Barad
2 views•8 min read
•about 3 hours ago•CVE-2026-49400
3.3

CVE-2026-49400: PHP Object Injection Sandbox Escape in October CMS SessionMaker

A security vulnerability in October Content Management System (CMS) involves the deserialization of untrusted data (CWE-502) within the backend SessionMaker trait. Prior to the patched versions, October CMS stored widget session states as base64-encoded serialized PHP objects. When loading these states, the application consumed them using unserialize() without enforcing class restrictions (allowed_classes). In configurations where cms.safe_mode is enabled to sandbox users with markup editor privileges, an attacker can exploit this behavior to instantiate arbitrary PHP classes and execute arbitrary code via accessible gadget chains.

Amit Schendel
Amit Schendel
6 views•6 min read
•about 4 hours ago•CVE-2026-56668
8.1

CVE-2026-56668: Privilege Escalation and Cross-Client Audience Bypass in ZITADEL OAuth2 Token Exchange

A security vulnerability in ZITADEL's backend implementation of the OAuth2 Token Exchange endpoint allows authenticated clients to perform scope escalation and cross-client audience bypass. Prior to version 4.15.3, the Token Exchange flow lacked crucial validation logic, enabling low-privilege tokens to be exchanged for high-privilege tokens or tokens valid within other client applications, violating the OAuth2 delegation model.

Alon Barad
Alon Barad
7 views•7 min read
•about 5 hours ago•CVE-2026-76081
5.5

CVE-2026-76081: Improper Role Revocation in ZITADEL Dynamic Project Grants

CVE-2026-76081 is a logical vulnerability in ZITADEL's role cascading logic where updating a Project Grant to drop multiple adjacent roles simultaneously fails to clean up associated User Grants due to an in-place slice mutation error in Go.

Amit Schendel
Amit Schendel
8 views•6 min read
•about 8 hours ago•CVE-2026-59178
9.8

CVE-2026-59178: Authentication Bypass in ESPHome Device Builder Dashboard

An authentication bypass vulnerability in ESPHome Device Builder Dashboard allows unauthenticated remote attackers to gain administrative access. The flaw is caused by a backward compatibility break during an environment variable rename that silently disables dashboard authentication upon upgrade.

Alon Barad
Alon Barad
5 views•6 min read
•about 11 hours ago•CVE-2026-61534
9.1

CVE-2026-61534: Prototype Pollution in confetti yayson JSON:API Deserialization Engine

A critical prototype pollution vulnerability was discovered in the confetti yayson library prior to version 4.3.0. The library deserializes JSON:API structures into internal cache dictionaries mapped with standard JavaScript objects. An attacker can control the cache keys by supplying '__proto__' in properties like type or id, modifying the prototype of all JavaScript objects process-wide.

Amit Schendel
Amit Schendel
4 views•7 min read