actionReplaceFile
src/controllers/AssetsController.php
Last patched
Overview
actionReplaceFile in src/controllers/AssetsController.php (craftcms/cms) was changed by 4 published CVE fixes in 2026, in 3 distinct patches that added or removed 38 lines in total.
craftcms/cms has 103 CVEs with a located fix in total, so 4% of them touched this function.
CVEs that patched it
Every published CVE whose fix changed actionReplaceFile, newest first, with the lines each fix touched.
CVE-2026-50282 · lines 425–432 · +8 −2
High · CVSS 7.1EPSS 0.4%2026-07-02CVE-2026-50281 · lines 433–440 · +8 −2
High · CVSS 7.1EPSS 0.4%2026-07-02CVE-2026-50283 · lines 425–432 · +8 −2
Medium · CVSS 5.3EPSS 0.4%2026-07-01CVE-2026-32262 · lines 389–396 · +8 −0
Medium · CVSS 5.3EPSS 0.3%2026-03-16
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.
- 1actionGenerateTransformsrc/controllers/AssetsController.php2 patches · 3 CVEs2025 to 2026
- 2actionPreviewFilesrc/controllers/AssetsController.php1 patch · 3 CVEs2026
- 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 actionReplaceFile.
- How many CVEs have patched actionReplaceFile?
- 4 published CVEs changed actionReplaceFile in craftcms/cms, in 3 distinct patches totalling 38 changed lines, between 2026 and 2026.
- What is the latest CVE that changed actionReplaceFile?
- CVE-2026-50282 (Craft CMS: Unauthorized Deletion of Destination Folders During Forced Moves), published 2026-07-02, changed lines 425 to 432 of src/controllers/AssetsController.php.
- How does actionReplaceFile compare to the rest of craftcms/cms?
- craftcms/cms has 103 CVEs with a located fix in total; 4 of them changed actionReplaceFile.
- 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.