Skip to content
Heist/ feed
Back to feed
High

Security advisory

Type: advisorySources: OSVCVE: CVE-2021-46462

njs through 0.7.1, used in NGINX, was discovered to contain a segmentation violation via njs_object_set_prototype in /src/njs_object.c.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2021-46462
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 13:02 UTC · Revision 1

Source evidence

CVE-2021-46462

core-osv · Original source

Published 14 Feb 2022, 22:15 UTC

njs through 0.7.1, used in NGINX, was discovered to contain a segmentation violation via njs_object_set_prototype in /src/njs_object.c.

osv:CVE-2021-46462
Complete source record
{
  "id": "d4106e8ad60d04f910e0e5e35938a053ab3281cf8e1a212915c69ecb73353593",
  "url": "https://osv.dev/vulnerability/CVE-2021-46462",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2021-46462",
    "summary": "njs through 0.7.1, used in NGINX, was discovered to contain a segmentation violation via njs_object_set_prototype in /src/njs_object.c.",
    "evidence": "osv:CVE-2021-46462",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2021-46462",
      "aliases": [
        "CVE-2021-46462"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/nginx/njs",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "last_affected": "8a1c64c4947566be3a8a301b943ca53911a2154f"
                },
                {
                  "fixed": "39e8fa1b7db1680654527f8fa0e9ee93b334ecba"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:f5:njs:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "last_affected": "0.7.1"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "range": [
                      {
                        "fixed": "39e8fa1b7db1680654527f8fa0e9ee93b334ecba"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "0.7.1",
            "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-46462.json",
            "vanir_signatures": [
              {
                "id": "CVE-2021-46462-273e05f8",
                "digest": {
                  "length": 1438,
                  "function_hash": "312040609016539691202926808467690531768"
                },
                "source": "https://github.com/nginx/njs/commit/39e8fa1b7db1680654527f8fa0e9ee93b334ecba",
                "target": {
                  "file": "src/njs_function.c",
                  "function": "njs_function_prototype_apply"
                },
                "deprecated": false,
                "signature_type": "Function",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2021-46462-494b5bea",
                "digest": {
                  "threshold": 0.9,
                  "line_hashes": [
                    "223492474139935416290669801156720520107",
                    "33022621703217135648282554491370186074",
                    "122609054750231151573119436605302812200",
                    "256145823450853970917924135269655790693",
                    "241059513722366314782422986089307171618",
                    "220535504149590063855474260285703985258",
                    "172570096197585445698791297416539964597",
                    "335120862358847060519597796110562882290",
                    "115241563308099436367835986048483087996",
                    "136727959238867650412727082425079495272",
                    "138938292667428018988989144582896551850",
                    "130040636754831523546205427538056117694",
                    "13978126427027336823565969361859156562"
                  ]
                },
                "source": "https://github.com/nginx/njs/commit/39e8fa1b7db1680654527f8fa0e9ee93b334ecba",
                "target": {
                  "file": "src/njs_function.c"
                },
                "deprecated": false,
                "signature_type": "Line",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2021-46462-89422d92",
                "digest": {
                  "threshold": 0.9,
                  "line_hashes": [
                    "216333895898261040032592235480415454322",
                    "85528740362207131305497634824944405507",
                    "146408776750073742439800035804948183540"
                  ]
                },
                "source": "https://github.com/nginx/njs/commit/39e8fa1b7db1680654527f8fa0e9ee93b334ecba",
                "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.725247761Z",
      "provider": "osv",
      "references": [
        "https://security.netapp.com/advisory/ntap-20220303-0007/",
        "https://github.com/nginx/njs/commit/39e8fa1b7db1680654527f8fa0e9ee93b334ecba",
        "https://github.com/nginx/njs/issues/449"
      ],
      "provider_metadata": {}
    },
    "related_cves": [
      {
        "value": "CVE-2021-46462",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 389699,
  "published_at": "2022-02-14T22:15:07.757+00:00"
}