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-X76W-8C62-48MG

GHSA-X76W-8C62-48MG: Missing Authorization in Craft CMS AssetsController Leads to Private Asset Disclosure

Alon Barad
Alon Barad
Software Engineer

Jul 6, 2026·6 min read·18 visits

Executive Summary (TL;DR)

Low-privileged Control Panel users can retrieve signed preview links for restricted assets due to missing authorization checks in the preview-thumb endpoint.

An improper authorization vulnerability in Craft CMS allows authenticated Control Panel users to bypass volume view permissions and access signed fallback transform preview links for private assets via the assets/preview-thumb action.

Vulnerability Overview

Craft CMS incorporates an asset management system designed to regulate access to files hosted across various storage volumes. Administrators frequently configure private volumes to ensure that sensitive files, such as financial records or proprietary assets, are restricted to authorized user groups. This access control framework is intended to validate permissions dynamically before serving files or related metadata to Control Panel users.

An improper authorization vulnerability exists within the Control Panel's asset preview mechanism, specifically inside the file preview endpoint. This vulnerability allows an authenticated Control Panel user with minimal permissions to bypass volume-level access controls. By interacting with a specific API endpoint, the user can obtain access to signed fallback transform links associated with any private asset.

The core of the security boundary failure lies in the difference between accessing the physical asset and requesting its generated preview. While direct asset retrieval is protected by authorization checks, the preview generation logic failed to execute comparable verification. Consequently, the application exposes preview representations of private assets to any authenticated user who can supply the target asset identifier.

Root Cause Analysis

The vulnerability originates in the actionPreviewFile method located within the src/controllers/AssetsController.php file of Craft CMS. This controller action handles user requests to generate visual previews of assets in the Control Panel. When a request is received, the method retrieves the corresponding asset from the database using the user-provided asset identifier.

After retrieving the asset, the controller initializes the appropriate asset preview handler and invokes its getPreviewHtml method to render the HTML structure. This HTML includes a signed URL that points to a temporary fallback transform representing the asset thumbnail. The generation of this signed URL acts as a cryptographic authorization bypass, allowing the recipient to access the thumbnail directly.

The critical defect is the complete absence of permission checks within this execution path. The controller assumed that any user capable of reaching the endpoint was authorized to view the asset metadata and its preview. Consequently, the application does not evaluate whether the active session possesses the viewAssets or viewPeerAssets permission for the specific volume housing the target asset.

Code Analysis

To understand the technical mechanics of this defect, analyze the vulnerable code path in src/controllers/AssetsController.php. The controller action receives an HTTP POST request and retrieves the assetId parameter directly from the request body.

// Vulnerable implementation in AssetsController.php
public function actionPreviewFile(): Response
{
    $assetId = $this->request->getRequiredBodyParam('assetId');
    $asset = Craft::$app->getAssets()->getAssetById($assetId);
 
    if (!$asset) {
        return $this->asFailure(Craft::t('app', 'Asset not found with that id'));
    }
 
    // Missing authorization checks for the volume and asset
 
    $previewHtml = null;
    $previewHandler = Craft::$app->getAssets()->getAssetPreviewHandler($asset);
    $previewHtml = $previewHandler->getPreviewHtml();
 
    return $this->asJson([
        'previewHtml' => $previewHtml
    ]);
}

The patch addresses this defect by inserting explicit volume and peer-volume authorization checks immediately after retrieving the asset. The modified controller action utilizes the internal security helpers to enforce authorization prior to executing the preview handler.

// Patched implementation in AssetsController.php
public function actionPreviewFile(): Response
{
    $assetId = $this->request->getRequiredBodyParam('assetId');
    $asset = Craft::$app->getAssets()->getAssetById($assetId);
 
    if (!$asset) {
        return $this->asFailure(Craft::t('app', 'Asset not found with that id'));
    }
 
    // Added permission validation
    $this->requireVolumePermissionByAsset('viewAssets', $asset);
    $this->requirePeerVolumePermissionByAsset('viewPeerAssets', $asset);
 
    $previewHtml = null;
    $previewHandler = Craft::$app->getAssets()->getAssetPreviewHandler($asset);
    $previewHtml = $previewHandler->getPreviewHtml();
 
    return $this->asJson([
        'previewHtml' => $previewHtml
    ]);
}

This remediation successfully prevents further execution if the active user session lacks the required volume permissions. The requireVolumePermissionByAsset and requirePeerVolumePermissionByAsset methods throw an UnauthorizedHttpException if the security check fails, resulting in an HTTP 403 Forbidden response. This fix is complete and covers the specific exposure vector within this controller action.

Exploitation Methodology

An attacker must establish an authenticated session in the Craft CMS Control Panel to exploit this vulnerability. The required privilege level is low, demanding only basic access to the Control Panel interface. The attacker does not need administrative privileges or permissions to access the target asset volume.

Upon gaining authenticated access, the attacker must determine the target asset identifier. Since asset IDs are sequential integers, the attacker can systematically brute-force or enumerate identifiers to target specific documents. Once a valid target identifier is chosen, the attacker transmits a crafted HTTP POST request to the assets/preview-thumb endpoint.

POST /index.php?p=admin/actions/assets/preview-thumb HTTP/1.1
Host: target-craftcms.local
Content-Type: application/x-www-form-urlencoded
Cookie: <Control-Panel-User-Session>
 
action=assets/preview-thumb&assetId=4523

The server processes this request and responds with a JSON payload containing the generated preview HTML. This HTML includes an img tag where the src attribute is a signed fallback transform URL containing an HMAC parameter. The attacker extracts this signed URL and requests it directly to obtain a rendered thumbnail preview of the restricted asset, bypassing volume-level access controls.

Impact Assessment

The primary consequence of this vulnerability is unauthorized information disclosure. While the flaw does not permit arbitrary file modification, deletion, or remote code execution, it degrades the confidentiality guarantees provided by Craft CMS asset volumes. Organizations relying on volume permissions to isolate sensitive documentation are particularly vulnerable.

Because the generated preview URL is signed by the application, the backend processes the request as legitimate, bypassing further access controls. This allows unauthorized users to view image thumbnails or document previews that contain sensitive data. Depending on the contents of the assets, this can lead to the exposure of proprietary intellectual property, personal data, or internal business records.

The vulnerability is assessed with a CVSS v3.1 score of 4.3 (Medium). The complexity remains low, and the attack vector is direct over the network, though it requires authentication. The impact is limited strictly to the loss of confidentiality of the affected assets.

Remediation and Mitigation

The primary remediation strategy is upgrading the Craft CMS installation to a secure release. Organizations utilizing Craft CMS 4.x must update their deployment to version 4.17.8 or higher. Deployments running Craft CMS 5.x must be upgraded to version 5.9.14 or higher.

To execute the upgrade, administrators should update their dependency configuration. Running the command composer update craftcms/cms within the environment pulls the secure versions and applies the code modifications. Verification of the patch can be performed by attempting to access the preview-thumb action for an unauthorized asset and confirming that an HTTP 403 Forbidden status is returned.

If immediate updates are not feasible, temporary mitigation requires restricting access to the Control Panel interface. Administrators can limit Control Panel access to trusted internal networks or implement strict Web Application Firewall (WAF) rules to monitor requests directed at the assets/preview-thumb action. These measures reduce the exposure window until the software can be patched.

Fix Analysis (1)

Technical Appendix

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

Affected Systems

Craft CMS

Affected Versions Detail

Product
Affected Versions
Fixed Version
Craft CMS
Craft CMS
>= 4.0.0, < 4.17.84.17.8
Craft CMS
Craft CMS
>= 5.0.0, < 5.9.145.9.14
AttributeDetail
CWE IDCWE-862
Attack VectorNetwork (AV:N)
CVSS Score4.3 (Medium)
ImpactInformation Disclosure / Private Asset Access
Exploit StatusPoC / Theoretical
KEV StatusNot Listed

MITRE ATT&CK Mapping

T1078.001Valid Accounts: Default/Domain/Local Accounts
Initial Access
T1213Data from Information Repositories
Collection
CWE-862
Missing Authorization

The software does not perform an authorization check when an actor attempts to access a resource or perform an action.

Known Exploits & Detection

GitHubFix commit verifying volume view permissions in AssetsController

References & Sources

  • [1]GitHub Security Advisory GHSA-X76W-8C62-48MG
  • [2]Craft CMS Security Advisory GHSA-x76w-8c62-48mg
  • [3]Craft CMS Fix Commit

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 12 hours ago•CVE-2026-12243
7.5

CVE-2026-12243: Incomplete Path Traversal Validation and Percent-Encoding Bypass in NLTK

CVE-2026-12243 is a path traversal vulnerability in the Natural Language Toolkit (NLTK) version 3.9.4. The flaw exists because the input validation routine fails to account for percent-encoded directory traversal sequences like '..%2f' before passing them to urllib.request.url2pathname(), which decodes them into active traversal sequences.

Amit Schendel
Amit Schendel
3 views•8 min read
•about 13 hours ago•CVE-2026-73654
8.5

CVE-2026-73654: Prototype Pollution in Trigger.dev leading to Cascading Denial of Service

CVE-2026-73654 is a high-severity prototype pollution vulnerability in Trigger.dev. The flaw occurs during the handling of run-metadata updates through the PUT /api/v1/runs/:runId/metadata endpoint. Because user-supplied keys are parsed directly by the @jsonhero/path library without sanitization, an authenticated attacker with low privileges can pollute the global Object.prototype. This causes database queries via Prisma ORM to fail validation and induces unhandled exceptions in the Prometheus metrics client, resulting in a process-wide denial of service.

Alon Barad
Alon Barad
8 views•6 min read
•about 15 hours ago•CVE-2026-73559
6.5

CVE-2026-73559: Uncontrolled Resource Consumption in vLLM API completions

CVE-2026-73559 is an uncontrolled resource consumption vulnerability in the vLLM engine, specifically within the /v1/completions API endpoint, allowing authenticated attackers to cause application-level denial of service via unbounded prompt arrays.

Amit Schendel
Amit Schendel
8 views•5 min read
•about 17 hours ago•CVE-2026-54526
9.9

CVE-2026-54526: Strict Template Referencing Bypass and Privilege Escalation in Argo Workflows

A critical security bypass vulnerability in Argo Workflows allows authenticated attackers with workflow submission privileges to bypass 'Strict' or 'Secure' template referencing restrictions. By injecting unvalidated fields into the nested ArtifactGC configuration, attackers can execute arbitrary pod patches, leading to host namespace escape and cluster-wide privilege escalation.

Alon Barad
Alon Barad
13 views•6 min read
•about 18 hours ago•CVE-2026-54249
6.8

CVE-2026-54249: Server-Side Request Forgery via Confused Deputy in Pydantic AI UI Adapters

A Server-Side Request Forgery (SSRF) / Confused Deputy vulnerability has been identified in Pydantic AI UI Adapters (such as VercelAIAdapter). Under certain conditions, a malicious client can supply manipulated message history with provider metadata that forces the server to resolve files within privileged cloud environments (AWS S3, Google Cloud Storage) or model providers. This occurs because the adapters deserialize client-provided metadata structures directly into UploadedFile instances without validation, which are subsequently fetched using high-privilege server credentials.

Alon Barad
Alon Barad
7 views•7 min read
•about 19 hours ago•GHSA-RM43-82J9-R4MJ
8.2

GHSA-RM43-82J9-R4MJ: Path Traversal (Arbitrary File Read) in atomic-agents-stack Dashboard

A path traversal vulnerability in the optional dashboard server of atomic-agents-stack before version 1.1.0 allows unauthenticated remote attackers to read arbitrary files from the host filesystem.

Amit Schendel
Amit Schendel
6 views•6 min read