CVE-2021-33438 Memory corruption in n/a

Medium 5.5 Published Updated

A stack buffer overflow in the mJS JavaScript engine allows attackers to execute arbitrary code or cause denial of service via crafted JSON input.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
A user has to click or open something
Fix
None listed

What is CVE-2021-33438?

CVE-2021-33438 is a medium-severity memory corruption vulnerability in Cesanta Mjs, published on 26 Jul 2022. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

Official description

An issue was discovered in mjs (mJS: Restricted JavaScript engine), ES6 (JavaScript version 6). There is stack buffer overflow in json_parse_array() in mjs.c.

Weakness: CWE-787

Which versions are affected by CVE-2021-33438?

It affects 1 product.

Products include Cesanta Mjs.

How do I fix CVE-2021-33438?

No fix has been published for CVE-2021-33438 yet. Limit exposure of the affected software until one is available.

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

Is CVE-2021-33438 being exploited?

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

All Cesanta Mjs vulnerabilities

Sources

Also known as GHSA-j6m5-w993-29q5.

Is CVE-2021-33438 in your software?

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

Check your SBOMs for free