laravel-backup-restore has an OS Command Injection during database restore
High severity. Published 9 July 2026. Update wnx/laravel-backup-restore to 1.9.4 or later: composer update wnx/laravel-backup-restore.
Which versions are affected?
| Package | Affected versions | Fixed in |
|---|---|---|
| wnx/laravel-backup-restore (opens in a new tab) | <= 1.9.3 | 1.9.4 |
What should you do?
Update every affected package you use to its fixed version, then check that nothing else in your project matches an advisory. To see which version you run, and whether anything is still affected:
composer show wnx/laravel-backup-restore
composer auditAdvisory details
| Severity | HighCVSS 8 |
|---|---|
| Published | |
| Updated | |
| CVE | CVE-2026-53932 (opens in a new tab) |
| GHSA | GHSA-w9mx-xmg4-gc4r (opens in a new tab) |
| Weakness | CWE-77, CWE-78 |
What the advisory says
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}
Source: GHSA-w9mx-xmg4-gc4r (opens in a new tab) in the GitHub Advisory Database (CC BY 4.0). Data from GitHub (opens in a new tab) as of .