backpack/crud security advisory
CVE-2026-54182: Laravel Backpack CRUD: OS command injection in Stats::makeCurlRequest via attacker-controlled Host header (pre-auth)
CVE-2026-54182 is a high-severity command injection vulnerability in the PHP package backpack/crud (CVSS 8.1), published 14 September 2026. It is fixed in 4.1.72, 5.6.2, 6.8.13 and 7.0.36, one per release line; earlier versions on each line are affected. It can be exploited without an account.
high 8.1 published 2026-09-14 · updated 2026-09-30
- Affected versions
- >= 4.1.0, < 4.1.72
>= 5.0.0, < 5.6.2
>= 6.0.0, < 6.8.13
>= 7.0.0, < 7.0.36 - Fixed in
- 4.1.72, 5.6.2, 6.8.13, 7.0.36
- Newest release
- 7.1.24
- Severity
- High · CVSS 8.1
- Type
- Command injection
CWE-20, CWE-78, CWE-116 - Exploited in the wild
- Not on the CISA KEV list
checked 2026-11-04
Is your backpack/crud version affected?
Who can exploit CVE-2026-54182
- Access: No account. Anyone who can send a request to an app that uses the affected code.
- Conditions: It only works under specific conditions the attacker does not fully control (CVSS rates the attack as high complexity).
CVSS vector (scored by GitHub): CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
How to fix CVE-2026-54182 in backpack/crud
- Find the installed version:
composer show backpack/crud. If you never required it yourself,composer why backpack/crudshows which package pulls it in. - Update it:
composer update backpack/crud --with-all-dependencies. You need the fixed version for your release line (4.1.72, 5.6.2, 6.8.13 and 7.0.36). - If Composer will not go that high, your composer.json constraint is holding it back. Widen it (for example
"backpack/crud": "^7.0.36"if you can take that version), or upgrade the package that requires it. - Run
composer audit. It reads the same advisory data and should no longer list CVE-2026-54182. - Commit composer.lock and deploy it. On the server, run
composer install --no-devfrom the lock file, notcomposer update.
If you cannot upgrade yet
- Do not pass user input to the affected process or shell call.
- If your app does not use the affected feature, note that in your audit, but still plan the upgrade.
The CVE-2026-54182 advisory
backpack/crud provides Create, Read, Update & Delete (CRUD) functions for Backpack, a collection of Laravel packages that help users build custom administration panels. Prior to 4.1.70, 5.6.2, 6.8.13, and 7.0.36, Backpack\CRUD\Stats::makeCurlRequest in src/Stats.php is reached from BackpackServiceProvider::boot() and constructs a shell command with a URL influenced by the HTTP Host header, which it passes to exec() without adequate shell neutralization. An unauthenticated attacker whose malformed Host value reaches PHP can inject operating-system commands when exec() and curl are available and the 1-in-100 random gate is reached. Repeated requests can reach the random gate. Successful exploitation executes commands as the web-server user, exposing environment secrets, files, and reachable services and permitting data modification or service disruption. Common reverse-proxy Host validation and hardened PHP configurations that disable exec() reduce reachability but do not correct the vulnerable construction. This issue is fixed in versions 4.1.70, 5.6.2, 6.8.13, and 7.0.36.
References
- GitHub advisory GHSA-mrc5-3mm3-45c5 github.com
- Fix commit 0f2faaf github.com
- Fix commit 1476a37 github.com
- Fix commit 282ba2a github.com
- Fix commit 471935e github.com
- Pull request #6012 github.com
- Release 4.1.72 github.com
- Release 5.6.2 github.com
Other backpack/crud advisories
- medium CVE-2026-57570: Laravel Backpack CRUD: HasMany/MorphMany relation fields allow cross-tenant record re-parenting (IDOR) via attachManyRelation 2026-08-20
- medium CVE-2026-54181: Laravel Backpack CRUD: Stored XSS in the color column — the @if($column['escaped']) branches are inverted 2026-08-20
- high CVE-2026-54180: Laravel Backpack CRUD: CRUD panel query scopes are not enforced on Update, Delete, and Reorder (cross-tenant IDOR) 2026-08-20
- medium CVE-2026-54179: Laravel Backpack CRUD: SingleBase64Image accepts any base64 payload behind a data:image prefix — SVG-with-script lands on the public disk 2026-08-20
- high CVE-2026-54178: Laravel Backpack CRUD: Arbitrary file deletion via attacker-controlled clear_<attr>[] in HasUploadFields::uploadMultipleFilesToDisk 2026-08-20
- medium CVE-2026-54177: Laravel Backpack CRUD: HasUploadFields keeps the attacker-supplied file extension — public-disk uploads of shell.php reach the webserver 2026-08-20
Related
Need help patching or upgrading? Laskyr does PHP and Laravel security fixes and upgrades. Tell us what you run and we reply with a plan and a price.
Ask about a fixWhere this data comes from
- Affected and fixed versions: the Packagist security advisories API (GitHub Advisory Database and FriendsOfPHP), the same data
composer audituses. Synced 2026-11-03. - Description, score, weakness and references: NIST National Vulnerability Database (NVD), checked 2026-11-04. This product uses data from the NVD API but is not endorsed or certified by the NVD.
- Exploited-in-the-wild status: the CISA Known Exploited Vulnerabilities catalog, checked 2026-11-04.
- Compiled by Daniel Lasek at Laskyr from the sources above. The summary, “who can exploit it”, “how to fix it” and hardening sections are our plain-English reading of the record and are generated from it. The quoted description is the record's own text. Spot an error? Tell us.