Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. backpack/crud
  4. ›
  5. CVE-2026-54178

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

August 20, 2026

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.

An 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.

The 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.

References

  • github.com/Laravel-Backpack/CRUD/releases/tag/6.8.12
  • github.com/Laravel-Backpack/CRUD/releases/tag/7.0.35
  • github.com/Laravel-Backpack/CRUD/security/advisories/GHSA-8xjm-wqrp-2f25
  • github.com/advisories/GHSA-8xjm-wqrp-2f25
  • nvd.nist.gov/vuln/detail/CVE-2026-54178

Code Behaviors & Features

Detect and mitigate CVE-2026-54178 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 5.0.0 before 6.8.12, all versions starting from 7.0.0 before 7.0.35

Fixed versions

  • 6.8.12
  • 7.0.35

Solution

Upgrade to versions 6.8.12, 7.0.35 or above.

Impact 8.1 HIGH

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
  • CWE-285: Improper Authorization
  • CWE-639: Authorization Bypass Through User-Controlled Key

Source file

packagist/backpack/crud/CVE-2026-54178.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 22 Sep 2026 12:20:07 +0000.