CVE-2026-33158
JSON

4.9medium

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

Severity
4.9medium CVSS:4.0 by GitHub_M
Exploit likelihood
0.49% (higher than 35% of CVEs)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-3pvf-vxrv-hh9c

Description

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.

Affected

Product or packageVersionsReported by
craftcms cms>= 4.0.0-RC1, < 4.17.8, >= 5.0.0-RC1, < 5.9.14CVE List
craftcms/cms (Packagist)from 4.0.0-RC1 before 4.17.8, from 5.0.0-RC1 before 5.9.14GitHub Advisory Database
craftcms craft_cmsfrom >4.0.0 before 4.17.8, from >5.0.0 before 5.9.14, 4.0.0, 5.0.0NVD

All scores

GitHub_M4.9medium CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:U
GitHubmedium CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:U
NVD6.5medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N

Classification

CWE-639

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

GitHub Advisory Database
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

NVD (es)

Craft CMS es un sistema de gestión de contenido (CMS). Desde la versión 4.0.0-RC1 hasta antes de la versión 4.17.8 y desde la versión 5.0.0-RC1 hasta antes de la versión 5.9.14, un usuario autenticado con bajos privilegios puede leer contenido de activos privados llamando a assets/edit-image con un assetId arbitrario que no está autorizado a ver. El endpoint devuelve bytes de imagen (o una redirección de vista previa) sin aplicar una verificación de autorización de vista por activo, lo que lleva a una posible divulgación no autorizada de archivos privados. Este problema ha sido parcheado en las versiones 4.17.8 y 5.9.14.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-33158 changed 2026-03-24CVE Terms of Use
GitHub Advisory DatabaseGHSA-3pvf-vxrv-hh9c changed 2026-03-25CC-BY-4.0
NVDCVE-2026-33158 changed 2026-06-17Public domain