CVE-2022-1286 heap-buffer-overflow in mrb_vm_exec in mruby/mruby in mruby/mruby

Medium 5.9 Published Updated

A heap-buffer-overflow in the mruby library allows attackers to potentially execute arbitrary code via crafted input.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2022-1286?

CVE-2022-1286 is a medium-severity memory corruption vulnerability in mruby/mruby, published on 10 Apr 2022. It can only be exploited from the same machine or local network, with no action from the victim.

Official 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.

Weakness: CWE-787, CWE-122

Which versions are affected by CVE-2022-1286?

It affects 1 product.

Products include Mruby Mruby.

How do I fix CVE-2022-1286?

Upgrade to a fixed version.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2022-1286 being exploited?

There is no known exploitation of CVE-2022-1286 in the wild and no public exploit code.

Sources

Also known as DEBIAN-CVE-2022-1286, GHSA-6c7w-5xfj-j2mc, UBUNTU-CVE-2022-1286.

Is CVE-2022-1286 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free