Description
laravel-backup-restore restores database backups made with spatie/laravel-backup. Prior to version 1.9.4, a crafted backup archive can trigger OS command injection during database restore. This issue has been patched in version 1.9.4.
Published: 2026-09-04
Score: 8 High
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

A maliciously crafted backup archive can cause the laravel-backup-restore tool to execute arbitrary commands, allowing an attacker to run code with the privileges of the application. The vulnerability resides in the lack of proper sanitization of special characters before they are interpolated into an OS command, classified as CWE-77 and CWE-78. If exploited, the attacker can compromise confidentiality, integrity, and availability of the affected system.

Affected Systems

The flaw is present in the stevanzweifel/laravel-backup-restore package before version 1.9.4. Any deployment that uses laravel-backup-restore 1.9.3 or earlier, when restoring a backup archive supplied by an attacker, is vulnerable.

Risk and Exploitability

The CVSS score of 8 indicates a high severity. EPSS data is unavailable, and the vulnerability is not listed in the CISA KEV catalog. The likely attack vector is through a crafted backup file that the application processes during a restore operation, which could be delivered via a web interface or manually on the server. Successful exploitation results in full remote code execution.

Generated by OpenCVE AI on September 4, 2026 at 21:31 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade to versio n 1.9.4 or later of laravel-backup-restore to eliminate the unsafe command construction.
  • Validate and sanitize backup archives before feeding them to restoration code, ensuring that any data used in command strings is strictly controlled.
  • Restrict the execution of restore functionality to a restricted user role or network segment, and run the restoration process with the least privileges necessary.

Generated by OpenCVE AI on September 4, 2026 at 21:31 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-w9mx-xmg4-gc4r laravel-backup-restore has an OS Command Injection during database restore
History

Fri, 04 Sep 2026 20:00:00 +0000

Type Values Removed Values Added
Description laravel-backup-restore restores database backups made with spatie/laravel-backup. Prior to version 1.9.4, a crafted backup archive can trigger OS command injection during database restore. This issue has been patched in version 1.9.4.
Title wnx/laravel-backup-restore: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') and Improper Neutralization of Special Elements used in a Command ('Command Injection')
Weaknesses CWE-77
CWE-78
References
Metrics cvssV3_1

{'score': 8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H'}


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-09-04T19:48:52.844Z

Reserved: 2026-06-11T15:46:12.317Z

Link: CVE-2026-53932

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-09-04T20:17:23.570

Modified: 2026-09-04T20:17:23.570

Link: CVE-2026-53932

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-09-04T21:45:17Z

Weaknesses
  • CWE-77

    Improper Neutralization of Special Elements used in a Command ('Command Injection')

  • CWE-78

    Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')