Loading...
Skip to main content

CVE-2026-54182

HIGH

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

Published August 20, 2026Updated August 20, 2026Source: osv

Summary

## 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](https://github.com/shukla304)) via sechub.dev AI Agent.

Remediation

Upgrade to the fixed version using your package manager.

Composer
Update backpack/crud to 6.8.13 or later
composer require "backpack/crud:^6.8.13"
Composer
Update backpack/crud to 4.1.72 or later
composer require "backpack/crud:^4.1.72"
Composer
Update backpack/crud to 7.0.36 or later
composer require "backpack/crud:^7.0.36"
Composer
Update backpack/crud to 5.6.2 or later
composer require "backpack/crud:^5.6.2"

After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.

Affected Packages (4)

PackageEcosystemAffectedFixed In
backpack/crud
packagist
6.0.0, 6.0.1, 6.0.2, 6.0.3 (+115 more)6.8.13
backpack/crud
packagist
4.1.0, 4.1.1, 4.1.10, 4.1.11 (+68 more)4.1.72
backpack/crud
packagist
7.0.0, 7.0.1, 7.0.10, 7.0.11 (+32 more)7.0.36
backpack/crud
packagist
5.0.0, 5.0.1, 5.0.10, 5.0.11 (+68 more)5.6.2

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

  • CWE-116
    Improper Encoding or EscapingMITRE
  • CWE-20
    Improper Input ValidationMITRE
  • CWE-78
    OS Command InjectionMITRE

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 8.1 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

Frequently Asked Questions

What is CVE-2026-54182?
Laravel Backpack CRUD: OS command injection in Stats::makeCurlRequest via attacker-controlled Host header (pre-auth) This vulnerability has been assigned a severity rating of HIGH (CVSS score: 8.1/10).
How do I check if my project is affected by CVE-2026-54182?
CVE-2026-54182 affects backpack/crud. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-54182 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
8.1

High exploitability or significant impact. Prioritize remediation within days.

Also Known As

GHSA-mrc5-3mm3-45c5

Related CVEs

  • CVE-2026-64679
    HIGH

    Atlantis Workspace Handling has Path Traversal that Allows Out-of-Bounds Directory Deletion/Creation

  • CVE-2026-55839
    HIGH

    Kestra vulnerable to stored XSS via custom Markdown [[link]] attribute injection

  • CVE-2026-54347
    HIGH

    Froxlor: Stored XSS in DNS TXT Record Content Allows Customer-to-Admin Account Takeover

  • CVE-2026-63135
    HIGH

    YOURLS has stored XSS in referrer statistics chart via crafted Referer header

  • CVE-2026-63337
    HIGH

    RabbitMQ Java client: Unvalidated Class.forName in JSON-RPC ProcedureDescription enables arbitrary class loading

  • CVE-2026-56677
    HIGH

    9Router: Authenticated Server-Side Request Forgery (SSRF) via OIDC Provider Test Endpoint

  • CVE-2026-54178
    HIGH

    Laravel Backpack CRUD: Arbitrary file deletion via attacker-controlled clear_<attr>[] in HasUploadFields::uploadMultipleFilesToDisk

  • CVE-2026-54167
    HIGH

    Pipelines-as-Code GitHub App token request can be redirected via untrusted Enterprise Host header

Check if you're affected

Scan your dependencies to see if this vulnerability affects your projects.

Scan Your Dependencies