Craft CMS is a content management system. The `AssetsController->replaceFile()` method uses the `targetFilename` body parameter without proper sanitization in a `deleteFile()` call before `Assets::prepareAssetName()` is applied during saving. This allows an authenticated user with `replaceFiles` permission to delete arbitrary files within the same filesystem root by injecting `../` path traversal sequences into the filename. This could allow a user with `replaceFiles` permission on one volume to delete files in other folders or volumes sharing the same filesystem root. This issue only affects local filesystems. The vulnerable method is `AssetsController->replaceFile()`, and the vulnerable parameter is `targetFilename`.