Escape S3/rclone args and restore paths to prevent command injection

fix(security): escape S3/rclone args and restore paths to prevent command injection
Escape S3/rclone args and restore paths to prevent command injectioneeb6e7-fix-escape-s3-rclone-args-and-restore-cve-2026-72733-cve-2026-72738-cve-2026-72868fixescape rclone args restore paths prevent

Committed by Siumauricio

commit message
fix(security): escape S3/rclone args and restore paths to prevent command injection

Wrap S3 credential flags (getS3Credentials + destination.testConnection), the
listBackupFiles search path, and every restore backupPath/backupFile with
shell-quote's quote() so $(), backticks, quotes and spaces in destination
fields or backupFile can no longer break out of the rclone shell commands.

Editor assessment

This commit patches CVE-2026-72733, CVE-2026-72738 and CVE-2026-72868. The subject names the affected sinks, S3 credential flags and rclone arguments plus restore paths, and states the remedy as escaping to prevent command injection. The body enumerates the specific call sites, getS3Credentials, destination.testConnection, listBackupFiles and every restore path, and says shell-quote's quote() neutralizes command substitution, backticks, quotes and spaces. That is enough for a reviewer to verify coverage. It stays terse, never describing the attacker or the impact, and offers no test evidence, which keeps it one notch below exemplar.

Browse categories

More fix examples · Back to search