Every CVE Search/ Get API key

CVE-2020-15866

mruby through 2.1.2-rc has a heap-based buffer overflow in the mrb_yield_with_class function in...

9.8 CriticalFix available

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.

Attack profile

How easy it is to exploit

Attack vector
Network
Complexity
Low
Privileges needed
None
User interaction
None

What an attacker can affect

Confidentiality
High
Integrity
High
Availability
High

Exploit likelihood

2.13%Up 1.7 points since Apr 14, 2021
90%50%10%1%

What each source reports

NVD Score used 9.8

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.

Record
CVE-2020-15866
CVSS 3.1
9.8 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS 2.0
7.5 HighAV:N/AC:L/Au:N/C:P/I:P/A:P
Weakness
CWE-787
Updated
2026-11-02
CVE List No score

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.

Record
CVE-2020-15866
Updated
2026-11-02
EUVDEUVD-2020-7847 No score

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.

Record
EUVD-2020-7847
Updated
2026-11-03
GitHub AdvisoriesGHSA-4f9x-p86g-x88m 9.8

mruby through 2.1.2-rc has a heap-based buffer overflow in the mrb_yield_with_class function in...

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.

Record
GHSA-4f9x-p86g-x88m
CVSS 3.1
9.8 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness
CWE-787
Updated
2026-11-02
OSVALPINE-CVE-2020-15866 9.8

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.

Record
ALPINE-CVE-2020-15866
CVSS 3.1
9.8 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Updated
2026-11-03
OSV 9.8

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.

Record
CVE-2020-15866
CVSS 3.1
9.8 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Updated
2026-11-02
OSVDEBIAN-CVE-2020-15866 9.8

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.

Record
DEBIAN-CVE-2020-15866
CVSS 3.1
9.8 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Updated
2026-11-02
OSVUBUNTU-CVE-2020-15866 9.8

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.

Record
UBUNTU-CVE-2020-15866
CVSS 3.1
9.8 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
mruby
Alpine:v3.13
before 2.1.2-r0
2.1.2-r0
mruby
Alpine:v3.14
before 2.1.2-r0
2.1.2-r0
mruby
Alpine:v3.15
before 2.1.2-r0
2.1.2-r0
mruby
Alpine:v3.16
before 2.1.2-r0
2.1.2-r0
mruby
Alpine:v3.17
before 2.1.2-r0
2.1.2-r0
mruby
Alpine:v3.18
before 2.1.2-r0
2.1.2-r0
mruby
Alpine:v3.19
before 2.1.2-r0
2.1.2-r0
mruby
Alpine:v3.20
before 2.1.2-r0
2.1.2-r0
mruby
Alpine:v3.21
before 2.1.2-r0
2.1.2-r0
mruby
Alpine:v3.22
before 2.1.2-r0
2.1.2-r0
Show 14 moreShow less
Affected packages
PackageAffectedFixed
mruby
Alpine:v3.23
before 2.1.2-r0
2.1.2-r0
mruby
Alpine:v3.24
before 2.1.2-r0
2.1.2-r0
mruby
Debian:12
before 2.1.2-1
2.1.2-1
mruby
Debian:13
before 2.1.2-1
2.1.2-1
mruby
Debian:14
before 2.1.2-1
2.1.2-1
mruby
Debian:9
From an advisory covering 6 CVEs
before 1.2.0+20161228+git30d5424a-1+deb9u1, plus listed versions
1.2.0+20161228+git30d5424a-1
1.2.0+20161228+git30d5424a-1+deb9u1
mruby
Ubuntu:16.04:LTS
All versions, plus listed versions
1.1.0+20150817+gita1731254-11.1.0+20150906+git1cbbb7e1-11.2.0+20160315+git4f20d58a-1
None known
mruby
Ubuntu:18.04:LTS
All versions, plus listed versions
1.3.0-11.3.0+20170925+git38185028-11.3.0+20171029+git77edafb0-11.4.0-1
None known
mruby
Ubuntu:20.04:LTS
All versions, plus listed versions
2.0.0-1
None known
mruby
Ubuntu:22.04:LTS
All versions, plus listed versions
2.1.2-33.0.0-13.0.0-3
None known
mruby
Ubuntu:24.04:LTS
All versions, plus listed versions
3.2.0-13.2.0-2
None known
mruby
Ubuntu:25.10
All versions, plus listed versions
3.3.0-1
None known
mruby
Ubuntu:26.10
All versions, plus listed versions
3.4.0-23.4.0-34.0.0-1
None known
mruby
Ubuntu:26.04:LTS
All versions, plus listed versions
3.3.0-13.4.0-2
None known

History

History
RecordedChangedSources
affected, facts
affected, aliases, referencesOSV
aliasesEUVD
first indexedCVE List, GitHub Advisories, NVD, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2020-15866 is a critical vulnerability (CVSS 9.8) in Mruby, published July 21, 2020. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 2.13%, the 82nd percentile. Fixed in mruby 2.1.2-r0.

References

MoveEnter Open