Critical
Security advisory
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2021-46461
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 13:02 UTC · Revision 1
Source evidence
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.
osv:CVE-2021-46461
Complete source record
{
"id": "54c8cb7b5a8a94ce87cde7e9b49b627cd38a23e40efc6daff775c1407574308d",
"url": "https://osv.dev/vulnerability/CVE-2021-46461",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2021-46461",
"summary": "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.",
"evidence": "osv:CVE-2021-46461",
"products": [],
"severity": "critical",
"structured": {
"id": "CVE-2021-46461",
"aliases": [
"CVE-2021-46461"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/nginx/njs",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"last_affected": "376b540b9692c61c1a17b78c65192287b60d8e15"
},
{
"fixed": "d457c9545e7e71ebb5c0479eb16b9d33175855e2"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:nginx:njs:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"last_affected": "0.7.0"
}
],
"source": "CPE_RANGE"
},
{
"range": [
{
"fixed": "d457c9545e7e71ebb5c0479eb16b9d33175855e2"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
}
],
"versions": [
"0.7.0",
"0.6.2",
"0.6.1",
"0.6.0",
"0.5.3",
"0.5.2",
"0.5.1",
"0.5.0",
"0.4.4",
"0.4.3",
"0.4.2",
"0.4.1",
"0.4.0",
"0.3.9",
"0.3.8",
"0.3.7",
"0.3.6",
"0.3.5",
"0.3.4",
"0.3.3",
"0.3.2",
"0.3.1",
"0.3.0",
"0.2.8",
"0.2.7",
"0.2.6",
"0.2.5",
"0.2.4",
"0.2.3",
"0.2.2",
"0.2.1",
"0.2.0",
"0.1.15",
"0.1.14",
"0.1.13",
"0.1.12",
"0.1.11",
"0.1.10",
"0.1.9",
"0.1.8",
"0.1.7",
"0.1.6",
"0.1.5",
"0.1.4",
"0.1.3",
"0.1.2",
"0.1.1",
"0.1.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-46461.json",
"vanir_signatures": [
{
"id": "CVE-2021-46461-501009d4",
"digest": {
"length": 792,
"function_hash": "9392468354405660206887983019685688929"
},
"source": "https://github.com/nginx/njs/commit/d457c9545e7e71ebb5c0479eb16b9d33175855e2",
"target": {
"file": "src/njs_vmcode.c",
"function": "njs_vmcode_typeof"
},
"deprecated": false,
"signature_type": "Function",
"signature_version": "v1"
},
{
"id": "CVE-2021-46461-f49df53d",
"digest": {
"threshold": 0.9,
"line_hashes": [
"98564410132262592793995109969660261770",
"147510133104760375677726348496773441530",
"205029457978295310357353176216532695880"
]
},
"source": "https://github.com/nginx/njs/commit/d457c9545e7e71ebb5c0479eb16b9d33175855e2",
"target": {
"file": "src/test/njs_unit_test.c"
},
"deprecated": false,
"signature_type": "Line",
"signature_version": "v1"
}
],
"vanir_signatures_modified": "2026-10-20T14:31:39Z"
}
}
],
"modified": "2026-10-20T14:31:39.355031244Z",
"provider": "osv",
"references": [
"https://security.netapp.com/advisory/ntap-20220303-0007/",
"https://github.com/nginx/njs/commit/d457c9545e7e71ebb5c0479eb16b9d33175855e2",
"https://github.com/nginx/njs/issues/450"
],
"provider_metadata": {}
},
"related_cves": [
{
"value": "CVE-2021-46461",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 389700,
"published_at": "2022-02-14T22:15:07.717+00:00"
}