Mar 24, 2026·6 min read·74 visits
Unauthenticated users can view private assets by exploiting a missing authorization check in the Craft CMS image transformation endpoint, leading to information disclosure.
Craft CMS suffers from a missing authorization vulnerability in its image transformation endpoint. Unauthenticated attackers can generate and retrieve transformed versions of private assets by exploiting an insecure direct object reference (IDOR) flaw in the AssetsController.
Craft CMS contains a moderate-severity information disclosure vulnerability within its asset management subsystem. The vulnerability resides specifically in the AssetsController component, which handles dynamic image transformations. This component exposes an endpoint that processes user-supplied parameters to generate derived works from original media files.
The core issue is a missing authorization check (CWE-862) that leads to an insecure direct object reference (CWE-639). When a user requests an image transformation via the assets/generate-transform endpoint, the application fails to verify if the requester holds the requisite "View" permissions for the target asset. This failure allows unauthenticated, anonymous users to supply arbitrary asset identifiers and successfully trigger the transformation process.
While the base severity score is evaluated as Low (CVSS 2.7), the vulnerability introduces a direct breach of confidentiality for systems relying on Craft CMS to secure private media. The exposure is limited to transformed derivatives rather than the full-resolution source files, but this distinction is often negligible when the visual content itself is the sensitive material.
The actionGenerateTransform method in src/controllers/AssetsController.php processes requests to dynamically resize, crop, or alter images. The application relies on an assetId to locate the source file and a handle to determine the specific transformation parameters. These values are extracted directly from the incoming POST request body.
Prior to the patch, the execution flow within this method contained a critical oversight in its primary request handling branch. The code successfully retrieved the POST parameters and instantiated the transformation process, but it completely omitted any contextual permission checks. The system blindly trusted the presence of a valid assetId without correlating it to the current user's session or authorization state.
This logical disconnect creates a state where private assets residing in restricted, non-web-accessible volumes are temporarily exposed. The transformation subsystem generates the derivative file and places it into a public cache or serves it via a cryptographically signed URL. By successfully invoking the transformation process, the attacker bridges the gap between a secure storage volume and public accessibility.
The vulnerability is localized to a specific conditional branch within the AssetsController. When processing standard transform generation requests, the controller drops into an else block to parse the assetId and handle parameters. In the vulnerable implementation, this block immediately accesses the request parameters without invoking the system's permission enforcement mechanisms.
@@ -1142,6 +1142,7 @@ public function actionGenerateTransform(?int $transformId = null): Response
throw new ServerErrorHttpException('Image transform cannot be created.', previous: $e);
}
} else {
+ $this->requirePermission('accessCp');
$assetId = $this->request->getRequiredBodyParam('assetId');
$handle = $this->request->getRequiredBodyParam('handle');The remediation introduces a mandatory $this->requirePermission('accessCp') invocation directly at the start of the execution block. This single line of code fundamentally alters the endpoint's accessibility profile. The controller now abruptly terminates the request and returns an HTTP 403 Forbidden response if the caller lacks Control Panel access privileges.
Furthermore, the patch implements defense-in-depth measures across the broader controller. The developers identified related endpoints, such as actionPreviewThumb and actionEditImage, and enforced volume-level permission checks using requireVolumePermissionByAsset. This comprehensive approach ensures that variant attack paths targeting different asset manipulation routines are simultaneously mitigated.
Exploitation requires minimal prerequisites. An attacker only requires network access to the target Craft CMS deployment and knowledge of standard transformation handles. The target system must have an accessible assets/generate-transform route, which is available by default in vulnerable configurations. No authentication or specialized network positioning is necessary.
The attack begins with the enumeration of valid asset identifiers. Because assetId values in Craft CMS are typically assigned as sequential integers, an attacker can iterate through a numerical range. The attacker issues a POST request containing a guessed assetId and a common transform handle, such as a standard thumbnail specification.
Upon receiving the request, the vulnerable controller processes the image and responds with a JSON payload containing a signed URL for the newly generated asset. The attacker completes the exploitation sequence by issuing a GET request to this signed URL, thereby retrieving the image bytes. This process bypasses all volume-level restrictions that natively protect the source file.
The primary security consequence of CVE-2026-33160 is unauthorized information disclosure. Attackers gain read access to the visual contents of arbitrary private assets managed by the CMS. This exposure directly violates the confidentiality guarantees provided by private storage volumes in Craft CMS.
The technical impact is restricted strictly to transformed derivatives. Attackers cannot extract the original, unaltered source files, nor can they retrieve associated metadata stored within the database. The transformation process frequently involves downscaling or compression, meaning the disclosed files may lack the fidelity of the source material.
Despite this limitation, the contextual impact can be substantial depending on the target environment. Installations utilizing Craft CMS to manage embargoed product imagery, confidential medical documents, or private user uploads are at significant risk. The disclosure of a high-resolution thumbnail is often sufficient to compromise the sensitive information contained within the original asset.
The definitive mitigation strategy is to upgrade the Craft CMS installation to a patched version. Administrators running the 4.x release line must update to version 4.17.8 or later. Deployments operating on the 5.x release line require an update to version 5.9.14 or later. These releases contain the necessary code changes to enforce proper authorization constraints on the AssetsController.
Organizations should review their user group configurations to verify the principle of least privilege. The patched implementation specifically requires the accessCp permission to interact with the transform generation endpoint. Administrators must ensure that this permission is exclusively granted to trusted personnel who require access to the Control Panel.
In environments where immediate patching is strictly prohibited by operational constraints, network-level mitigations can be temporarily applied. Web Application Firewall (WAF) rules can be configured to block external, unauthenticated POST requests targeting the /assets/generate-transform URI. This temporary measure prevents exploitation from anonymous actors while allowing internal administrators to utilize the functionality.
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N/E:U| Product | Affected Versions | Fixed Version |
|---|---|---|
Craft CMS Pixel & Tonic | 4.0.0-RC1 < 4.17.8 | 4.17.8 |
Craft CMS Pixel & Tonic | 5.0.0-RC1 < 5.9.14 | 5.9.14 |
| Attribute | Detail |
|---|---|
| CWE ID | CWE-862 / CWE-639 |
| Attack Vector | Network |
| CVSS v4.0 Score | 2.7 |
| Impact | Information Disclosure |
| Exploit Status | Proof of Concept |
| Authentication Required | None |
The software does not perform an authorization check when an actor attempts to access a resource or perform an action.
NATS Server prior to versions 2.12.8 and 2.14.3 contains an incorrect authorization vulnerability (CWE-863) in its message tracing subsystem. When evaluating whether a connection is permitted to publish trace events to a destination subject specified in the Nats-Trace-Dest header, the server only checks standard client permissions and omits permission checks for leaf node connections. This allows a connected leaf node operator with restricted publishing privileges to emit internal trace events to unauthorized subjects and suppress standard message delivery using the Nats-Trace-Only header.
CVE-2026-63341 is a high-severity Denial of Service (DoS) vulnerability in the Aedes MQTT broker for Node.js affecting all versions prior to 1.1.1. The flaw stems from missing input validation on the hierarchical depth of incoming MQTT topic strings before they are passed to the underlying topic-matching engine, qlobber. Because qlobber enforces a hardcoded limit of 100 topic levels and throws a synchronous exception when this threshold is exceeded, an attacker can send a single MQTT packet containing 101 or more forward-slash-separated levels to trigger an uncaught exception that immediately terminates the Node.js broker process.
CVE-2026-61725 is a path traversal vulnerability (CWE-22) in the sevenz-rust2 Cargo package prior to version 0.21.1. The vulnerability occurs because the decompression utility fails to validate or sanitize archive entry filenames before joining them with the destination directory path via std::path::Path::join. An attacker who supplies a crafted 7z archive containing parent directory traversal sequences or absolute paths can write or overwrite arbitrary files on the host filesystem with the privileges of the extracting process.
CVE-2026-77309 (GHSA-jrjx-9jjw-747m) is a high-severity unauthenticated remote code execution vulnerability affecting NASA-AMMOS AIT-GUI versions 1.0.0 through 2.5.0. The flaw results from chaining an incomplete file cleanup error in the telemetry query endpoint (/tlm/query) with a directory traversal flaw in the script execution endpoint (/script/run). An attacker on an adjacent network can stage arbitrary Python statements into a static file on disk and execute that file under the privileges of the AIT-GUI web server process.
A vulnerability classified under CWE-116 (Improper Encoding or Escaping of Output) exists in memtomem-stm versions 0.1.0 through 0.1.33. The software acts as a Model Context Protocol (MCP) short-term memory proxy gateway for AI agent architectures. When surfacing retrieved memories and scratchpad items into downstream Large Language Model (LLM) context envelopes, the SurfacingFormatter component fails to properly sanitize untrusted memory attributes. An attacker with the ability to plant untrusted content into the agent's long-term or working memory store can inject arbitrary structural delimiters, close the <surfaced-memories> XML boundary prematurely, visually obscure instructions using Unicode bidirectional overrides, and execute stored prompt injection attacks against downstream LLM agents.
CVE-2026-77331 (GHSA-72jh-722p-rqr3) is a concurrency and session-state synchronization vulnerability in memtomem-stm, a short-term memory proxy gateway for AI agents. In versions 0.1.2 prior to 0.1.34, concurrent Model Context Protocol (MCP) Remote Procedure Call (RPC) failures or mid-flight task cancellations can initiate duplicate reconnect loops and permit dirty or cancelled transport sessions to be reused. This deficiency results in session-state integrity loss and local service degradation.