mruby CVE Vulnerabilities & Metrics

Focus on mruby vulnerabilities and metrics.

Last updated: 08 Mar 2025, 23:25 UTC

About mruby Security Exposure

This page consolidates all known Common Vulnerabilities and Exposures (CVEs) associated with mruby. We track both calendar-based metrics (using fixed periods) and rolling metrics (using gliding windows) to give you a comprehensive view of security trends and risk evolution. Use these insights to assess risk and plan your patching strategy.

For a broader perspective on cybersecurity threats, explore the comprehensive list of CVEs by vendor and product. Stay updated on critical vulnerabilities affecting major software and hardware providers.

Global CVE Overview

Total mruby CVEs: 38
Earliest CVE date: 11 Jun 2017, 17:29 UTC
Latest CVE date: 14 Feb 2023, 16:15 UTC

Latest CVE reference: CVE-2021-46023

Rolling Stats

30-day Count (Rolling): 0
365-day Count (Rolling): 0

Calendar-based Variation

Calendar-based Variation compares a fixed calendar period (e.g., this month versus the same month last year), while Rolling Growth Rate uses a continuous window (e.g., last 30 days versus the previous 30 days) to capture trends independent of calendar boundaries.

Variations & Growth

Month Variation (Calendar): 0%
Year Variation (Calendar): 0%

Month Growth Rate (30-day Rolling): 0.0%
Year Growth Rate (365-day Rolling): 0.0%

Monthly CVE Trends (current vs previous Year)

Annual CVE Trends (Last 20 Years)

Critical mruby CVEs (CVSS ≥ 9) Over 20 Years

CVSS Stats

Average CVSS: 6.08

Max CVSS: 7.8

Critical CVEs (≥9): 0

CVSS Range vs. Count

Range Count
0.0-3.9 1
4.0-6.9 22
7.0-8.9 15
9.0-10.0 0

CVSS Distribution Chart

Top 5 Highest CVSS mruby CVEs

These are the five CVEs with the highest CVSS scores for mruby, sorted by severity first and recency.

All CVEs for mruby

CVE-2021-46023 mruby vulnerability CVSS: 0 14 Feb 2023, 16:15 UTC

An Untrusted Pointer Dereference was discovered in function mrb_vm_exec in mruby before 3.1.0-rc. The vulnerability causes a segmentation fault and application crash.

CVE-2022-1934 mruby vulnerability CVSS: 4.6 31 May 2022, 03:15 UTC

Use After Free in GitHub repository mruby/mruby prior to 3.2.

CVE-2022-1427 mruby vulnerability CVSS: 4.6 23 Apr 2022, 00:15 UTC

Out-of-bounds Read in mrb_obj_is_kind_of in in GitHub repository mruby/mruby prior to 3.2. # Impact: Possible arbitrary code execution if being exploited.

CVE-2022-1286 mruby vulnerability CVSS: 7.5 10 Apr 2022, 11:15 UTC

heap-buffer-overflow in mrb_vm_exec in mruby/mruby in GitHub repository mruby/mruby prior to 3.2. Possible arbitrary code execution if being exploited.

CVE-2022-1276 mruby vulnerability CVSS: 7.5 10 Apr 2022, 10:15 UTC

Out-of-bounds Read in mrb_get_args in GitHub repository mruby/mruby prior to 3.2. Possible arbitrary code execution if being exploited.

CVE-2022-1212 mruby vulnerability CVSS: 7.5 05 Apr 2022, 04:15 UTC

Use-After-Free in str_escape in mruby/mruby in GitHub repository mruby/mruby prior to 3.2. Possible arbitrary code execution if being exploited.

CVE-2022-1201 mruby vulnerability CVSS: 4.9 02 Apr 2022, 08:15 UTC

NULL Pointer Dereference in mrb_vm_exec with super in GitHub repository mruby/mruby prior to 3.2. This vulnerability is capable of making the mruby interpreter crash, thus affecting the availability of the system.

CVE-2022-1106 mruby vulnerability CVSS: 6.4 27 Mar 2022, 14:15 UTC

use after free in mrb_vm_exec in GitHub repository mruby/mruby prior to 3.2.

CVE-2022-1071 mruby vulnerability CVSS: 6.8 26 Mar 2022, 04:15 UTC

User after free in mrb_vm_exec in GitHub repository mruby/mruby prior to 3.2.

CVE-2022-0890 mruby vulnerability CVSS: 7.1 10 Mar 2022, 01:15 UTC

NULL Pointer Dereference in GitHub repository mruby/mruby prior to 3.2.

CVE-2022-0717 mruby vulnerability CVSS: 6.4 23 Feb 2022, 02:15 UTC

Out-of-bounds Read in GitHub repository mruby/mruby prior to 3.2.

CVE-2022-0632 mruby vulnerability CVSS: 4.3 19 Feb 2022, 14:15 UTC

NULL Pointer Dereference in Homebrew mruby prior to 3.2.

CVE-2022-0630 mruby vulnerability CVSS: 5.8 19 Feb 2022, 14:15 UTC

Out-of-bounds Read in Homebrew mruby prior to 3.2.

CVE-2022-0631 mruby vulnerability CVSS: 7.5 18 Feb 2022, 14:15 UTC

Heap-based Buffer Overflow in Homebrew mruby prior to 3.2.

CVE-2022-0623 mruby vulnerability CVSS: 6.4 17 Feb 2022, 07:15 UTC

Out-of-bounds Read in Homebrew mruby prior to 3.2.

CVE-2022-0614 mruby vulnerability CVSS: 4.3 16 Feb 2022, 10:15 UTC

Use of Out-of-range Pointer Offset in Homebrew mruby prior to 3.2.

CVE-2022-0570 mruby vulnerability CVSS: 7.5 14 Feb 2022, 12:15 UTC

Heap-based Buffer Overflow in Homebrew mruby prior to 3.2.

CVE-2022-0525 mruby vulnerability CVSS: 6.4 09 Feb 2022, 04:15 UTC

Out-of-bounds Read in Homebrew mruby prior to 3.2.

CVE-2022-0481 mruby vulnerability CVSS: 7.8 04 Feb 2022, 23:15 UTC

NULL Pointer Dereference in Homebrew mruby prior to 3.2.

CVE-2022-0326 mruby vulnerability CVSS: 4.3 21 Jan 2022, 07:15 UTC

NULL Pointer Dereference in Homebrew mruby prior to 3.2.

CVE-2022-0240 mruby vulnerability CVSS: 5.0 17 Jan 2022, 14:15 UTC

mruby is vulnerable to NULL Pointer Dereference

CVE-2021-46020 mruby vulnerability CVSS: 5.0 14 Jan 2022, 20:15 UTC

An untrusted pointer dereference in mrb_vm_exec() of mruby v3.0.0 can lead to a segmentation fault or application crash.

CVE-2022-0080 mruby vulnerability CVSS: 7.5 02 Jan 2022, 12:15 UTC

mruby is vulnerable to Heap-based Buffer Overflow

CVE-2021-4188 mruby vulnerability CVSS: 5.0 30 Dec 2021, 07:15 UTC

mruby is vulnerable to NULL Pointer Dereference

CVE-2021-4110 mruby vulnerability CVSS: 5.0 15 Dec 2021, 05:15 UTC

mruby is vulnerable to NULL Pointer Dereference

CVE-2020-36401 mruby vulnerability CVSS: 6.8 01 Jul 2021, 03:15 UTC

mruby 2.1.2 has a double free in mrb_default_allocf (called from mrb_free and obj_free).

CVE-2020-15866 mruby vulnerability CVSS: 7.5 21 Jul 2020, 15:15 UTC

mruby through 2.1.2-rc has a heap-based buffer overflow in the mrb_yield_with_class function in vm.c because of incorrect VM stack handling. It can be triggered via the stack_copy function.

CVE-2020-6840 mruby vulnerability CVSS: 7.5 11 Jan 2020, 03:15 UTC

In mruby 2.1.0, there is a use-after-free in hash_slice in mrbgems/mruby-hash-ext/src/hash-ext.c.

CVE-2020-6839 mruby vulnerability CVSS: 7.5 11 Jan 2020, 03:15 UTC

In mruby 2.1.0, there is a stack-based buffer overflow in mrb_str_len_to_dbl in string.c.

CVE-2020-6838 mruby vulnerability CVSS: 7.5 11 Jan 2020, 03:15 UTC

In mruby 2.1.0, there is a use-after-free in hash_values_at in mrbgems/mruby-hash-ext/src/hash-ext.c.

CVE-2018-14337 mruby vulnerability CVSS: 5.0 17 Jul 2018, 03:29 UTC

The CHECK macro in mrbgems/mruby-sprintf/src/sprintf.c in mruby 1.4.1 contains a signed integer overflow, possibly leading to out-of-bounds memory access because the mrb_str_resize function in string.c does not check for a negative length.

CVE-2018-12249 mruby vulnerability CVSS: 5.0 12 Jun 2018, 14:29 UTC

An issue was discovered in mruby 1.4.1. There is a NULL pointer dereference in mrb_class_real because "class BasicObject" is not properly supported in class.c.

CVE-2018-12248 mruby vulnerability CVSS: 5.0 12 Jun 2018, 14:29 UTC

An issue was discovered in mruby 1.4.1. There is a heap-based buffer over-read associated with OP_ENTER because mrbgems/mruby-fiber/src/fiber.c does not extend the stack in cases of many arguments to fiber.

CVE-2018-12247 mruby vulnerability CVSS: 5.0 12 Jun 2018, 14:29 UTC

An issue was discovered in mruby 1.4.1. There is a NULL pointer dereference in mrb_class, related to certain .clone usage, because mrb_obj_clone in kernel.c copies flags other than the MRB_FLAG_IS_FROZEN flag (e.g., the embedded flag).

CVE-2018-11743 mruby vulnerability CVSS: 7.5 05 Jun 2018, 13:29 UTC

The init_copy function in kernel.c in mruby 1.4.1 makes initialize_copy calls for TT_ICLASS objects, which allows attackers to cause a denial of service (mrb_hash_keys uninitialized pointer and application crash) or possibly have unspecified other impact.

CVE-2018-10199 mruby vulnerability CVSS: 7.5 18 Apr 2018, 15:29 UTC

In versions of mruby up to and including 1.4.0, a use-after-free vulnerability exists in src/io.c::File#initilialize_copy(). An attacker that can cause Ruby code to be run can possibly use this to execute arbitrary code.

CVE-2018-10191 mruby vulnerability CVSS: 7.5 17 Apr 2018, 21:29 UTC

In versions of mruby up to and including 1.4.0, an integer overflow exists in src/vm.c::mrb_vm_exec() when handling OP_GETUPVAR in the presence of deep scope nesting, resulting in a use-after-free. An attacker that can cause Ruby code to be run can use this to possibly execute arbitrary code.

CVE-2017-9527 mruby vulnerability CVSS: 6.8 11 Jun 2017, 17:29 UTC

The mark_context_stack function in gc.c in mruby through 1.2.0 allows attackers to cause a denial of service (heap-based use-after-free and application crash) or possibly have unspecified other impact via a crafted .rb file.