CVE-2022-1286: mruby/mruby - Buffer Overflow
- Cve: CVE-2022-1286
- Name: mruby/mruby - Buffer Overflow
- 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.
- Impact: Attackers can execute arbitrary code remotely, potentially leading to full system compromise.
- Remediation: Update to version 3.2 or later to fix the heap-buffer-overflow.
- Vulnerability type: buffer_overflow
- Vulnerability impact: remote_code_execution
- Requirement type: none
- Labels source: projectdiscovery
- Severity: critical
- Cvss score: 9.8
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Epss score: 0.01184
- Epss percentile: 0.68604
- Assignee: [email protected]
- Published at: 2022-04-10T11:15:07Z
- Age in days: 1689
- Modified at: 2026-06-17T04:22:09Z
- Patch available: yes
- Public exploits total: 1
- References total: 2
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2022-1286
- Nvd status: modified
- Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-122 | Heap-based Buffer Overflow |
| CWE-787 | Out-of-bounds Write |
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://huntr.dev/bounties/f918376e-b488-4113-963d-ffe8716e4189 | nvd | 2022-04-10 |
References
| Url | Source | Tags |
|---|---|---|
| https://github.com/mruby/mruby/commit/b1d0296a937fe278239bdfac840a3fd0e93b3ee9 | nvd | Patch, Third Party Advisory |
| https://huntr.dev/bounties/f918376e-b488-4113-963d-ffe8716e4189 | nvd | Exploit, Third Party Advisory |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| mruby:mruby | < 3.2 | no | nvd | /v1/products/mruby/mruby |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| mruby/mruby | commit, fix | yes | /v1/repositories/mruby/mruby |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Public exploit: yes
- Public exploit count: 1
- Public exploit first date: 2022-04-10
- Remote: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports, exposed hosts