# Laravel Backpack CRUD: OS command injection in Stats::makeCurlRequest via attacker-controlled Host header (pre-auth)

High severity, published 2026-08-20. 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.

Canonical URL: https://buzzphp.com/security/ghsa-mrc5-3mm3-45c5 · Data from GitHub as of 2026-11-25.

| | |
| --- | --- |
| Severity | high (CVSS 8.1) |
| Published | 2026-08-20 |
| Updated | 2026-08-20 |
| CVE | [CVE-2026-54182](https://nvd.nist.gov/vuln/detail/CVE-2026-54182) |
| GHSA | [GHSA-mrc5-3mm3-45c5](https://github.com/advisories/GHSA-mrc5-3mm3-45c5) |
| Weakness | CWE-20, CWE-78, CWE-116 |

| Package | Affected versions | Fixed in |
| --- | --- | --- |
| backpack/crud | >= 4.1.0, < 4.1.72 or >= 5.0.0, < 5.6.2 or >= 6.0.0, < 6.8.13 or >= 7.0.0, < 7.0.36 | 4.1.72, 5.6.2, 6.8.13, 7.0.36 |

## What to do

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.

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

## About this advisory

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



## Links

- [GHSA-mrc5-3mm3-45c5 on GitHub](https://github.com/advisories/GHSA-mrc5-3mm3-45c5)
- [CVE-2026-54182 on the National Vulnerability Database](https://nvd.nist.gov/vuln/detail/CVE-2026-54182)
- [All Composer security advisories](https://buzzphp.com/security)
