Arbitrary Command Execution Affecting flavour_saver package, versions < 0.3.3


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-RUBY-FLAVOURSAVER-20194
  • published 3 Sep 2014
  • disclosed 3 Sep 2014
  • credit Unknown

Introduced: 3 Sep 2014

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

Overview

FlavourSaver is a pure-ruby implementation of the Handlebars templating language. Affected versions of this gem are vulnerable to arbitrary command execution via the helper method dispatch where it uses Kernel::send to call helpers without checking that they are defined within the template context first. This allows expressions such as {{system "ls"}} or {{eval "puts 1 + 1"}} to be executed.

CVSS Scores

version 3.1
Expand this section

Snyk

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