Laravel Backpack CRUD: OS command injection in Stats::makeCurlRequest via attacker-controlled Host header (pre-auth)
High severity. Published 20 August 2026. Update backpack/crud to the fixed version of your branch (4.1.72, 5.6.2, 6.8.13, 7.0.36): composer update backpack/crud.
Which versions are affected?
| Package | Affected versions | Fixed in |
|---|---|---|
| backpack/crud (opens in a new tab) | >= 4.1.0, < 4.1.72 | >= 5.0.0, < 5.6.2 | >= 6.0.0, < 6.8.13 | >= 7.0.0, < 7.0.36 | 4.1.72, 5.6.2, 6.8.13, 7.0.36 |
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-54182 (opens in a new tab) |
| GHSA | GHSA-mrc5-3mm3-45c5 (opens in a new tab) |
| Weakness | CWE-20, CWE-78, CWE-116 |
What the advisory says
Summary
Backpack\CRUD\Stats::makeCurlRequest builds a shell command using unescaped input that originates from the HTTP Host header, then passes it to exec(). A specially crafted Host header can break out of the shell argument and cause the server to execute arbitrary OS commands as the web user.
The vulnerable code path is reached from BackpackServiceProvider::boot() on every HTTP request in production when exec() and curl are available. A 1-in-100 random gate is the only guard — an attacker can reliably trigger it by retrying.
Severity
High — CVSS 8.1 CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Source: GHSA-mrc5-3mm3-45c5 (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: 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)
- Laravel Backpack CRUD: Arbitrary file deletion via attacker-controlled clear_<attr>[] in HasUploadFields::uploadMultipleFilesToDisk (high, 20 August 2026)