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 1 hour ago•CVE-2026-61712
2.3

CVE-2026-61712: Denial of Service via Unbounded Resource Allocation in moby/buildkit

moby/buildkit is susceptible to a denial-of-service vulnerability prior to version 0.31.1. When BuildKit processes user or group directives from untrusted build contexts or base images, it reads configuration databases such as /etc/passwd and /etc/group directly into memory without enforcing boundaries. An attacker can exploit this behavior by engineering malicious files that trigger host memory exhaustion or block daemon threads indefinitely.

Alon Barad
Alon Barad
1 views•7 min read
•about 2 hours ago•CVE-2026-59992
5.4

CVE-2026-59992: Broken Access Control and Path Traversal in Tina CMS Production Media Adapters

CVE-2026-59992 is a critical broken access control vulnerability in the first-party production media adapters of Tina CMS, including next-tinacms-s3, next-tinacms-dos, next-tinacms-azure, and next-tinacms-cloudinary. The issue allows authenticated editors to escape the configured mediaRoot directory containment, facilitating unauthorized file uploads, modifications, and deletions across the entire storage bucket or container.

Amit Schendel
Amit Schendel
2 views•6 min read
•about 3 hours ago•CVE-2026-63123
6.5

CVE-2026-63123: Cross-Site Request Forgery leading to Cross-Origin Arbitrary File Write in @tinacms/cli

A Cross-Site Request Forgery (CSRF) vulnerability in the local development server of @tinacms/cli allowed malicious cross-origin pages to send state-changing HTTP requests. This issue permitted attackers to write arbitrary files into a developer's project directory or manipulate search and GraphQL indices without authorization.

Amit Schendel
Amit Schendel
5 views•4 min read
•about 4 hours ago•CVE-2026-63188
8.7

CVE-2026-63188: Unauthenticated Directory Traversal in @logto/tunnel

A high-severity path traversal vulnerability exists in the @logto/tunnel npm package (part of the Logto repository) prior to version 0.3.9. Remote unauthenticated attackers can exploit this vulnerability to read arbitrary local files by sending crafted HTTP requests with directory traversal sequences when the static file proxy is active.

Alon Barad
Alon Barad
5 views•7 min read
•about 11 hours ago•CVE-2026-54347
8.7

CVE-2026-54347: Stored Cross-Site Scripting in Froxlor DNS TXT Record Configuration

A critical stored Cross-Site Scripting (XSS) vulnerability was identified in Froxlor server administration software panel before version 2.3.8. Authenticated customers with DNS editor privileges can inject malicious JavaScript into DNS TXT records. Because the application processes these values via a raw formatting callback without context-aware HTML entity encoding, the payload executes in the security context of administrative users who view the affected domain's DNS zones.

Amit Schendel
Amit Schendel
4 views•6 min read
•about 12 hours ago•CVE-2026-54348
7.2

CVE-2026-54348: Second-Order SQL Injection in Froxlor API Layer

An authenticated administrator with privileges to manage admin accounts (such as change_serversettings) can execute arbitrary SQL commands via a second-order SQL injection vulnerability. The flaw resides in Froxlor's administrative API endpoints, specifically during the handling of IP address mapping parameters which are stored as serialized arrays and later interpolated without sanitization into active database queries. This vulnerability allows high-privileged administrative attackers to compromise the database. By injecting a payload into administrative profile metadata, an attacker can extract sensitive credentials, manipulate backend settings, or potentially disrupt database integrity. The vulnerability affects all versions of Froxlor prior to 2.3.8.

Amit Schendel
Amit Schendel
5 views•6 min read