CVE-2026-54178: Laravel Backpack CRUD Arbitrary File Deletion Vulnerability
HIGHCVE-2026-54178 is a HIGH (CVSS 8.1) arbitrary file deletion vulnerability (CWE-639: Authorization Bypass Through User-Controlled Key) affecting Laravel Backpack CRUD libraries in the Packagist ecosystem. The issue involves arbitrary file deletion via attacker-controlled clear_<attr>[] in hasuploadfields::uploadmultiplefilestodisk. Remediation is available by upgrading affected packages to version 6.8.12, 7.0.35.
CVE-2026-54178 at a Glance
Security Impact
CVSS: 8.1
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H).
How to Fix CVE-2026-54178
To remediate this vulnerability, upgrade all affected Laravel Backpack CRUD dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade backpack/crud to Latest secure release
Upgrade backpack/crud to 6.8.12
Upgrade backpack/crud to 7.0.35
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for backpack/crud
How to Check if You Are Affected
To determine whether your application is affected by CVE-2026-54178, inspect your project dependencies for Laravel Backpack CRUD:
inspect dependencies for backpack/crud
Analyze the terminal output to locate any version of Laravel Backpack CRUD in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 6.8.12), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-639: Authorization Bypass Through User-Controlled Key, where the system's authorization functionality does not prevent one user from gaining access to another user's data or record by modifying the key value identifying the data. In Laravel Backpack CRUD, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-54178 Affected Laravel Backpack CRUD Versions
3 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
backpack/crud
|
Packagist |
≥ 5.0.0
|
|
|
backpack/crud
|
Packagist |
≥ 6.0.0
< 6.8.12
|
6.8.12
|
|
backpack/crud
|
Packagist |
≥ 7.0.0
< 7.0.35
|
7.0.35
|
References
Frequently Asked Questions
What is CVE-2026-54178?
Which Laravel Backpack CRUD versions are affected?
What version fixes CVE-2026-54178?
Is backpack/crud affected?
What is the CVSS score of CVE-2026-54178?
What CWE is associated with CVE-2026-54178?
How can I check Packagist dependencies for CVE-2026-54178?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-8xjm-wqrp-2f25",
"modified" : "2026-08-20T18:38:39Z",
"published" : "2026-08-20T18:38:39Z",
"aliases" : [ "CVE-2026-54178" ],
"summary" : "Laravel Backpack CRUD: Arbitrary file deletion via attacker-controlled clear_<attr>[] in HasUploadFields::uploadMultipleFilesToDisk",
"details" : "## Summary\n\n`HasUploadFields::uploadMultipleFilesToDisk` (in `src/app/Models/Traits/HasUploadFields.php`) reads file paths from the `clear_<attribute>[]` request input and deletes them from the configured storage disk **without verifying that the paths belong to the current model record**.\n\nAn authenticated user with Update access on any CRUD that wires `uploadMultipleFilesToDisk` as a model mutator (the pattern documented in the v5.x `upload_multiple` field guide) can supply arbitrary disk-relative paths in `clear_<attr>[]` to delete files that were never associated with the record they are editing.\n\nThe safe pattern already exists in the codebase: `src/app/Library/Uploaders/MultipleFiles.php` intersects the requested deletions against the files currently stored in the database column before calling `Storage::disk()->delete()`. The trait method lacks that intersection.\n\n## Affected code\n\n- `src/app/Models/Traits/HasUploadFields.php` — `uploadMultipleFilesToDisk` (primary sink)\n- `src/app/Models/Traits/CrudTrait.php` — mixes `HasUploadFields` into all Backpack-managed models\n\nThe vulnerability is present in all 5.x, 6.x < 6.8.12, and 7.x < 7.0.35 releases.\n\n## Impact\n\nAn attacker with low-privilege Backpack admin access (e.g. a content editor) can delete any file under the configured disk root: other records' attachments, shared assets, or files placed on the same disk for operational purposes. No confidentiality impact (files cannot be read, only deleted).\n\n**CWE-285** (Authorization Bypass) / **CWE-639** (IDOR on file deletion) \nCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H = **8.1 High**\n\n## Fix\n\nIntersect `$files_to_clear` against the filenames currently persisted on the model before calling `delete()`, mirroring the logic already present in `MultipleFiles::uploadFiles`. Fixed in **6.8.12** and **7.0.35**.\n\nDeployments still using the `uploadMultipleFilesToDisk` mutator pattern from the v5.x docs should migrate to the Uploader API (`MultipleFiles::class` via `config/backpack/crud.php`), which applies the safe intersection automatically.\n\n## Credits\n\nReported by Vishal Shukla ([@shukla304](https://github.com/shukla304)).",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "backpack/crud"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "5.0.0"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "< 6.0.0"
}
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "backpack/crud"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "6.0.0"
}, {
"fixed" : "6.8.12"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "backpack/crud"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "7.0.0"
}, {
"fixed" : "7.0.35"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/Laravel-Backpack/CRUD/security/advisories/GHSA-8xjm-wqrp-2f25"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/Laravel-Backpack/CRUD"
}, {
"type" : "WEB",
"url" : "https://github.com/Laravel-Backpack/CRUD/releases/tag/6.8.12"
}, {
"type" : "WEB",
"url" : "https://github.com/Laravel-Backpack/CRUD/releases/tag/7.0.35"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-22", "CWE-285", "CWE-639" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2026-08-20T18:38:39Z",
"nvd_published_at" : null
}
}