Skip to content
OpenAdvisories
Unscored CVE-2022-32212 EUVD-2022-53416GHSA-w95h-2gj2-x2p4

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…

Published Jul 14, 2022 · Updated Apr 30, 2025 · Assigned by hackerone

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 products

VendorProductAffectedFixed
NodeJS Node 4.0 – < 4.*, 5.0 – < 5.*, 6.0 – < 6.*, 7.0 – < 7.*, 8.0 – < 8.*, 9.0 – < 9.*, 10.0 – < 10.*, 11.0 – < 11.*, 12.0 – < 12.*, 13.0 – < 13.*, 14.0 – < 14.20.1, 15.0 – < 15.*, 16.0 – < 16.17.1, 17.0 – < 17.*, 18.0 – < 18.9.1 4.*

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 nodejs 18.6.0+dfsg-3 —
Debian 13 nodejs 18.6.0+dfsg-3 —
Debian 12 nodejs 18.6.0+dfsg-3 —
Debian 11 nodejs 12.22.12~dfsg-1~deb11u3 DSA-5326-1
Debian 10 nodejs 10.24.0~dfsg-1~deb10u2 DLA-3137-1
ReleasePackageFixed inAdvisory
Ubuntu 22.04 LTS nodejs 12.22.9~dfsg-1ubuntu3.2 USN-6491-1
Ubuntu 20.04 LTS nodejs 10.19.0~dfsg-3ubuntu1.3 USN-6491-1
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 18.04 LTS nodejs 8.10.0~dfsg-2ubuntu0.4+esm4 USN-6491-1
ReleasePackageFixed inAdvisory
RHEL 9 nodejs +3 1:16.16.0-1.el9_0 RHSA-2022:6595
RHEL 9 nodejs-nodemon 2.0.19-1.el9_0 RHSA-2022:6595
RHEL 9 npm 1:8.11.0-1.16.16.0.1.el9_0 RHSA-2022:6595
RHEL 8 nodejs +3 1:14.20.0-2.module+el8.6.0+16231+7c1b33d9 RHSA-2022:6449, RHSA-2022:6448
RHEL 8 nodejs-nodemon 2.0.19-2.module+el8.6.0+16231+7c1b33d9 RHSA-2022:6449, RHSA-2022:6448
RHEL 8 nodejs-packaging 23-3.module+el8.3.0+6519+9f98ed83 RHSA-2022:6449, RHSA-2022:6448
RHEL 8 npm 1:6.14.17-1.14.20.0.2.module+el8.6.0+16231+7c1b33d9 RHSA-2022:6449, RHSA-2022:6448
RHEL 3 rh-nodejs14-nodejs +2 14.20.0-2.el7 RHSA-2022:6389
RHEL 3 rh-nodejs14-nodejs-nodemon 2.0.19-1.el7 RHSA-2022:6389
RHEL 3 rh-nodejs14-npm 6.14.17-14.20.0.2.el7 RHSA-2022:6389
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
RHEL 8.4 EUS nodejs +3 1:14.20.0-2.module+el8.4.0+16234+70f4adc8 RHSA-2022:6985
RHEL 8.4 EUS nodejs-nodemon 2.0.19-2.module+el8.4.0+16234+70f4adc8 RHSA-2022:6985
RHEL 8.4 EUS nodejs-packaging 23-3.module+el8.3.0+6519+9f98ed83 RHSA-2022:6985
RHEL 8.4 EUS npm 1:6.14.17-1.14.20.0.2.module+el8.4.0+16234+70f4adc8 RHSA-2022:6985

AlmaLinux

Errata ↗
ReleasePackageFixed inAdvisory
AlmaLinux 9 nodejs +3 1:16.16.0-1.el9_0 ALSA-2022:6595
AlmaLinux 9 nodejs-nodemon 2.0.19-1.el9_0 ALSA-2022:6595
AlmaLinux 9 npm 1:8.11.0-1.16.16.0.1.el9_0 ALSA-2022:6595
AlmaLinux 8 nodejs +3 1:14.20.0-2.module_el8.6.0+3261+490666b3 ALSA-2022:6448
AlmaLinux 8 nodejs-nodemon 2.0.19-2.module_el8.6.0+3261+490666b3 ALSA-2022:6448
AlmaLinux 8 nodejs-packaging 23-3.module_el8.5.0+2618+8d46dafd ALSA-2022:6448
AlmaLinux 8 npm 1:6.14.17-1.14.20.0.2.module_el8.6.0+3261+490666b3 ALSA-2022:6448

Rocky Linux

Errata ↗
ReleasePackageFixed inAdvisory
Rocky Linux 9 nodejs-nodemon 2.0.19-1.el9_0 RLSA-2022:6595
Rocky Linux 8 nodejs 1:14.20.0-2.module+el8.6.0+1004+df064614 RLSA-2022:6449, RLSA-2022:6448
Rocky Linux 8 nodejs-nodemon 2.0.19-2.module+el8.6.0+1003+ae94235a RLSA-2022:6449, RLSA-2022:6448
Rocky Linux 8 nodejs-packaging 23-3.module+el8.3.0+100+234774f7 RLSA-2022:6449, RLSA-2022:6448
ReleasePackageFixed inAdvisory
SLES 15 SP4 nodejs16 16.16.0-150400.3.3.2 SUSE-SU-2022:2491-1
SLES 15 SP4 nodejs18 18.13.0-150400.9.3.1 SUSE-SU-2023:0419-1
SLES 15 SP3 nodejs12 12.22.12-150200.4.35.1 SUSE-SU-2022:2430-1
SLES 15 SP3 nodejs14 14.20.0-150200.15.34.1 SUSE-SU-2022:2425-1
SLES 15 SP3 nodejs16 16.16.0-150300.7.6.2 SUSE-SU-2022:2551-1
SLES 15 SP2 nodejs10 10.24.1-150000.1.47.1 SUSE-SU-2022:2855-1
SLES 15 SP2 nodejs12 12.22.12-150200.4.35.1 SUSE-SU-2022:2430-1
SLES 15 SP2 nodejs14 14.20.0-150200.15.34.1 SUSE-SU-2022:2425-1
SLES 15 SP1 nodejs10 10.24.1-150000.1.47.1 SUSE-SU-2022:2855-1
SLES 15 nodejs10 10.24.1-150000.1.47.1 SUSE-SU-2022:2855-1
Show 12 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES 12 nodejs12 12.22.12-1.51.1 SUSE-SU-2022:2417-1
SLES 12 nodejs14 14.20.0-6.31.1 SUSE-SU-2022:2416-1
SLES 12 nodejs16 16.16.0-8.6.1 SUSE-SU-2022:2415-1
SLES 12 nodejs18 18.13.0-8.3.1 SUSE-SU-2023:0408-1
SLES for SAP 15 SP2 nodejs10 10.24.1-150000.1.47.1 SUSE-SU-2022:2855-1
SLES for SAP 15 SP2 nodejs12 12.22.12-150200.4.35.1 SUSE-SU-2022:2430-1
SLES for SAP 15 SP2 nodejs14 14.20.0-150200.15.34.1 SUSE-SU-2022:2425-1
SLES for SAP 15 SP1 nodejs10 10.24.1-150000.1.47.1 SUSE-SU-2022:2855-1
SLES for SAP 15 nodejs10 10.24.1-150000.1.47.1 SUSE-SU-2022:2855-1
SLE HPC 15 SP2 nodejs10 10.24.1-150000.1.47.1 SUSE-SU-2022:2855-1
SLE HPC 15 SP2 nodejs12 12.22.12-150200.4.35.1 SUSE-SU-2022:2430-1
SLE HPC 15 SP2 nodejs14 14.20.0-150200.15.34.1 SUSE-SU-2022:2425-1
SLE HPC 15 SP1 nodejs10 10.24.1-150000.1.47.1 SUSE-SU-2022:2855-1
SLE HPC 15 nodejs10 10.24.1-150000.1.47.1 SUSE-SU-2022:2855-1
SUSE Manager Server 4.1 nodejs10 10.24.1-150000.1.47.1 SUSE-SU-2022:2855-1
SUSE Manager Server 4.1 nodejs12 12.22.12-150200.4.35.1 SUSE-SU-2022:2430-1
SUSE Manager Server 4.1 nodejs14 14.20.0-150200.15.34.1 SUSE-SU-2022:2425-1
SUSE Manager Retail Branch Server 4.1 nodejs10 10.24.1-150000.1.47.1 SUSE-SU-2022:2855-1
SUSE Manager Retail Branch Server 4.1 nodejs12 12.22.12-150200.4.35.1 SUSE-SU-2022:2430-1
SUSE Manager Retail Branch Server 4.1 nodejs14 14.20.0-150200.15.34.1 SUSE-SU-2022:2425-1
SUSE Manager Proxy 4.1 nodejs10 10.24.1-150000.1.47.1 SUSE-SU-2022:2855-1
SUSE Manager Proxy 4.1 nodejs12 12.22.12-150200.4.35.1 SUSE-SU-2022:2430-1
SUSE Manager Proxy 4.1 nodejs14 14.20.0-150200.15.34.1 SUSE-SU-2022:2425-1
SUSE Enterprise Storage 7 nodejs10 10.24.1-150000.1.47.1 SUSE-SU-2022:2855-1
SUSE Enterprise Storage 7 nodejs12 12.22.12-150200.4.35.1 SUSE-SU-2022:2430-1
SUSE Enterprise Storage 7 nodejs14 14.20.0-150200.15.34.1 SUSE-SU-2022:2425-1
SUSE Enterprise Storage 6 nodejs10 10.24.1-150000.1.47.1 SUSE-SU-2022:2855-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed nodejs16 16.16.0-1.1 openSUSE-SU-2024:12199-1
openSUSE Tumbleweed nodejs18 18.9.0-1.1 openSUSE-SU-2024:12349-1
openSUSE Leap 15.5 nodejs18 18.13.0-150400.9.3.1 SUSE-SU-2023:0419-1
openSUSE Leap 15.4 nodejs10 10.24.1-150000.1.47.1 SUSE-SU-2022:2855-1
openSUSE Leap 15.4 nodejs12 12.22.12-150200.4.35.1 SUSE-SU-2022:2430-1
openSUSE Leap 15.4 nodejs14 14.20.0-150200.15.34.1 SUSE-SU-2022:2425-1
openSUSE Leap 15.4 nodejs16 16.16.0-150400.3.3.2 SUSE-SU-2022:2491-1
openSUSE Leap 15.4 nodejs18 18.13.0-150400.9.3.1 SUSE-SU-2023:0419-1
openSUSE Leap 15.3 nodejs10 10.24.1-150000.1.47.1 SUSE-SU-2022:2855-1
openSUSE Leap 15.3 nodejs12 12.22.12-150200.4.35.1 SUSE-SU-2022:2430-1
openSUSE Leap 15.3 nodejs14 14.20.0-150200.15.34.1 SUSE-SU-2022:2425-1
openSUSE Leap 15.3 nodejs16 16.16.0-150300.7.6.2 SUSE-SU-2022:2551-1
ReleasePackageFixed inAdvisory
Alpine v3.24 nodejs-current 18.6.0-r0 —
Alpine v3.23 nodejs-current 18.6.0-r0 —
Alpine v3.22 nodejs-current 18.6.0-r0 —
Alpine v3.21 nodejs-current 18.6.0-r0 —
Alpine v3.20 nodejs-current 18.6.0-r0 —
Show 4 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Alpine v3.19 nodejs-current 18.6.0-r0 —
Alpine v3.18 nodejs-current 18.6.0-r0 —
Alpine v3.17 nodejs-current 18.6.0-r0 —
Alpine v3.16 nodejs-current 18.6.0-r0 —

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2023 nodejs +4 1:18.12.1-1.amzn2023.0.2 ALAS2023-2023-084
Amazon Linux 2023 npm 1:8.19.2-1.18.12.1.1.amzn2023.0.2 ALAS2023-2023-084
Amazon Linux 2023 v8-devel 2:10.2.154.15-1.18.12.1.1.amzn2023.0.2 ALAS2023-2023-084

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 2 (CBL-Mariner) nodejs 16.20.2-4 —

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 9 graalvm22-ce-11 +41 22.3.0-1.el9 ELSA-2022-9955, ELSA-2022-9954, ELSA-2022-9953
Oracle Linux 9 nodejs +3 1:16.16.0-1.el9_0 ELSA-2022-6595
Oracle Linux 9 nodejs-nodemon 2.0.19-1.el9_0 ELSA-2022-6595
Oracle Linux 9 npm 1:8.11.0-1.16.16.0.1.el9_0 ELSA-2022-6595
Oracle Linux 8 graalvm22-ce-11 +41 22.3.0-1.el8 ELSA-2022-9951, ELSA-2022-9950, ELSA-2022-9949
Oracle Linux 8 nodejs +3 1:14.20.0-2.module+el8.6.0+20729+8fb6d84e ELSA-2022-6449, ELSA-2022-6448
Oracle Linux 8 nodejs-nodemon 2.0.19-2.module+el8.6.0+20729+8fb6d84e ELSA-2022-6449, ELSA-2022-6448
Oracle Linux 8 nodejs-packaging 23-3.module+el8.3.0+7818+6cd30d85 ELSA-2022-6449, ELSA-2022-6448
Oracle Linux 8 npm 1:6.14.17-1.14.20.0.2.module+el8.6.0+20729+8fb6d84e ELSA-2022-6449, ELSA-2022-6448
Oracle Linux 7 graalvm22-ce-11 +41 22.3.0-1.el7 ELSA-2022-9947, ELSA-2022-9946, ELSA-2022-9945

Advisories 50

References