Improper Input Validation Affecting borgbackup package, versions [,1.0.7)


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team

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 ID SNYK-PYTHON-BORGBACKUP-6226599
  • published 2 Feb 2024
  • disclosed 1 Feb 2024
  • credit ThomasWaldmann

Introduced: 1 Feb 2024

CVE NOT AVAILABLE CWE-20 Open this link in a new tab

How to fix?

Upgrade borgbackup to version 1.0.7 or higher.

Overview

Affected versions of this package are vulnerable to Improper Input Validation leading to insecure path manipulation.

When using e.g. --restrict-to-path /path/client1/ (with or without trailing slash does not make a difference), this acts like a path prefix match using /path/client1 (note the missing trailing slash).

CVSS Scores

version 3.1
Expand this section

Snyk

6.5 medium
  • Attack Vector (AV)
    Network
  • Attack Complexity (AC)
    Low
  • Privileges Required (PR)
    None
  • User Interaction (UI)
    None
  • Scope (S)
    Unchanged
  • Confidentiality (C)
    Low
  • Integrity (I)
    Low
  • Availability (A)
    None