# laravel-backup-restore has an OS Command Injection during database restore

High severity, published 2026-07-09. Update wnx/laravel-backup-restore to 1.9.4 or later: composer update wnx/laravel-backup-restore.

Canonical URL: https://buzzphp.com/security/ghsa-w9mx-xmg4-gc4r · Data from GitHub as of 2026-11-25.

| | |
| --- | --- |
| Severity | high (CVSS 8) |
| Published | 2026-07-09 |
| Updated | 2026-07-09 |
| CVE | [CVE-2026-53932](https://nvd.nist.gov/vuln/detail/CVE-2026-53932) |
| GHSA | [GHSA-w9mx-xmg4-gc4r](https://github.com/advisories/GHSA-w9mx-xmg4-gc4r) |
| Weakness | CWE-77, CWE-78 |

| Package | Affected versions | Fixed in |
| --- | --- | --- |
| wnx/laravel-backup-restore | <= 1.9.3 | 1.9.4 |

## What to do

Update wnx/laravel-backup-restore to 1.9.4 or later: composer update wnx/laravel-backup-restore.

Check which version you run with `composer show wnx/laravel-backup-restore`, and every affected package with `composer audit`.

## About this advisory

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}



## Links

- [GHSA-w9mx-xmg4-gc4r on GitHub](https://github.com/advisories/GHSA-w9mx-xmg4-gc4r)
- [CVE-2026-53932 on the National Vulnerability Database](https://nvd.nist.gov/vuln/detail/CVE-2026-53932)
- [All Composer security advisories](https://buzzphp.com/security)
