BuzzPHP
LightDarkSystem

Laravel Backpack CRUD: Arbitrary file deletion via attacker-controlled clear_<attr>[] in HasUploadFields::uploadMultipleFilesToDisk

High severity. Published 20 August 2026. Update backpack/crud to the fixed version of your branch (6.8.12, 7.0.35): composer update backpack/crud.

Which versions are affected?

PackageAffected versionsFixed in
backpack/crud (opens in a new tab)>= 5.0.0, < 6.0.0 | >= 6.0.0, < 6.8.12 | >= 7.0.0, < 7.0.356.8.12, 7.0.35

What should you do?

Update every affected package you use to its fixed version, then check that nothing else in your project matches an advisory. To see which version you run, and whether anything is still affected:

composer show backpack/crud
composer audit

Advisory details

SeverityHighCVSS 8.1
Published
Updated
CVECVE-2026-54178 (opens in a new tab)
GHSAGHSA-8xjm-wqrp-2f25 (opens in a new tab)
WeaknessCWE-22, CWE-285, CWE-639

What the advisory says

Summary

HasUploadFields::uploadMultipleFilesToDisk (in src/app/Models/Traits/HasUploadFields.php) reads file paths from the clear[] request input and deletes them from the configured storage disk without verifying that the paths belong to the current model record.

An authenticated user with Update access on any CRUD that wires uploadMultipleFilesToDisk as a model mutator (the pattern documented in the v5.x uploadmultiple field guide) can supply arbitrary disk-relative paths in clear[] to delete files that were never associated with the record they are editing.

Source: GHSA-8xjm-wqrp-2f25 (opens in a new tab) in the GitHub Advisory Database (CC BY 4.0). Data from GitHub (opens in a new tab) as of .

Other recent advisories for this package

All Composer security advisories