BuzzPHP
LightDarkSystem

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?

PackageAffected versionsFixed 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.364.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 audit

Advisory details

SeverityHighCVSS 8.1
Published
Updated
CVECVE-2026-54182 (opens in a new tab)
GHSAGHSA-mrc5-3mm3-45c5 (opens in a new tab)
WeaknessCWE-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

All Composer security advisories