Vulnerability · Published Jan 17, 2022 · Assigned by @huntrdev
CVE-2022-0240NULL Pointer Dereference in mruby/mruby
Medium 6.2
In plain English
A medium-severity null pointer dereference 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.0% (higher than 62% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS 3.0)6.2Medium
Exploit odds (30 days)1.0%top 38.2% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known
Official description
mruby is vulnerable to NULL Pointer Dereference
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.20 | mruby | 3.1.0-r0 | ALPINE-CVE-2022-0240 |
| Alpine:v3.21 | mruby | 3.1.0-r0 | ALPINE-CVE-2022-0240 |
| Alpine:v3.22 | mruby | 3.1.0-r0 | ALPINE-CVE-2022-0240 |
| Alpine:v3.23 | mruby | 3.1.0-r0 | ALPINE-CVE-2022-0240 |
| Alpine:v3.24 | mruby | 3.1.0-r0 | ALPINE-CVE-2022-0240 |
| Debian:12 | mruby | 3.1.0-1 | DEBIAN-CVE-2022-0240 |
| Debian:13 | mruby | 3.1.0-1 | DEBIAN-CVE-2022-0240 |
| Debian:14 | mruby | 3.1.0-1 | DEBIAN-CVE-2022-0240 |
| Ubuntu:22.04:LTS | groonga | no fix listed | UBUNTU-CVE-2022-0240 |
| Ubuntu:24.04:LTS | groonga | no fix listed | UBUNTU-CVE-2022-0240 |
| Ubuntu:25.10 | groonga | no fix listed | UBUNTU-CVE-2022-0240 |
| Ubuntu:26.04:LTS | groonga | no fix listed | UBUNTU-CVE-2022-0240 |
| Ubuntu:26.10 | groonga | no fix listed | UBUNTU-CVE-2022-0240 |
| Ubuntu:24.04:LTS | h2o | no fix listed | UBUNTU-CVE-2022-0240 |
| Ubuntu:22.04:LTS | mruby | no fix listed | UBUNTU-CVE-2022-0240 |
| Ubuntu:24.04:LTS | mruby | no fix listed | UBUNTU-CVE-2022-0240 |
| Ubuntu:25.10 | mruby | no fix listed | UBUNTU-CVE-2022-0240 |
| Ubuntu:26.04:LTS | mruby | no fix listed | UBUNTU-CVE-2022-0240 |
| Ubuntu:26.10 | mruby | no fix listed | UBUNTU-CVE-2022-0240 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| mruby | mruby/mruby | unspecified – before 3.2 |
Weakness: CWE-476 · Vector: CVSS:3.0/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
References
- https://huntr.dev/bounties/5857eced-aad9-417d-864e-0bdf17226cbb x_refsource_CONFIRM
- https://github.com/mruby/mruby/commit/31fa3304049fc406a201a72293cce140f0557dca x_refsource_MISC