Sep 14, 2026·5 min read·15 visits
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.
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.
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.
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 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.
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.
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.
CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:L/I:L/A:L| Attribute | Detail |
|---|---|
| CWE ID | CWE-20, CWE-502 |
| Attack Vector | Network (AV:N) |
| CVSS Score | 3.9 (Low) |
| Exploit Status | PoC (Proof of Concept) |
| KEV Status | Not Listed |
| Impact | Untrusted Deserialization / Code Execution |
The product receives input that is expected to be validated, but the validation is missing, incorrect, or incomplete, allowing unauthorized inputs.
CVE-2026-9639 (GHSA-j93m-3j9p-m5m8) is a null pointer dereference vulnerability in Canonical LXD affecting versions 5.0.0 through 5.21.4 and 6.0 through 6.8. The flaw resides in the (*lxdBackend).CreateCustomVolumeFromBackup method within lxd/storage/backend_lxd.go. An authenticated attacker with the can_create_storage_volumes permission can upload a crafted custom volume backup tarball that omits the expires_at field on a snapshot entry, triggering an unhandled SIGSEGV panic and terminating the LXD daemon.
An operating system command injection vulnerability (CWE-78) exists in GeoNode versions prior to 5.1.0. The vulnerability occurs in the vector upload processing pipeline when handling user-supplied geospatial files. By supplying a crafted layer name containing shell metacharacters, an authenticated attacker with basic data upload privileges can execute arbitrary commands on the underlying server or container hosting the GeoNode application and Celery worker processes.
GeoNode versions prior to 5.0.3 contain an unrestricted file upload vulnerability (CWE-434) within the document and dataset ingestion architecture. Authenticated low-privileged users can bypass upload validation via direct REST API interactions, file extension masquerading, metadata mutation via PATCH requests, or malicious archive submissions. This allows attackers to store and serve dangerous file types, alter on-disk file references, or trigger path traversal and resource exhaustion during archive extraction.
CVE-2026-55649 is a stored Cross-Site Scripting (XSS) vulnerability in GeoNode versions prior to 5.0.3. The flaw exists because document abstract metadata fields are ingested via the metadata management pipeline and stored in the backend database without HTML sanitization or input neutralization. An authenticated attacker with privileges to create or edit document metadata can inject arbitrary HTML and JavaScript payloads into these fields. When another user, such as an administrator, views the affected document page or catalog listing, the unencoded payload is rendered into the Document Object Model (DOM) and executes within the victim's browser session.
CVE-2026-55622 (GHSA-qx75-2p3r-pwm5) is an improper access control vulnerability (CWE-284) in Canonical LXD and LXC Incus (tracked as GHSA-c9f5-j9c3-mhrg). In multi-tenant deployments utilizing project-based isolation, the REST API handler for instance creation via POST /1.0/instances verifies that the authenticated user has authorization in the destination project specified by the query parameter, but fails to verify whether the user holds read or view permissions for the source instance when executing a copy operation across projects. Consequently, an authenticated client restricted to a single project can clone instances or snapshots from unauthorized projects into their own project, resulting in complete disclosure of the target instance filesystem and embedded credentials.
An authorization bypass vulnerability in Canonical LXD (tracked as GHSA-7mr3-28h5-m5vx and CVE-2026-55621, and as GHSA-64f3-v33m-w89f in Linux Containers Incus) allows an authenticated user with restricted project access to copy custom storage volumes and volume snapshots from unauthorized projects. The flaw resides in the storagePoolVolumesPost REST API handler, which verifies permissions on the destination project but fails to check whether the caller holds view entitlements on the source project or volume specified in the request body.