Command Injection Affecting dar-backup package, versions [,0.8.2)


Severity

Recommended
0.0
critical
0
10

CVSS assessment by Snyk's Security Team. Learn more

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Command Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PYTHON-DARBACKUP-13807335
  • published2 Nov 2025
  • disclosed1 Nov 2025
  • creditUnknown

Introduced: 1 Nov 2025

New CVE NOT AVAILABLE CWE-78  (opens in a new tab)

How to fix?

Upgrade dar-backup to version 0.8.2 or higher.

Overview

dar-backup is an A script to do full, differential and incremental backups using dar. Some files are restored from the backups during verification, after which par2 redundancy files are created. The script also has a cleanup feature to remove old backups and par2 files.

Affected versions of this package are vulnerable to Command Injection due to insufficient sanitization of command arguments in the CommandRunner.run() method. An attacker can execute arbitrary commands by injecting shell metacharacters (such as ;, &, |, etc.) in arguments that bypass the sanitize_cmd(cmd) checks.

References

CVSS Base Scores

version 4.0
version 3.1