{"id":"CVE-2026-56385","aliases":["CVE-2026-56385","GHSA-44px-qjjc-xrhq"],"related":[],"kind":"vulnerability","state":"published","title":"Craft CMS - Authorization Bypass in assets/preview-file Endpoint","summary":"Craft CMS versions >= 5.0.0-RC1, <= 5.9.13 and >= 4.0.0-RC1, <= 4.17.7 contain an authorization bypass in the assets/preview-file endpoint. The action does not enforce per-asset view authorization before returning preview content, allowing an authenticated low-privileged user to supply a controlled assetId for an asset they are not permitted to view and still receive preview response data (previewHtml), including a private preview image route containing the target private assetId. Fixed in 5.9.14 and 4.17.8.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Craft CMS versions >= 5.0.0-RC1, <= 5.9.13 and >= 4.0.0-RC1, <= 4.17.7 contain an authorization bypass in the assets/preview-file endpoint. The action does not enforce per-asset view authorization before returning preview content, allowing an authenticated low-privileged user to supply a controlled assetId for an asset they are not permitted to view and still receive preview response data (previewHtml), including a private preview image route containing the target private assetId. Fixed in 5.9.14 and 4.17.8.","source":"cvelist"},{"lang":"en","text":"### Summary\n\nAn authenticated low-privileged user can call `assets/preview-file` for an asset they are not authorized to view and still receive preview response data (`previewHtml`) for that private asset.\n\nThe returned preview HTML included a private preview image route containing the target private `assetId`, even though `canView` was `false` for the attacker account.\n\n### Details\n\n1. `assets/preview-file` accepts a maliciously controlled `assetId` and renders preview output.\n2. The action does not enforce per-asset view authorization prior to returning preview content.\n 3. As a result, an authenticated user without asset-view permission can still obtain private preview output.\n\nThis affects Craft installations with authenticated users of mixed privilege levels with private assets.\n\n### Resources\n\n- d30df3112220db1ffd6726a3ed11857014c7fb27\n- b1cddf72c98a","format":"markdown","source":"ghsa"},{"lang":"es","text":"Craft CMS versiones >= 5.0.0-RC1, menor o igual que 5.9.13 y >= 4.0.0-RC1, menor o igual que 4.17.7 contienen un bypass de autorización en el endpoint assets/preview-file. La acción no aplica la autorización de vista por activo antes de devolver el contenido de vista previa, permitiendo que un usuario autenticado con bajos privilegios suministre un assetId controlado para un activo que no tiene permiso para ver y aún así reciba datos de respuesta de vista previa (previewHtml), incluyendo una ruta de imagen de vista previa privada que contiene el assetId privado objetivo. Corregido en 5.9.14 y 4.17.8.","source":"nvd"}],"published":"2026-03-26T17:12:21.000Z","modified":"2026-11-08T14:06:10.554Z","severity":{"scorer":"VulnCheck","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N","score":5.3,"rating":"MEDIUM"},"severities":[{"scorer":"VulnCheck","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N","score":5.3,"rating":"MEDIUM"},{"scorer":"VulnCheck","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N","score":4.3,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N/E:U","rating":"LOW"}],"cwes":["CWE-200","CWE-639","CWE-862"],"affected":[{"ranges":[{"type":"semver","introduced":"5.0.0-RC1","fixed":"5.9.14","status":"affected"},{"type":"semver","version":"5.9.14","status":"unaffected"},{"type":"semver","introduced":"4.0.0-RC1","fixed":"4.17.8","status":"affected"},{"type":"semver","version":"4.17.8","status":"unaffected"}],"vendor":"craftcms","product":"cms","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"5.0.0-RC1","status":"affected","fixed":"5.9.14"}],"ecosystem":"Packagist","package":"craftcms/cms","purl":"pkg:composer/craftcms/cms","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"4.0.0-RC1","status":"affected","fixed":"4.17.8"}],"ecosystem":"Packagist","package":"craftcms/cms","purl":"pkg:composer/craftcms/cms","source":"ghsa"}],"references":[{"url":"https://github.com/craftcms/cms/security/advisories/GHSA-44px-qjjc-xrhq","tags":["vendor-advisory","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/craftcms/cms/commit/d30df3112220db1ffd6726a3ed11857014c7fb27","tags":["patch","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://www.vulncheck.com/advisories/craft-cms-authorization-bypass-in-assets-preview-file-endpoint","tags":["third-party-advisory","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-56385","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/craftcms/cms/commit/b1cddf72c98a66801beb04ea4b07e72182b7b7db","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/craftcms/cms","tags":["package"],"sources":["ghsa"]}],"credits":["GCXWLP"],"assigner":"VulnCheck","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-06-22T12:18:03.133Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-56385","url":"https://www.cve.org/CVERecord?id=CVE-2026-56385","licence":"CVE Terms of Use","modified":"2026-11-08T14:06:10.554Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-44px-qjjc-xrhq","url":"https://github.com/advisories/GHSA-44px-qjjc-xrhq","licence":"CC-BY-4.0","modified":"2026-08-06T22:00:56.129Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-56385","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-56385","licence":"Public domain","modified":"2026-10-25T23:10:00.167Z"}],"updatedAt":"2026-11-25T22:59:25.330Z","epss":{"score":0.00359,"percentile":0.21989,"date":"2026-11-30T12:00:22.000Z"}}