NULL Pointer Dereference Affecting mruby/mruby package, versions [,3.2.0)


Severity

Recommended
0.0
medium
0
10

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

Threat Intelligence

Exploit Maturity
Proof of concept
EPSS
0.1% (44th 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 Learn

Learn about NULL Pointer Dereference vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-UNMANAGED-MRUBYMRUBY-5498629
  • published8 May 2023
  • disclosed8 May 2023
  • creditOctavio Gianatiempo

Introduced: 8 May 2023

CVE-2022-0240  (opens in a new tab)
CWE-476  (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 NULL Pointer Dereference in prepare_singleton_class.

PoC

1.times{b={}
a=0
[**0,m:0]
c={0=>0,nil=>nil}[0]
def m()end
def c.e()end}

References

CVSS Scores

version 3.1