Description
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.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | mruby | 1.4.0+20180418+git54905e98-1 | — |
| Debian 13 | mruby | 1.4.0+20180418+git54905e98-1 | — |
| Debian 12 | mruby | 1.4.0+20180418+git54905e98-1 | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | mruby | No fix yet | — |
| Ubuntu 26.04 LTS | mruby | No fix yet | — |
| Ubuntu 25.10 | mruby | No fix yet | — |
| Ubuntu 24.04 LTS | mruby | No fix yet | — |
| Ubuntu 22.04 LTS | mruby | No fix yet | — |
Show 3 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 20.04 LTS | mruby | No fix yet | — |
| Ubuntu 18.04 LTS | mruby | No fix yet | — |
| Ubuntu 16.04 LTS | mruby | No fix yet | — |