Skip to content
Heist/ feed
Back to feed
Critical

Security advisory

Type: advisorySources: OSVCVE: CVE-2021-46463

njs through 0.7.1, used in NGINX, was discovered to contain a control flow hijack caused by a Type Confusion vulnerability in njs_promise_perform_then().

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

Source evidence

CVE-2021-46463

core-osv · Original source

Published 14 Feb 2022, 22:15 UTC

njs through 0.7.1, used in NGINX, was discovered to contain a control flow hijack caused by a Type Confusion vulnerability in njs_promise_perform_then().

osv:CVE-2021-46463
Complete source record
{
  "id": "fb4ffd7b4ff6dc94cb5c93ba076db5434ea23a760a67734804ef64b018eefc5b",
  "url": "https://osv.dev/vulnerability/CVE-2021-46463",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2021-46463",
    "summary": "njs through 0.7.1, used in NGINX, was discovered to contain a control flow hijack caused by a Type Confusion vulnerability in njs_promise_perform_then().",
    "evidence": "osv:CVE-2021-46463",
    "products": [],
    "severity": "critical",
    "structured": {
      "id": "CVE-2021-46463",
      "aliases": [
        "CVE-2021-46463"
      ],
      "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": "8a1c64c4947566be3a8a301b943ca53911a2154f"
                },
                {
                  "fixed": "6a40a85ff239497c6458c7dbef18f6a2736fe992"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:f5:njs:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "last_affected": "0.7.1"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "range": [
                      {
                        "fixed": "6a40a85ff239497c6458c7dbef18f6a2736fe992"
                      }
                    ],
                    "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-46463.json",
            "vanir_signatures": [
              {
                "id": "CVE-2021-46463-05680313",
                "digest": {
                  "length": 1938,
                  "function_hash": "21246998728196361327344536470616306135"
                },
                "source": "https://github.com/nginx/njs/commit/6a40a85ff239497c6458c7dbef18f6a2736fe992",
                "target": {
                  "file": "src/njs_vmcode.c",
                  "function": "njs_vmcode_await"
                },
                "deprecated": false,
                "signature_type": "Function",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2021-46463-9da832f8",
                "digest": {
                  "length": 909,
                  "function_hash": "208272686093314657909013776463892444071"
                },
                "source": "https://github.com/nginx/njs/commit/6a40a85ff239497c6458c7dbef18f6a2736fe992",
                "target": {
                  "file": "src/njs_promise.c",
                  "function": "njs_promise_prototype_then"
                },
                "deprecated": false,
                "signature_type": "Function",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2021-46463-ce75c71c",
                "digest": {
                  "length": 1639,
                  "function_hash": "196078636397453533623470776534111444351"
                },
                "source": "https://github.com/nginx/njs/commit/6a40a85ff239497c6458c7dbef18f6a2736fe992",
                "target": {
                  "file": "src/njs_promise.c",
                  "function": "njs_promise_perform_then"
                },
                "deprecated": false,
                "signature_type": "Function",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2021-46463-e02c3fea",
                "digest": {
                  "threshold": 0.9,
                  "line_hashes": [
                    "155417522826301046500881426670855124524",
                    "249312154007663672555820420838083510384",
                    "20563829899076045043907323613226887818",
                    "85105438021514541971620596122469271628",
                    "173597929925441239629050411842993982808",
                    "53753669303706171275580786200512089287",
                    "44500577361851199594739921909434060131",
                    "221653356911939617307435172227572506204",
                    "270074205679557101107801397094651092412",
                    "136288601495108740147380069283129817702",
                    "140663067054207964369840543430557429667",
                    "130305360822471665411792678033678053826",
                    "173464364641218630713931704549874550609",
                    "306047671956993844460676439670464768336",
                    "234314352965296168903347549700017802377",
                    "153582797412078577901508896827077458483",
                    "321415484544608706314320264593048404789",
                    "20662433042072775169483857996290501945",
                    "114405618647977471230844548586680676936",
                    "77160860655255747039881998989842551872",
                    "56338637471529501472647267032093479767",
                    "329528173595849169562766280473669413670",
                    "152293518093237074708619529757211614400",
                    "167288088722705039456936956672444012006",
                    "233305748940883635932267350315134539644",
                    "87484414237065616297386360029613262452",
                    "116550684094124015042519051007996642572",
                    "199256592011457622619588245969930517980",
                    "330371041333058799819609820103029008765",
                    "254606608900620546340903016460092532673",
                    "73641929353334428288719439133950995131",
                    "89605162350293260522290076680462187201",
                    "262945437954933783801855450529540842194",
                    "67447878501784741117079035904721887179"
                  ]
                },
                "source": "https://github.com/nginx/njs/commit/6a40a85ff239497c6458c7dbef18f6a2736fe992",
                "target": {
                  "file": "src/njs_promise.c"
                },
                "deprecated": false,
                "signature_type": "Line",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2021-46463-ee6859ce",
                "digest": {
                  "length": 755,
                  "function_hash": "200971510012489027532995298137152098054"
                },
                "source": "https://github.com/nginx/njs/commit/6a40a85ff239497c6458c7dbef18f6a2736fe992",
                "target": {
                  "file": "src/njs_promise.c",
                  "function": "njs_promise_resolve"
                },
                "deprecated": false,
                "signature_type": "Function",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2021-46463-f91d6590",
                "digest": {
                  "threshold": 0.9,
                  "line_hashes": [
                    "206082296653492671639062049205906256740",
                    "21386766158086280400735179989360493302",
                    "21096447563613545260961317477975536374",
                    "14460679192694295907326851527701296974"
                  ]
                },
                "source": "https://github.com/nginx/njs/commit/6a40a85ff239497c6458c7dbef18f6a2736fe992",
                "target": {
                  "file": "src/njs_vmcode.c"
                },
                "deprecated": false,
                "signature_type": "Line",
                "signature_version": "v1"
              }
            ],
            "vanir_signatures_modified": "2026-10-20T14:31:40Z"
          }
        }
      ],
      "modified": "2026-10-20T14:31:40.082766710Z",
      "provider": "osv",
      "references": [
        "https://security.netapp.com/advisory/ntap-20220303-0007/",
        "https://github.com/nginx/njs/commit/6a40a85ff239497c6458c7dbef18f6a2736fe992",
        "https://github.com/nginx/njs/issues/447"
      ],
      "provider_metadata": {}
    },
    "related_cves": [
      {
        "value": "CVE-2021-46463",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 389701,
  "published_at": "2022-02-14T22:15:07.793+00:00"
}