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

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

Canonical URL: https://buzzphp.com/security/ghsa-8xjm-wqrp-2f25 · Data from GitHub as of 2026-11-25.

| | |
| --- | --- |
| Severity | high (CVSS 8.1) |
| Published | 2026-08-20 |
| Updated | 2026-08-20 |
| CVE | [CVE-2026-54178](https://nvd.nist.gov/vuln/detail/CVE-2026-54178) |
| GHSA | [GHSA-8xjm-wqrp-2f25](https://github.com/advisories/GHSA-8xjm-wqrp-2f25) |
| Weakness | CWE-22, CWE-285, CWE-639 |

| Package | Affected versions | Fixed in |
| --- | --- | --- |
| backpack/crud | >= 5.0.0, < 6.0.0 or >= 6.0.0, < 6.8.12 or >= 7.0.0, < 7.0.35 | 6.8.12, 7.0.35 |

## What to do

Update backpack/crud to the fixed version of your branch (6.8.12, 7.0.35): composer update backpack/crud.

Check which version you run with `composer show backpack/crud`, and every affected package with `composer audit`.

## About this advisory

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.



## Links

- [GHSA-8xjm-wqrp-2f25 on GitHub](https://github.com/advisories/GHSA-8xjm-wqrp-2f25)
- [CVE-2026-54178 on the National Vulnerability Database](https://nvd.nist.gov/vuln/detail/CVE-2026-54178)
- [All Composer security advisories](https://buzzphp.com/security)
