CVE-2022-1212 Use-After-Free in str_escape in mruby/mruby in mruby/mruby
A use-after-free vulnerability in the str_escape function of the mruby library allows attackers to potentially execute arbitrary code.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2022-1212?
CVE-2022-1212 is a critical use after free vulnerability in mruby/mruby, published on 5 Apr 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.
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.
Weakness: CWE-416
Which versions are affected by CVE-2022-1212?
It affects 1 product.
Products include Mruby Mruby.
How do I fix CVE-2022-1212?
Upgrade to a fixed version.
Upgrade to the fixed version. These bugs are found with fuzzing and sanitisers and avoided by memory-safe languages. More about Use after free.
Is CVE-2022-1212 being exploited?
There is no known exploitation of CVE-2022-1212 in the wild and no public exploit code.
Other vulnerabilities in mruby/mruby
Sources
Also known as DEBIAN-CVE-2022-1212, GHSA-xh66-6mj6-94rg, UBUNTU-CVE-2022-1212.