Vulnerability · Published Jul 14, 2022 · Assigned by hackerone

CVE-2022-32212

High 8.1

In plain English

A high-severity improper access control in Node from NodeJS. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 6.4% (higher than 94% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS NVD)8.1High
Exploit odds (30 days)6.4%top 6.3% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known

Official description

A OS Command Injection vulnerability exists in Node.js versions <14.20.0, <16.20.0, <18.5.0 due to an insufficient IsAllowedHost check that can easily be bypassed because IsIPAddress does not properly check if an IP address is invalid before making DBS requests allowing rebinding attacks.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
AlmaLinux:8nodejs1:14.20.0-2.module_el8.6.0+3261+490666b3ALSA-2022:6448
AlmaLinux:9nodejs1:16.16.0-1.el9_0ALSA-2022:6595
AlmaLinux:8nodejs-devel1:14.20.0-2.module_el8.6.0+3261+490666b3ALSA-2022:6448
AlmaLinux:8nodejs-docs1:14.20.0-2.module_el8.6.0+3261+490666b3ALSA-2022:6448
AlmaLinux:9nodejs-docs1:16.16.0-1.el9_0ALSA-2022:6595
AlmaLinux:8nodejs-full-i18n1:14.20.0-2.module_el8.6.0+3261+490666b3ALSA-2022:6448
AlmaLinux:9nodejs-full-i18n1:16.16.0-1.el9_0ALSA-2022:6595
AlmaLinux:9nodejs-libs1:16.16.0-1.el9_0ALSA-2022:6595
AlmaLinux:8nodejs-nodemon2.0.19-2.module_el8.6.0+3261+490666b3ALSA-2022:6448
AlmaLinux:9nodejs-nodemon2.0.19-1.el9_0ALSA-2022:6595
AlmaLinux:8nodejs-packaging23-3.module_el8.5.0+2618+8d46dafdALSA-2022:6448
AlmaLinux:8npm1:6.14.17-1.14.20.0.2.module_el8.6.0+3261+490666b3ALSA-2022:6448
AlmaLinux:9npm1:8.11.0-1.16.16.0.1.el9_0ALSA-2022:6595
Alpine:v3.20nodejs-current18.6.0-r0ALPINE-CVE-2022-32212
Alpine:v3.21nodejs-current18.6.0-r0ALPINE-CVE-2022-32212
Alpine:v3.22nodejs-current18.6.0-r0ALPINE-CVE-2022-32212
Alpine:v3.23nodejs-current18.6.0-r0ALPINE-CVE-2022-32212
Alpine:v3.24nodejs-current18.6.0-r0ALPINE-CVE-2022-32212
Debian:12nodejs18.6.0+dfsg-3DEBIAN-CVE-2022-32212
Debian:13nodejs18.6.0+dfsg-3DEBIAN-CVE-2022-32212
Debian:14nodejs18.6.0+dfsg-3DEBIAN-CVE-2022-32212
Rocky Linux:8nodejs1:16.16.0-3.module+el8.6.0+1003+ae94235aRLSA-2022:6449
Rocky Linux:8nodejs1:14.20.0-2.module+el8.6.0+1004+df064614RLSA-2022:6448
Rocky Linux:8nodejs-nodemon0:2.0.19-2.module+el8.6.0+1046+80feca58RLSA-2022:6449
Rocky Linux:8nodejs-nodemon0:2.0.19-2.module+el8.6.0+1003+ae94235aRLSA-2022:6449
Rocky Linux:8nodejs-nodemon0:2.0.19-2.module+el8.6.0+1003+ae94235aRLSA-2022:6448
Rocky Linux:8nodejs-nodemon0:2.0.19-2.module+el8.6.0+1046+80feca58RLSA-2022:6448
Rocky Linux:9nodejs-nodemon0:2.0.19-1.el9_0RLSA-2022:6595
Rocky Linux:8nodejs-packaging0:23-3.module+el8.3.0+100+234774f7RLSA-2022:6448
Rocky Linux:8nodejs-packaging0:23-3.module+el8.7.0+1071+4bdda2a8RLSA-2022:6448
Rocky Linux:8nodejs-packaging0:23-3.module+el8.5.0+733+de4fee6cRLSA-2022:6448
Rocky Linux:8nodejs-packaging0:25-1.module+el8.6.0+1046+80feca58RLSA-2022:6449
Rocky Linux:8nodejs-packaging0:25-1.module+el8.5.0+702+221f14e6RLSA-2022:6449
Ubuntu:22.04:LTSnodejs12.22.9~dfsg-1ubuntu3.2USN-6491-1
Ubuntu:22.04:LTSnodejs12.22.9~dfsg-1ubuntu3.2UBUNTU-CVE-2022-32212

Affected products (as reported)

VendorProductVersions
NodeJS Node 4.0 – before 4.*5.0 – before 5.*6.0 – before 6.*7.0 – before 7.*8.0 – before 8.*9.0 – before 9.*10.0 – before 10.*11.0 – before 11.*

Weakness: CWE-284

References