SIGABRT in sym_validate_len - symbol.c:44
A crafted input file causes mruby to abort with SIGABRT when a symbol length of 65535 is validated. An attacker could crash the interpreter by supplying such a file.
- Triaged in 6 days
- Fixed in 7 days
- Paid in 27 days
- Disclosed after 27 days
File [2] as input causes a sigabrt in mruby.
mruby raise an exception in sym_validate_len (symbol.c:44)
#0 0x00000000005d3908 in raise ()
#1 0x00000000005d3b3a in abort ()
#2 0x0000000000415b52 in mrb_exc_raise (mrb=<optimized out>, exc=...) at /tmp/mruby/src/error.c:310
#3 0x0000000000415c81 in mrb_raise (mrb=0x94fc10, c=<optimized out>, msg=<optimized out>) at /tmp/mruby/src/error.c:318
#4 0x000000000041afdd in sym_validate_len (mrb=0x94fc10, len=65535) at /tmp/mruby/src/symbol.c:44
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the symbol length validation raises an exception that is not caught, leading to an abort.
What the attacker needed
Crafted input file
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
mruby is a small version of the Ruby programming language. When it reads a file containing a symbol (a kind of name) that is too long, it calls a function that stops the whole program instead of handling the error gracefully. This means a bad file can crash the interpreter.
What is DoS?
A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.