Vulnerability · Published Apr 10, 2022 · Assigned by @huntrdev
CVE-2022-1286heap-buffer-overflow in mrb_vm_exec in mruby/mruby in mruby/mruby
Medium 5.9
In plain English
A medium-severity heap buffer overflow in mruby/mruby from mruby. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.2% (higher than 68% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS 3.0)5.9Medium
Exploit odds (30 days)1.2%top 32.1% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known
Official description
heap-buffer-overflow in mrb_vm_exec in mruby/mruby in GitHub repository mruby/mruby prior to 3.2. Possible arbitrary code execution if being exploited.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | mruby | 3.0.0-4 | DEBIAN-CVE-2022-1286 |
| Debian:13 | mruby | 3.0.0-4 | DEBIAN-CVE-2022-1286 |
| Debian:14 | mruby | 3.0.0-4 | DEBIAN-CVE-2022-1286 |
| Ubuntu:22.04:LTS | mruby | no fix listed | UBUNTU-CVE-2022-1286 |
| Ubuntu:24.04:LTS | mruby | no fix listed | UBUNTU-CVE-2022-1286 |
| Ubuntu:25.10 | mruby | no fix listed | UBUNTU-CVE-2022-1286 |
| Ubuntu:26.04:LTS | mruby | no fix listed | UBUNTU-CVE-2022-1286 |
| Ubuntu:26.10 | mruby | no fix listed | UBUNTU-CVE-2022-1286 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| mruby | mruby/mruby | unspecified – before 3.2 |
Weakness: CWE-122 · Vector: CVSS:3.0/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
References
- https://huntr.dev/bounties/f918376e-b488-4113-963d-ffe8716e4189 x_refsource_CONFIRM
- https://github.com/mruby/mruby/commit/b1d0296a937fe278239bdfac840a3fd0e93b3ee9 x_refsource_MISC