CVE-2026-54178
moderateAuthenticated Arbitrary File Deletion in Backpack for Laravel (backpack/crud)
Backpack for Laravel's backpack/crud package contains an improper authorization flaw (with path-trust issues) in the HasUploadFields::uploadMultipleFilesToDisk mutator, which is wired into models via CrudTrait. The mutator takes disk-relative paths from the clear_[] request field and passes them directly to Storage::disk()->delete without verifying that those paths correspond to files persisted on the record being edited. Any authenticated user with Update access to a CRUD panel that uses this mutator can therefore delete another record's attachment, a shared asset, or another operational file on the configured storage disk simply by submitting its path; deleted files cannot be read, so the impact is limited to integrity and availability (CVSS 3.1: 8.1, high). The newer MultipleFiles uploader is not affected because it intersects requested deletions with the record's persisted file list. The flaw is fixed in versions 6.8.12 and 7.0.35, the 5.x line remains affected through its final releases, and no public proof of concept or exploitation in the wild is known.
What to do: Upgrade backpack/crud to 6.8.12 (6.x line) or 7.0.35 or later (7.x line) immediately; 5.x never received a fix, so those applications must upgrade to a patched release or backport the fix. Where upgrading is delayed, migrate affected fields to the newer MultipleFiles uploader (which validates deletions against the record's persisted file list), and restrict Update permissions on CRUDs that use HasUploadFields to trusted operators. Review storage disks and backups for unexplained deletions of shared assets or other records' attachments, since abused requests may look like legitimate edits.
| Backpack (Laravel Backpack) backpack/crud (Backpack for Laravel admin panels) | 5.x — all releases through the final 5.x versions (never fixed; EOL line) |
| Backpack (Laravel Backpack) backpack/crud (Backpack for Laravel admin panels) | >=6.0.0, <6.8.12 |
| Backpack (Laravel Backpack) backpack/crud (Backpack for Laravel admin panels) | >=7.0.0, <7.0.35 |
Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.
backpack/crud provides Create, Read, Update & Delete (CRUD) functions for Backpack, a collection of Laravel packages that help users build custom administration panels. Prior to 6.8.12 and 7.0.35, HasUploadFields::uploadMultipleFilesToDisk in src/app/Models/Traits/HasUploadFields.php trusts disk-relative paths from clear_ [] and passes them to Storage::disk()->delete without confirming that the paths are persisted on the current model record. An authenticated user with Update access to a CRUD using this mutator through src/app/Models/Traits/CrudTrait.php can delete another record's attachment, a shared asset, or another operational file on the configured disk by submitting its path. The newer MultipleFiles uploader is not affected because it intersects requested deletions with the record's persisted file list. This flaw does not permit reading the deleted files. The 5.x line remains affected through its final releases. This issue is fixed in versions 6.8.12 and 7.0.35.
- Weakness
- CWE-22, CWE-285, CWE-639
- Vector
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H
In the news0 stories
No ingested article mentions this CVE yet.