{"id":"CVE-2026-33158","aliases":["GHSA-3pvf-vxrv-hh9c"],"url":"https://o3.security/vulnerability/CVE-2026-33158","summary":"Craft CMS: Low-privilege users could read private asset contents when editing an asset (IDOR)","details":"### Summary\n\nA low-privileged authenticated user can read private asset content by calling `assets/edit-image` with an arbitrary `assetId` that they are not authorized to view.\n\nThe endpoint returns image bytes (or a preview redirect) without enforcing a per-asset view authorization check, leading to potential unauthorized disclosure of private files.\n\n### Details\n\nRoot cause:\n  - A user-controlled object reference (`assetId`) is used to load and return sensitive content.\n  - The action does not verify whether the current user is authorized to view that asset.\n  - This creates an authenticated IDOR / authorization bypass.\n\n### Impact\n\n- Craft installations where private/non-public assets exist and low-privileged users can authenticate.\n\n## Resources\n\nhttps://github.com/craftcms/cms/commit/7290d91639e","published":"2026-03-24T17:26:03.688Z","modified":"2026-08-12T03:51:12.885897600Z","cvss":null,"epss":null,"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"Packagist","name":"craftcms/cms","fixedVersion":"4.17.8"},{"ecosystem":"Packagist","name":"craftcms/cms","fixedVersion":"5.9.14"}],"fix":{"url":"https://github.com/craftcms/cms/commit/7290d91639e5e3a4f7e221dfbef95c9b77331860","label":"craftcms/cms@7290d91"},"references":[{"type":"WEB","url":"https://github.com/craftcms/cms/releases/tag/4.17.8"},{"type":"WEB","url":"https://github.com/craftcms/cms/releases/tag/5.9.14"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/33xxx/CVE-2026-33158.json"},{"type":"ADVISORY","url":"https://github.com/craftcms/cms/security/advisories/GHSA-3pvf-vxrv-hh9c"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-33158"},{"type":"FIX","url":"https://github.com/craftcms/cms/commit/7290d91639e5e3a4f7e221dfbef95c9b77331860"},{"type":"PACKAGE","url":"https://github.com/craftcms/cms"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-12T03:51:12.885897600Z"}}