Access Restriction Bypass Affecting safemode package, versions < 1.3.3


Severity

Recommended
0.0
critical
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.21% (60th percentile)

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 IDSNYK-RUBY-SAFEMODE-22007
  • published31 Jan 2018
  • disclosed11 Jul 2017
  • creditUnknown

Introduced: 11 Jul 2017

CVE-2017-7540  (opens in a new tab)
CWE-264  (opens in a new tab)

How to fix?

Upgrade safemode to version 1.3.3 or higher.

Overview

safemode is a library for safe evaluation of Ruby code based on RubyParser and Ruby2Ruby.

Affected versions of this package are vulnerable to bypassing safe mode limitations via special Ruby syntax. This can lead to deletion of objects for which the user does not have delete permissions or possibly to privilege escalation.

CVSS Scores

version 3.1