Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. backpack/crud
  4. ›
  5. CVE-2026-54182

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

August 20, 2026

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.

References

  • github.com/Laravel-Backpack/CRUD/releases/tag/4.1.72
  • github.com/Laravel-Backpack/CRUD/releases/tag/5.6.2
  • github.com/Laravel-Backpack/CRUD/releases/tag/6.8.13
  • github.com/Laravel-Backpack/CRUD/releases/tag/7.0.36
  • github.com/Laravel-Backpack/CRUD/security/advisories/GHSA-mrc5-3mm3-45c5
  • github.com/advisories/GHSA-mrc5-3mm3-45c5
  • nvd.nist.gov/vuln/detail/CVE-2026-54182

Code Behaviors & Features

Detect and mitigate CVE-2026-54182 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 4.1.0 before 4.1.72, all versions starting from 5.0.0 before 5.6.2, all versions starting from 6.0.0 before 6.8.13, all versions starting from 7.0.0 before 7.0.36

Fixed versions

  • 4.1.72
  • 5.6.2
  • 6.8.13
  • 7.0.36

Solution

Upgrade to versions 4.1.72, 5.6.2, 6.8.13, 7.0.36 or above.

Impact 8.1 HIGH

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

Learn more about CVSS

Weakness

  • CWE-116: Improper Encoding or Escaping of Output
  • CWE-20: Improper Input Validation
  • CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

Source file

packagist/backpack/crud/CVE-2026-54182.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 12 Sep 2026 00:18:29 +0000.