Remote Code Execution (RCE) Affecting flavour_saver package, versions <0.3.3


0.0
critical

Snyk CVSS

    Attack Complexity Low
    Confidentiality High
    Integrity High
    Availability High

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-5457859
  • published 23 Apr 2023
  • disclosed 23 Apr 2023
  • credit Unknown

Introduced: 23 Apr 2023

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

How to fix?

Upgrade flavour_saver to version 0.3.3 or higher.

Overview

Affected versions of this package are vulnerable to Remote Code Execution (RCE) in 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.