A crash occurs in mrb_check_frozen when remove_instance_variable is called on an integer, dereferencing an attacker-controlled address. This could cause denial of service and possibly an arbitrary memory read.
A warning-formatting function in the mruby compiler concatenated a message and a string into a fixed 256-byte stack buffer without checking length. A crafted input could overflow the buffer and crash the process, with the authors suggesting possible control of execution flow via stack smashing.
A memory-safety bug in mruby's string replacement routine causes an out-of-bounds read when a crafted script triggers the affected code path. The reporter states this could potentially lead to information disclosure.
A crafted mruby script causes the interpreter to dereference a null array pointer inside mrb_ary_push, leading to a crash. An attacker who can supply Ruby code to mruby could crash the process, giving a denial of service.
A crafted Ruby script using a return inside an each block combined with an ensure clause causes mruby to dereference a null pointer in the array concatenation code. An attacker who can supply Ruby code to mruby could crash the interpreter.
A crafted Ruby snippet using a lambda with a break statement causes mruby's virtual machine to read memory outside an allocated stack buffer. An attacker could crash the interpreter (mirb) with this input, but the report claims no more than a denial of service.
A crafted Ruby script causes mruby to write to a heap buffer that has already been freed, triggering a heap-use-after-free detected by AddressSanitizer. The interpreter aborts, so an attacker who can supply script input could crash the process.
A crafted mruby script using the heredoc notation causes the interpreter to crash with a segmentation fault in the VM execution loop. An attacker who can supply a script to mruby could crash the process, giving a denial of service.
The mruby bytecode compiler reads freed memory while resolving jump instructions during code generation, because a reallocation invalidates a pointer it still uses. A crafted Ruby script can therefore crash the interpreter with a segmentation fault.
In mruby, the pop, shift and clear methods on an Array did not check whether the array was frozen, so a frozen array could still be modified. An attacker able to run Ruby code could remove or clear elements of an array that was meant to be immutable.
A use-after-free occurs in mruby-mpdecimal when a script calls to_d on the result of inspect, causing the decimal object to be freed and then read during garbage collection at shutdown, crashing the interpreter under ASAN.
The mruby fiber implementation copies arguments passed to Fiber.transfer into a fixed-size stack buffer without checking how many were supplied. An attacker who can run Ruby code could pass 64 or more arguments and overflow the heap, potentially crashing or corrupting memory.
A code generation flaw in mruby's compiler for assignment expressions with a method call on the left-hand side causes the compiler to omit pushing a register, leading to use of an incorrect register. This allows an attacker to craft Ruby code that triggers an out-of-bounds memory write via the array concatenation opcode, potentially leading to code execution.
A short Ruby script using nested blocks, yield and ensure causes mruby's garbage collector to dereference a null pointer while marking a context stack, crashing the interpreter. An attacker who can supply Ruby code to mruby could crash the process.
A crafted Ruby script causes a heap corruption in mruby's stack extension, leading to a realloc error and SIGABRT. An attacker could crash the interpreter by supplying a malicious script.
A crafted Ruby script causes mruby's virtual machine to dereference an invalid pointer, leading to a segmentation fault. An attacker who can supply Ruby code to mruby could crash the interpreter.
A crafted Ruby script causes a segmentation fault in mruby's mrb_class function when run in mirb. An attacker could crash the interpreter, leading to denial of service.
A crafted Ruby script causes mruby's compiler to abort with an assertion failure in mrb_debug_info_append_file. An attacker could crash the interpreter by supplying such a script.
A short, malformed Ruby snippet causes the mruby interpreter to crash with a segmentation fault inside the array concatenation routine. An attacker who can submit code to an mruby sandbox could crash the interpreter process.
A short Ruby script that defines a class whose constructor calls itself recursively causes mruby's virtual machine to write to a stack buffer that has already been freed. An attacker who can run Ruby code on the interpreter could trigger a heap use-after-free, which the ASAN trace shows as a write of 12 bytes into freed memory.
A crafted Ruby script causes mruby's virtual machine to jump to a null program counter, resulting in a segmentation fault. An attacker could crash the interpreter by supplying such a script.