Arbitrary Code Injection Affecting marsdb package, versions *


Severity

0.0
critical
0
10

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-JS-MARSDB-480405
  • published 6 Nov 2019
  • disclosed 29 Aug 2019
  • credit Francois Gauthier

Introduced: 29 Aug 2019

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

How to fix?

There is no fixed version for marsdb.

Overview

marsdb is a MarsDB is a lightweight client-side database.

Affected versions of this package are vulnerable to Arbitrary Code Injection. In the DocumentMatcher class, selectors on $where clauses are passed to a Function constructor unsanitized. This allows attackers to run arbitrary commands in the system when the function is executed.

CVSS Scores

version 3.1
Expand this section

Snyk

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