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?
| Package | Affected versions | Fixed 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.35 | 6.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 auditAdvisory details
| Severity | HighCVSS 8.1 |
|---|---|
| Published | |
| Updated | |
| CVE | CVE-2026-54178 (opens in a new tab) |
| GHSA | GHSA-8xjm-wqrp-2f25 (opens in a new tab) |
| Weakness | CWE-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
- Laravel Backpack CRUD: Unverified password change in MyAccountController via mass assignment (high, 20 August 2026)
- Laravel Backpack CRUD: CRUD panel query scopes are not enforced on Update, Delete, and Reorder (cross-tenant IDOR) (high, 20 August 2026)
- Laravel Backpack CRUD: OS command injection in Stats::makeCurlRequest via attacker-controlled Host header (pre-auth) (high, 20 August 2026)
- Laravel Backpack CRUD: Stored XSS in the color column — the `@if($column['escaped'])` branches are inverted (opens in a new tab) (medium, 20 August 2026)
- Laravel Backpack CRUD: MyAccountController allows changing the login email without a current-password check (opens in a new tab) (medium, 20 August 2026)