actionPreviewFile
src/controllers/AssetsController.php
Last patched
Overview
actionPreviewFile in src/controllers/AssetsController.php (craftcms/cms) was changed by 3 published CVE fixes in 2026, in 1 distinct patch that added or removed 9 lines in total.
craftcms/cms has 103 CVEs with a located fix in total, so 3% of them touched this function.
CVEs that patched it
Every published CVE whose fix changed actionPreviewFile, newest first, with the lines each fix touched.
CVE-2026-56385 · lines 1197–1199 · +3 −0
Medium · CVSS 5.3EPSS 0.4%2026-06-21CVE-2026-56384 · lines 1197–1199 · +3 −0
Medium · CVSS 5.3EPSS 0.3%2026-06-21CVE-2026-33161 · lines 1197–1199 · +3 −0
Low · CVSS 1.3EPSS 0.2%2026-03-24
Get an alert when the next CVE fix lands in craftcms/cms, with the patched functions.
Monitor these CVEsOther functions in these files
Functions in the same file that CVE fixes also changed.
- 1actionReplaceFilesrc/controllers/AssetsController.php3 patches · 4 CVEs2026
- 2actionGenerateTransformsrc/controllers/AssetsController.php2 patches · 3 CVEs2025 to 2026
- 3actionMoveFoldersrc/controllers/AssetsController.php1 patch · 2 CVEs2026
- 4actionDeleteFoldersrc/controllers/AssetsController.php1 patch · 1 CVE2026
- 5actionShowInFoldersrc/controllers/AssetsController.php1 patch · 1 CVE2026
Other hotspots in the repository
Functions in craftcms/cms changed by the most distinct patches.
Frequently asked questions
Common questions about CVE fixes to actionPreviewFile.
- How many CVEs have patched actionPreviewFile?
- 3 published CVEs changed actionPreviewFile in craftcms/cms, in 1 distinct patches totalling 9 changed lines, between 2026 and 2026.
- What is the latest CVE that changed actionPreviewFile?
- CVE-2026-56385 (Craft CMS - Authorization Bypass in assets/preview-file Endpoint), published 2026-06-21, changed lines 1197 to 1199 of src/controllers/AssetsController.php.
- How does actionPreviewFile compare to the rest of craftcms/cms?
- craftcms/cms has 103 CVEs with a located fix in total; 3 of them changed actionPreviewFile.
- What do the line numbers refer to?
- Line numbers are in the fixed version of the file, as the upstream patch left it. A CVE whose fix was backported to several branches is listed once, with the lines from the upstream commit.
References
- src/controllers/AssetsController.php on GitHub (opens in a new tab)
- All patched functions in craftcms/cms
- Patched functions directory
Fix locations are computed by RadicalNotion.AI from the upstream patch diff of each CVE. CVE data is sourced from the CVE Program.
Track craftcms/cms CVEs
Get an alert when a new CVE lands in this repository, with the patched functions and AI-written remediation guidance.