NewApp Monitoring is liveSign up free
AgentbeamBeta
Open-source package vulnerability · Composer (PHP)

CVE-2026-33158: Craft CMS: Low-privilege users could read private asset contents when editing an asset (IDOR)

mediumCVSS 4.0 4.9GHSA-3pvf-vxrv-hh9c

Summary A 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. The endpoint returns image bytes (or a preview redirect) without enforcing a per-asset view authorization check, leading to potential unauthorized disclosure of private files.

Published Mar 24, 2026 · Updated Mar 25, 2026

Affected packages

craftcms/cms

Ecosystem
Composer (PHP)
Affected
>= 4.0.0-RC1, <= 4.17.7
Fixed in
4.17.8
Check
composer show craftcms/cms

craftcms/cms

Ecosystem
Composer (PHP)
Affected
>= 5.0.0-RC1, <= 5.9.13
Fixed in
5.9.14
Check
composer show craftcms/cms

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

Summary

A 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.

The endpoint returns image bytes (or a preview redirect) without enforcing a per-asset view authorization check, leading to potential unauthorized disclosure of private files.

Details

Root cause:

  • A user-controlled object reference (assetId) is used to load and return sensitive content.
  • The action does not verify whether the current user is authorized to view that asset.
  • This creates an authenticated IDOR / authorization bypass.

Impact

  • Craft installations where private/non-public assets exist and low-privileged users can authenticate.

Resources

https://github.com/craftcms/cms/commit/7290d91639e

Credited to GCXWLP.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology

More Composer (PHP) vulnerabilities

All Composer (PHP) entries