CVE-2021-46461 Memory corruption in n/a
An out-of-bounds array access in the njs JavaScript engine used by NGINX can lead to memory corruption, potentially allowing code execution or denial of service.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2021-46461?
CVE-2021-46461 is a critical memory corruption vulnerability in n/a, published on 14 Feb 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
njs through 0.7.0, used in NGINX, was discovered to contain an out-of-bounds array access via njs_vmcode_typeof in /src/njs_vmcode.c.
Weakness: CWE-119
Which versions are affected by CVE-2021-46461?
It affects 1 product.
Products include Nginx Njs.
How do I fix CVE-2021-46461?
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-2021-46461 being exploited?
There is no known exploitation of CVE-2021-46461 in the wild and no public exploit code.
Other vulnerabilities in n/a
Sources
Also known as ALPINE-CVE-2021-46461, CLEANSTART-2026-PU38791, GHSA-8g5q-f4mq-w57g.