Use After Free Affecting nginx/njs package, versions [,0.7.3)


Severity

Recommended
0.0
high
0
10

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

Threat Intelligence

Exploit Maturity
Proof of concept
EPSS
0.39% (74th 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 Learn

Learn about Use After Free vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-UNMANAGED-NGINXNJS-2764990
  • published15 Apr 2022
  • disclosed15 Apr 2022
  • creditp1umer

Introduced: 15 Apr 2022

CVE-2022-27007  (opens in a new tab)
CWE-416  (opens in a new tab)

How to fix?

Upgrade nginx/njs to version 0.7.3 or higher.

Overview

Affected versions of this package are vulnerable to Use After Free via the function njs_function_frame_alloc(), when it try to invoke from a restored frame saved with njs_function_frame_save().

PoC:

async function a0(v) {
    await 1;
    a0();
}
a0();

CVSS Scores

version 3.1