Intel

AIKIDO-2026-720715

wnx/laravel-backup-restore is vulnerable to OS Command Injection

GHSA-5hgx-6qwm-fmj6Published Sep 23, 2026
September 23, 2026

65

CVE Score

Medium

OS Command Injection

Are you affected? Scan for Free

TL;DR

The MySQL and PostgreSQL import commands in wnx/laravel-backup-restore concatenate database connection parameters - host, username, password, port, database name, and dump options - into a shell command without escaping them. A connection value containing shell metacharacters reaches a process run through a shell during a database restore and runs arbitrary OS commands. The patch escapes each connection parameter and dump option individually before building the import command.

How do I fix this?

Upgrade the wnx/laravel-backup-restore library to the patch version.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range, and your database connection configuration can be influenced by untrusted input.

Versions

1.1.3 - 1.9.6

Fixed in 1.9.7

Background info

wnx/laravel-backup-restore is vulnerable to OS Command Injection in versions 1.1.3 - 1.9.6.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea