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

Published Mar 24, 2026
·
Updated

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

Other sources

Craft CMS is a content management system (CMS). From version 4.0.0-RC1 to before version 4.17.8 and from version 5.0.0-RC1 to before version 5.9.14, 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. This issue has been patched in versions 4.17.8 and 5.9.14.

MITRE

Affected Software

10 affected componentsFixes available
composer/craftcms/cms>=5.0.0-RC1<=5.9.13
5.9.14
composer/craftcms/cms>=4.0.0-RC1<=4.17.7
4.17.8
CraftCMS Craft CMS>4.0.0<4.17.8
CraftCMS Craft CMS>5.0.0<5.9.14
CraftCMS Craft CMS=4.0.0
CraftCMS Craft CMS=4.0.0-rc1
CraftCMS Craft CMS=4.0.0-rc2
CraftCMS Craft CMS=4.0.0-rc3
CraftCMS Craft CMS=5.0.0
CraftCMS Craft CMS=5.0.0-rc1

Event History

Mar 24, 2026
Advisory Published
via GitHub·04:53 PM
Data Sourced
via GitHub·04:53 PM
DescriptionWeaknessAffected Software
CVE Published
via MITRE·05:26 PM
Data Sourced
via MITRE·05:26 PM
DescriptionWeakness
Data Sourced
via NVD·06:16 PM
RemedyDescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-33158?

CVE-2026-33158 is classified as a medium severity vulnerability due to its potential impact on unauthorized access to private asset contents.

2

How do I fix CVE-2026-33158?

To fix CVE-2026-33158, upgrade to Craft CMS version 4.17.8 or 5.9.14 or later.

3

What kind of vulnerability is CVE-2026-33158?

CVE-2026-33158 is an Insecure Direct Object Reference (IDOR) vulnerability affecting asset management in Craft CMS.

4

Who is affected by CVE-2026-33158?

Low-privileged authenticated users in Craft CMS versions between 4.0.0-RC1 and 4.17.7, as well as 5.0.0-RC1 to 5.9.13, are affected by CVE-2026-33158.

5

What should I do if I cannot upgrade to the fixed version for CVE-2026-33158?

If upgrading is not feasible, implement access controls to prevent low-privileged users from accessing restricted asset endpoints.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203