Vulnerability · Published Feb 18, 2022 · Assigned by @huntrdev
CVE-2022-0631Heap-based Buffer Overflow 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 0.9% (higher than 61% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS 3.0)5.9Medium
Exploit odds (30 days)0.9%top 39.5% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known
Official description
Heap-based Buffer Overflow in Homebrew mruby prior to 3.2.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.20 | mruby | 3.1.0-r0 | ALPINE-CVE-2022-0631 |
| Alpine:v3.21 | mruby | 3.1.0-r0 | ALPINE-CVE-2022-0631 |
| Alpine:v3.22 | mruby | 3.1.0-r0 | ALPINE-CVE-2022-0631 |
| Alpine:v3.23 | mruby | 3.1.0-r0 | ALPINE-CVE-2022-0631 |
| Alpine:v3.24 | mruby | 3.1.0-r0 | ALPINE-CVE-2022-0631 |
| Ubuntu:22.04:LTS | mruby | no fix listed | UBUNTU-CVE-2022-0631 |
| Ubuntu:24.04:LTS | mruby | no fix listed | UBUNTU-CVE-2022-0631 |
| Ubuntu:25.10 | mruby | no fix listed | UBUNTU-CVE-2022-0631 |
| Ubuntu:26.04:LTS | mruby | no fix listed | UBUNTU-CVE-2022-0631 |
| Ubuntu:26.10 | mruby | no fix listed | UBUNTU-CVE-2022-0631 |
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/9bdc49ca-6697-4adc-a785-081e1961bf40 x_refsource_CONFIRM
- https://github.com/mruby/mruby/commit/47068ae07a5fa3aa9a1879cdfe98a9ce0f339299 x_refsource_MISC