{"id":"CVE-2026-44012","aliases":["CVE-2026-44012","GHSA-33m5-hqp9-97pw"],"related":[],"kind":"vulnerability","state":"published","title":"Craft CMS: Missing Volume Permission Check in AssetsController::actionShowInFolder Allows Information Disclosure","summary":"Craft CMS is a content management system (CMS). From 5.0.0-RC1 to before 5.9.18, AssetsController::actionShowInFolder() fetches an asset by ID and returns its filename and complete folder hierarchy (including volume handle, volume UID, folder names, folder UIDs, and folder URI paths) without checking whether the requesting user has viewAssets or viewPeerAssets permission on the asset’s volume. Any authenticated CP user — even one with zero volume permissions — can enumerate asset filenames and the full folder structure of any volume by supplying arbitrary asset IDs. This vulnerability is fixed in 5.9.18.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Craft CMS is a content management system (CMS). From 5.0.0-RC1 to before 5.9.18, AssetsController::actionShowInFolder() fetches an asset by ID and returns its filename and complete folder hierarchy (including volume handle, volume UID, folder names, folder UIDs, and folder URI paths) without checking whether the requesting user has viewAssets or viewPeerAssets permission on the asset’s volume. Any authenticated CP user — even one with zero volume permissions — can enumerate asset filenames and the full folder structure of any volume by supplying arbitrary asset IDs. This vulnerability is fixed in 5.9.18.","source":"cvelist"},{"lang":"en","text":"## Summary\n\n`AssetsController::actionShowInFolder()` fetches an asset by ID and returns its filename and complete folder hierarchy (including volume handle, volume UID, folder names, folder UIDs, and folder URI paths) without checking whether the requesting user has `viewAssets` or `viewPeerAssets` permission on the asset’s volume. Any authenticated CP user — even one with zero volume permissions — can enumerate asset filenames and the full folder structure of any volume by supplying arbitrary asset IDs.\n\nThis follows the exact same incomplete-patch pattern as four GHSAs merged on 2026-02-25 (GHSA-x76w-8c62-48mg, GHSA-vgjg-248p-rfm2, GHSA-5pgf-h923-m958, GHSA-3pvf-vxrv-hh9c), all of which added `requireVolumePermissionByAsset()` + `requirePeerVolumePermissionByAsset()` to sibling AssetsController actions. The `actionShowInFolder` method was introduced thirteen days before the patch wave and was not included in it.\n\n## Details\n\nThe vulnerability is in `src/controllers/AssetsController.php` at line 1437. The method:\n\n1. Calls `requireCpRequest()` — verifies the request targets the CP, enforces `accessCp` permission via `Controller::_enforceAllowAnonymous()`, but does NOT enforce any volume-level permission.\n2. Fetches any asset by ID with `Asset::findOne($assetId)` — no `editable`/`savable` scope filter, so all assets across all volumes are reachable.\n3. Returns sensitive structural data via JSON.\n\n## Impact\n\n- Any authenticated control panel user with only `accessCp` permission can discover the filenames and complete folder structure (names, UIDs, handles, URIs) of assets in volumes they are not authorized to access.\n- Sensitive volume structures — private document repositories, confidential media, internal file names — are exposed to any user who can log into the control panel.\n- This enables targeted follow-up attacks: an attacker who knows a private asset’s filename and folder path may have other avenues to exfiltrate the actual file.\n\n## Resources\n\nhttps://github.com/craftcms/cms/commit/e3f3eaab3d85badd713cfc2c24e5f0792ecdb586","format":"markdown","source":"ghsa"},{"lang":"es","text":"Craft CMS es un sistema de gestión de contenido (CMS). Desde la versión 5.0.0-RC1 hasta antes de la 5.9.18, AssetsController::actionShowInFolder() obtiene un activo por ID y devuelve su nombre de archivo y la jerarquía completa de carpetas (incluyendo el identificador del volumen, el UID del volumen, los nombres de las carpetas, los UID de las carpetas y las rutas URI de las carpetas) sin verificar si el usuario solicitante tiene permiso de viewAssets o viewPeerAssets en el volumen del activo. Cualquier usuario autenticado del CP - incluso uno con cero permisos de volumen - puede enumerar los nombres de archivo de los activos y la estructura completa de carpetas de cualquier volumen proporcionando IDs de activos arbitrarios. Esta vulnerabilidad se corrige en la versión 5.9.18.","source":"nvd"}],"published":"2026-05-06T17:54:47.000Z","modified":"2026-10-26T17:10:03.270Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N","score":7.1,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N","score":7.1,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N","rating":"HIGH"}],"cwes":["CWE-862"],"affected":[{"ranges":[{"version":">= 5.0.0-RC1, < 5.9.18","status":"affected"}],"vendor":"craftcms","product":"cms","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"5.0.0-RC1","status":"affected","fixed":"5.9.18"}],"ecosystem":"Packagist","package":"craftcms/cms","purl":"pkg:composer/craftcms/cms","source":"ghsa"}],"references":[{"url":"https://github.com/craftcms/cms/security/advisories/GHSA-33m5-hqp9-97pw","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/craftcms/cms/commit/e3f3eaab3d85badd713cfc2c24e5f0792ecdb586","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-44012","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/craftcms/cms","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-05-13T14:49:35.768Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-44012","url":"https://www.cve.org/CVERecord?id=CVE-2026-44012","licence":"CVE Terms of Use","modified":"2026-05-13T14:49:47.308Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-33m5-hqp9-97pw","url":"https://github.com/advisories/GHSA-33m5-hqp9-97pw","licence":"CC-BY-4.0","modified":"2026-05-13T16:58:48.219Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-44012","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-44012","licence":"Public domain","modified":"2026-10-26T17:10:03.270Z"}],"updatedAt":"2026-11-25T22:59:21.498Z","epss":{"score":0.00337,"percentile":0.29003,"date":"2026-12-01T12:00:22.000Z"}}