Vulnerability · Published Apr 5, 2022 · Assigned by @huntrdev
CVE-2022-1212Use-After-Free in str_escape in mruby/mruby in mruby/mruby
Critical 9.3
In plain English
A critical-severity use-after-free 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.8% (higher than 79% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS 3.0)9.3Critical
Exploit odds (30 days)1.8%top 21.5% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known
Official description
Use-After-Free in str_escape 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-1212 |
| Debian:13 | mruby | 3.0.0-4 | DEBIAN-CVE-2022-1212 |
| Debian:14 | mruby | 3.0.0-4 | DEBIAN-CVE-2022-1212 |
| Ubuntu:22.04:LTS | mruby | no fix listed | UBUNTU-CVE-2022-1212 |
| Ubuntu:24.04:LTS | mruby | no fix listed | UBUNTU-CVE-2022-1212 |
| Ubuntu:25.10 | mruby | no fix listed | UBUNTU-CVE-2022-1212 |
| Ubuntu:26.04:LTS | mruby | no fix listed | UBUNTU-CVE-2022-1212 |
| Ubuntu:26.10 | mruby | no fix listed | UBUNTU-CVE-2022-1212 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| mruby | mruby/mruby | unspecified – before 3.2 |
Weakness: CWE-416 · Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:H
References
- https://huntr.dev/bounties/9fcc06d0-08e4-49c8-afda-2cae40946abe x_refsource_CONFIRM
- https://github.com/mruby/mruby/commit/3cf291f72224715942beaf8553e42ba8891ab3c6 x_refsource_MISC