Missing Authorization in Craft CMS - #VU144282
Published: August 19, 2026
Vulnerability details
The vulnerability allows a remote user to overwrite a peer\'s asset file content.
The vulnerability exists due to improper access control in AssetsController::actionReplaceFile when handling requests that supply sourceAssetId and targetFilename without assetId. A remote user can send a specially crafted request to overwrite a peer\'s asset file content.
The issue occurs when the target asset is discovered after the permission checks run, and the vulnerable path requires the source and target files to be in the same folder with an attacker-chosen matching extension.