CVE-2021-46461
njs through 0.7.0, used in NGINX, was discovered to contain an out-of-bounds array access via...
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.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- None
What an attacker can affect
- Confidentiality
- High
- Integrity
- High
- Availability
- High
Exploit likelihood
What each source reports
NVD Score used
9.8
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.
- Record
CVE-2021-46461- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - CVSS 2.0
- 7.5 High
AV:N/AC:L/Au:N/C:P/I:P/A:P - Weakness
- CWE-119
- Updated
- 2026-11-02
CVE List No score
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.
- Record
CVE-2021-46461- Updated
- 2026-11-02
EUVDEUVD-2021-33137 No score
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.
- Record
EUVD-2021-33137- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-8g5q-f4mq-w57g
9.8
njs through 0.7.0, used in NGINX, was discovered to contain an out-of-bounds array access via...
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.
- Record
GHSA-8g5q-f4mq-w57g- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Weakness
- CWE-119
- Updated
- 2026-11-02
OSVALPINE-CVE-2021-46461
9.8
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.
- Record
ALPINE-CVE-2021-46461- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-03
OSVBELL-CVE-2021-46461
9.8
CVE-2021-46461 does not affect BellSoft software
- Record
BELL-CVE-2021-46461- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSV
9.8
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.
- Record
CVE-2021-46461- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
nginxAlpine:v3.16 |
before 1.20.2-r2 | 1.20.2-r2 |
nginxAlpine:v3.17 |
before 1.20.2-r2 | 1.20.2-r2 |
nginxAlpine:v3.18 |
before 1.20.2-r2 | 1.20.2-r2 |
nginxAlpine:v3.19 |
before 1.20.2-r2 | 1.20.2-r2 |
nginxAlpine:v3.20 |
before 1.20.2-r2 | 1.20.2-r2 |
nginxAlpine:v3.21 |
before 1.20.2-r2 | 1.20.2-r2 |
nginxAlpine:v3.22 |
before 1.20.2-r2 | 1.20.2-r2 |
nginxAlpine:v3.23 |
before 1.20.2-r2 | 1.20.2-r2 |
nginxAlpine:v3.24 |
before 1.20.2-r2 | 1.20.2-r2 |
njsAlpine:v3.15 |
before 0.7.1-r0 | 0.7.1-r0 |
Show 9 moreShow less
| Package | Affected | Fixed |
|---|---|---|
njsAlpine:v3.16 |
before 0.7.1-r0 | 0.7.1-r0 |
njsAlpine:v3.17 |
before 0.7.1-r0 | 0.7.1-r0 |
njsAlpine:v3.18 |
before 0.7.1-r0 | 0.7.1-r0 |
njsAlpine:v3.19 |
before 0.7.1-r0 | 0.7.1-r0 |
njsAlpine:v3.20 |
before 0.7.1-r0 | 0.7.1-r0 |
njsAlpine:v3.21 |
before 0.7.1-r0 | 0.7.1-r0 |
njsAlpine:v3.22 |
before 0.7.1-r0 | 0.7.1-r0 |
njsAlpine:v3.23 |
before 0.7.1-r0 | 0.7.1-r0 |
njsAlpine:v3.24 |
before 0.7.1-r0 | 0.7.1-r0 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected | OSV | |
| aliases | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2021-46461 is a critical vulnerability (CVSS 9.8) in Nginx Njs, published February 14, 2022. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 3.15%, the 88th percentile. Fixed in nginx 1.20.2-r2.
References
github.com/nginx/njs/issues/450
github.com/nginx/njs/commit/d457c9545e7e71ebb5c0479eb16b9d33175855e2
security.netapp.com/advisory/ntap-20220303-0007
nvd.nist.gov/vuln/detail/CVE-2021-46461
github.com/advisories/GHSA-8g5q-f4mq-w57g
security.alpinelinux.org/vuln/CVE-2021-46461
docs.bell-sw.com/security/cves/CVE-2021-46461