Description
Craft CMS contains a missing authorization vulnerability in the assets/preview-thumb endpoint. A Control Panel user without permission to view a target private asset can call the endpoint with an attacker-controlled assetId and receive preview HTML containing a signed fallback transform preview link for that private asset, because no asset-view permission check is performed before preview generation. This affects versions >= 4.0.0-RC1, <= 4.17.7 and >= 5.0.0-RC1, <= 5.9.13, and is fixed in 4.17.8 and 5.9.14.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| craftcms | cms | 4.0.0-RC1 – < 4.17.8, 5.0.0-RC1 – < 5.9.14 | 4.17.8 |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Packagist | craftcms/cms | >= 4.0.0-RC1, < 4.17.8 | 4.17.8 | GHSA-x76w-8c62-48mg |
| Packagist | craftcms/cms | >= 5.0.0-RC1, < 5.9.14 | 5.9.14 | GHSA-x76w-8c62-48mg |