Integer Overflow or Wraparound Affecting mruby/mruby package, versions [,1.4.1)


Severity

Recommended
0.0
critical
0
10

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

Threat Intelligence

EPSS
0.28% (69th 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-UNMANAGED-MRUBYMRUBY-2333612
  • published12 Jan 2022
  • disclosed17 Apr 2018
  • creditUnknown

Introduced: 17 Apr 2018

CVE-2018-10191  (opens in a new tab)
CWE-190  (opens in a new tab)
CWE-416  (opens in a new tab)

How to fix?

Upgrade mruby/mruby to version 1.4.1 or higher.

Overview

Affected versions of this package are vulnerable to Integer Overflow or Wraparound. In versions of mruby up to and including 1.4.0, an integer overflow exists in src/vm.c::mrb_vm_exec() when handling OP_GETUPVAR in the presence of deep scope nesting, resulting in a use-after-free. An attacker that can cause Ruby code to be run can use this to possibly execute arbitrary code.

CVSS Scores

version 3.1