Vulnerability Details : CVE-2018-10191
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.
Vulnerability category: OverflowMemory CorruptionExecute code
Products affected by CVE-2018-10191
- cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*
- cpe:2.3:a:mruby:mruby:*:*:*:*:*:*:*:*
Exploit prediction scoring system (EPSS) score for CVE-2018-10191
0.54%
Probability of exploitation activity in the next 30 days
EPSS Score History
~ 77 %
Percentile, the proportion of vulnerabilities that are scored at or less
CVSS scores for CVE-2018-10191
Base Score | Base Severity | CVSS Vector | Exploitability Score | Impact Score | Score Source | First Seen |
---|---|---|---|---|---|---|
7.5
|
HIGH | AV:N/AC:L/Au:N/C:P/I:P/A:P |
10.0
|
6.4
|
NIST | |
9.8
|
CRITICAL | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
3.9
|
5.9
|
NIST |
CWE ids for CVE-2018-10191
-
The product performs a calculation that can produce an integer overflow or wraparound when the logic assumes that the resulting value will always be larger than the original value. This occurs when an integer value is incremented to a value that is too large to store in the associated representation. When this occurs, the value may become a very small or negative number.Assigned by: nvd@nist.gov (Primary)
References for CVE-2018-10191
-
https://github.com/mruby/mruby/commit/1905091634a6a2925c911484434448e568330626
Check length of env stack before accessing upvar; fix #3995 · mruby/mruby@1905091 · GitHubPatch;Third Party Advisory
-
https://lists.debian.org/debian-lts-announce/2022/05/msg00006.html
[SECURITY] [DLA 2996-1] mruby security updateMailing List;Third Party Advisory
-
https://github.com/mruby/mruby/issues/3995
Use after free caused by integer overflow in environment stack · Issue #3995 · mruby/mruby · GitHubExploit;Issue Tracking;Third Party Advisory
Jump to