CVE-2021-46461

Source
https://nvd.nist.gov/vuln/detail/CVE-2021-46461
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2021-46461.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2021-46461
Downstream
Published
2022-02-14T22:15:07Z
Modified
2025-10-15T13:30:29.966382Z
Severity
  • 9.8 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
[none]
Details

njs through 0.7.0, used in NGINX, was discovered to contain an out-of-bounds array access via njsvmcodetypeof in /src/njs_vmcode.c.

References

Affected packages

Git / github.com/nginx/njs

Affected ranges

Type
GIT
Repo
https://github.com/nginx/njs
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed

Affected versions

0.*

0.1.0
0.1.1
0.1.10
0.1.11
0.1.12
0.1.13
0.1.14
0.1.15
0.1.2
0.1.3
0.1.4
0.1.5
0.1.6
0.1.7
0.1.8
0.1.9
0.2.0
0.2.1
0.2.2
0.2.3
0.2.4
0.2.5
0.2.6
0.2.7
0.2.8
0.3.0
0.3.1
0.3.2
0.3.3
0.3.4
0.3.5
0.3.6
0.3.7
0.3.8
0.3.9
0.4.0
0.4.1
0.4.2
0.4.3
0.4.4
0.5.0
0.5.1
0.5.2
0.5.3
0.6.0
0.6.1
0.6.2
0.7.0

Database specific

vanir_signatures

[
    {
        "source": "https://github.com/nginx/njs/commit/d457c9545e7e71ebb5c0479eb16b9d33175855e2",
        "signature_type": "Function",
        "id": "CVE-2021-46461-501009d4",
        "signature_version": "v1",
        "deprecated": false,
        "target": {
            "function": "njs_vmcode_typeof",
            "file": "src/njs_vmcode.c"
        },
        "digest": {
            "function_hash": "9392468354405660206887983019685688929",
            "length": 792.0
        }
    },
    {
        "source": "https://github.com/nginx/njs/commit/d457c9545e7e71ebb5c0479eb16b9d33175855e2",
        "signature_type": "Line",
        "id": "CVE-2021-46461-f49df53d",
        "signature_version": "v1",
        "deprecated": false,
        "target": {
            "file": "src/test/njs_unit_test.c"
        },
        "digest": {
            "line_hashes": [
                "98564410132262592793995109969660261770",
                "147510133104760375677726348496773441530",
                "205029457978295310357353176216532695880"
            ],
            "threshold": 0.9
        }
    }
]