{"id":"CVE-2026-54182","published":"2026-09-14T17:48:21Z","modified":"2026-09-14T18:17:49Z","title":"backpack/crud: OS command injection in Stats::makeCurlRequest via attacker-controlled Host header (pre-auth)","vendor":"Laravel-Backpack","product":"CRUD","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.1,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00781,"percentile":0.5686,"provenance":"source"},"cwes":[{"id":"CWE-20","name":"Improper Input Validation"},{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command"},{"id":"CWE-116","name":"Improper Encoding or Escaping of Output"}],"references":[{"url":"https://github.com/Laravel-Backpack/CRUD/security/advisories/GHSA-mrc5-3mm3-45c5","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/Laravel-Backpack/CRUD/pull/6012","tags":["x_refsource_MISC"]},{"url":"https://github.com/Laravel-Backpack/CRUD/commit/0f2faafc22a15d77c14370f163d8f739f933c28c","tags":["x_refsource_MISC"]},{"url":"https://github.com/Laravel-Backpack/CRUD/commit/1476a3769d94a410a2d2e9576deb522e84002f2a","tags":["x_refsource_MISC"]},{"url":"https://github.com/Laravel-Backpack/CRUD/commit/282ba2a0b88749fb1888b3836678ba462d7023f0","tags":["x_refsource_MISC"]},{"url":"https://github.com/Laravel-Backpack/CRUD/commit/471935e296b1be1a7216fdf10c8823e1f512f601","tags":["x_refsource_MISC"]},{"url":"https://github.com/Laravel-Backpack/CRUD/releases/tag/4.1.72","tags":["x_refsource_MISC"]},{"url":"https://github.com/Laravel-Backpack/CRUD/releases/tag/5.6.2","tags":["x_refsource_MISC"]},{"url":"https://github.com/Laravel-Backpack/CRUD/releases/tag/6.8.13","tags":["x_refsource_MISC"]},{"url":"https://github.com/Laravel-Backpack/CRUD/releases/tag/7.0.36","tags":["x_refsource_MISC"]}],"priority":{"score":17.0,"factors":[{"name":"EPSS percentile","points":11.37},{"name":"CVSS severity","points":5.67}]},"vendorSlug":"laravel-backpack","affectedVersions":[{"vendor":"Laravel-Backpack","product":"CRUD","versions":["< 4.1.70",">= 5.0.0, < 5.6.2",">= 6.0.0, < 6.8.13",">= 7.0.0, < 7.0.36"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-09-14T18:17:38.848658Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Packagist","package":"backpack/crud","vulnerableRanges":[">=4.1.0, <4.1.72",">=5.0.0, <5.6.2",">=6.0.0, <6.8.13",">=7.0.0, <7.0.36"],"patched":["4.1.72","5.6.2","6.8.13","7.0.36"],"from":["GHSA-mrc5-3mm3-45c5"],"provenance":"source"}],"summary":{"text":"The flaw is an OS command injection in the Stats::makeCurlRequest method of the CRUD component of Laravel-Backpack's backpack/crud package, where a URL influenced by the HTTP Host header is passed to exec() without adequate shell neutralization. An unauthenticated remote attacker can inject operating-system commands by sending a malformed Host value that reaches PHP, provided exec() and curl are available and the code path's random gate is reached, which can happen through repeated requests; successful exploitation runs commands as the web-server user.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:50:15Z"},"euvd":{"id":"EUVD-2026-77707","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-laravel-backpack-crud-cve-2026-54178","parents":[{"from":"CVE-2026-54178","to":"CVE-2026-54182","relation":"successor","confidence":"high","kind":"lineage","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:backpack/crud","fromFixed":"7.0.35","toFixed":"7.0.36","daysApart":0},{"kind":"version-step","provenance":"source","package":"Packagist:backpack/crud","fromFixed":"6.8.12","toFixed":"6.8.13","daysApart":0},{"kind":"same-code","provenance":"machine","files":["src/Stats.php"],"commits":["https://github.com/Laravel-Backpack/CRUD/commit/0c7e095a869b8d1bd5668b1370a83b148e75bf4e","https://github.com/Laravel-Backpack/CRUD/commit/baae0420b6ebefaf5fe4cd88c1fc358feb9c2816","https://github.com/Laravel-Backpack/CRUD/commit/0f2faafc22a15d77c14370f163d8f739f933c28c","https://github.com/Laravel-Backpack/CRUD/commit/1476a3769d94a410a2d2e9576deb522e84002f2a"],"basis":"shared function","functions":["sendUsageStats"]}]}],"packageHistory":[{"cve":"CVE-2022-31114","published":"2026-06-03","fixed":"5.0.13","kev":false,"link":{"from":"CVE-2022-31114","to":"CVE-2026-54182","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:backpack/crud","fromFixed":"5.0.13","toFixed":"5.6.2","daysApart":103},{"kind":"version-step","provenance":"source","package":"Packagist:backpack/crud","fromFixed":"4.1.69","toFixed":"4.1.72","daysApart":103}]}},{"cve":"CVE-2026-54175","published":"2026-09-14","fixed":"7.0.34","kev":false},{"cve":"CVE-2026-54178","published":"2026-09-14","fixed":"7.0.35","kev":false},{"cve":"CVE-2026-54182","published":"2026-09-14","fixed":"7.0.36","kev":false},{"cve":"CVE-2026-54176","published":"2026-09-14","fixed":"7.0.38","kev":false},{"cve":"CVE-2026-54177","published":"2026-09-14","fixed":"7.0.38","kev":false},{"cve":"CVE-2026-54179","published":"2026-08-31","fixed":"7.0.38","kev":false}],"package":"Packagist:backpack/crud"}}