Description
The mark_context_stack function in gc.c in mruby through 1.2.0 allows attackers to cause a denial of service (heap-based use-after-free and application crash) or possibly have unspecified other impact via a crafted .rb file.
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.3.0-1 | — |
| Debian 13 | mruby | 1.3.0-1 | — |
| Debian 12 | mruby | 1.3.0-1 | — |
| Debian 9 | mruby | 1.2.0+20161228+git30d5424a-1+deb9u1 | DLA-2996-1 |
Advisories 1
- DLA-2996-1 mruby - security update Debian Security (DSA / DLA) · Mar 9, 2026