Out-of-bounds Write Affecting mruby/mruby package, versions [,2.1.2)


Severity

Recommended
0.0
critical
0
10

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

Threat Intelligence

EPSS
0.46% (76th 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-2333610
  • published12 Jan 2022
  • disclosed21 Jul 2020
  • creditUnknown

Introduced: 21 Jul 2020

CVE-2020-15866  (opens in a new tab)
CWE-787  (opens in a new tab)

How to fix?

Upgrade mruby/mruby to version 2.1.2 or higher.

Overview

Affected versions of this package are vulnerable to Out-of-bounds Write mruby through 2.1.2-rc has a heap-based buffer overflow in the mrb_yield_with_class function in vm.c because of incorrect VM stack handling. It can be triggered via the stack_copy function.

References

CVSS Scores

version 3.1