CVEfocus › CVE database › CVE-2022-32212

CVE-2022-32212

EPSS 1.7% (higher than 78% of CVEs)Published 2022-07-14Updated 2025-04-30Assigner: hackerone

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.

CWE-284

What to do

Fixed builds are available from AlmaLinux, Alpine, Debian, Red Hat, Rocky Linux, Ubuntu: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

44Fixed
2Fix pending
4Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 22.04nodejsFixed12.22.9~dfsg-1ubuntu3.2UBUNTU-CVE-2022-32212
Ubuntu 20.04nodejsFixed10.19.0~dfsg-3ubuntu1.3UBUNTU-CVE-2022-32212
Ubuntu 18.04nodejsFix pending8.10.0~dfsg-2ubuntu0.4+esm4 (Ubuntu Pro)UBUNTU-CVE-2022-32212
Ubuntu 16.04nodejsFix pending
Debian 14nodejsFixed18.6.0+dfsg-3DEBIAN-CVE-2022-32212
Debian 13nodejsFixed18.6.0+dfsg-3DEBIAN-CVE-2022-32212
Debian 12nodejsFixed18.6.0+dfsg-3DEBIAN-CVE-2022-32212
Red Hat Enterprise Linux 9nodejsFixed1:16.16.0-1.el9_0RHSA-2022:6595
Red Hat Enterprise Linux 9nodejs-docsFixed1:16.16.0-1.el9_0RHSA-2022:6595
Red Hat Enterprise Linux 9nodejs-full-i18nFixed1:16.16.0-1.el9_0RHSA-2022:6595
Red Hat Enterprise Linux 9nodejs-libsFixed1:16.16.0-1.el9_0RHSA-2022:6595
Red Hat Enterprise Linux 9nodejs-nodemonFixed0:2.0.19-1.el9_0RHSA-2022:6595
Red Hat Enterprise Linux 9npmFixed1:8.11.0-1.16.16.0.1.el9_0RHSA-2022:6595
Red Hat Enterprise Linux 8nodejsFixed1:16.16.0-3.module+el8.6.0+16248+76b0e185RHSA-2022:6448
Red Hat Enterprise Linux 8nodejs-develFixed1:16.16.0-3.module+el8.6.0+16248+76b0e185RHSA-2022:6448
Red Hat Enterprise Linux 8nodejs-docsFixed1:14.20.0-2.module+el8.6.0+16231+7c1b33d9RHSA-2022:6449
Red Hat Enterprise Linux 8nodejs-full-i18nFixed1:16.16.0-3.module+el8.6.0+16248+76b0e185RHSA-2022:6448
Red Hat Enterprise Linux 8nodejs-libsNot affected
Red Hat Enterprise Linux 8nodejs-nodemonFixed0:2.0.19-2.module+el8.6.0+16240+7ca51420RHSA-2022:6448
Red Hat Enterprise Linux 8nodejs-packagingFixed0:25-1.module+el8.5.0+10992+fac5fe06RHSA-2022:6448
Red Hat Enterprise Linux 8nodejs-packaging-bundlerNot affected
Red Hat Enterprise Linux 8npmFixed1:6.14.17-1.14.20.0.2.module+el8.6.0+16231+7c1b33d9RHSA-2022:6449
Red Hat Enterprise Linux 8v8-12.4-develNot affected
Red Hat Enterprise Linux 8v8-13.6-develNot affected
AlmaLinux 9nodejsFixed1:16.16.0-1.el9_0ALSA-2022:6595
AlmaLinux 9nodejs-docsFixed1:16.16.0-1.el9_0ALSA-2022:6595
AlmaLinux 9nodejs-full-i18nFixed1:16.16.0-1.el9_0ALSA-2022:6595
AlmaLinux 9nodejs-libsFixed1:16.16.0-1.el9_0ALSA-2022:6595
AlmaLinux 9nodejs-nodemonFixed2.0.19-1.el9_0ALSA-2022:6595
AlmaLinux 9npmFixed1:8.11.0-1.16.16.0.1.el9_0ALSA-2022:6595
AlmaLinux 8nodejsFixed1:14.20.0-2.module_el8.6.0+3261+490666b3ALSA-2022:6448
AlmaLinux 8nodejs-develFixed1:14.20.0-2.module_el8.6.0+3261+490666b3ALSA-2022:6448
AlmaLinux 8nodejs-docsFixed1:14.20.0-2.module_el8.6.0+3261+490666b3ALSA-2022:6448
AlmaLinux 8nodejs-full-i18nFixed1:14.20.0-2.module_el8.6.0+3261+490666b3ALSA-2022:6448
AlmaLinux 8nodejs-nodemonFixed2.0.19-2.module_el8.6.0+3261+490666b3ALSA-2022:6448
AlmaLinux 8nodejs-packagingFixed23-3.module_el8.5.0+2618+8d46dafdALSA-2022:6448
AlmaLinux 8npmFixed1:6.14.17-1.14.20.0.2.module_el8.6.0+3261+490666b3ALSA-2022:6448
Rocky Linux 9nodejs-nodemonFixed0:2.0.19-1.el9_0RLSA-2022:6595
Rocky Linux 8nodejsFixed1:14.20.0-2.module+el8.6.0+1004+df064614RLSA-2022:6449
Rocky Linux 8nodejs-nodemonFixed0:2.0.19-2.module+el8.6.0+1046+80feca58RLSA-2022:6449
Rocky Linux 8nodejs-packagingFixed0:25-1.module+el8.5.0+702+221f14e6RLSA-2022:6449
Alpine Linux 3.24nodejs-currentFixed18.6.0-r0ALPINE-CVE-2022-32212
Alpine Linux 3.23nodejs-currentFixed18.6.0-r0ALPINE-CVE-2022-32212
Alpine Linux 3.22nodejs-currentFixed18.6.0-r0ALPINE-CVE-2022-32212
Alpine Linux 3.21nodejs-currentFixed18.6.0-r0ALPINE-CVE-2022-32212
Alpine Linux 3.20nodejs-currentFixed18.6.0-r0ALPINE-CVE-2022-32212
Alpine Linux 3.19nodejs-currentFixed18.6.0-r0ALPINE-CVE-2022-32212
Alpine Linux 3.18nodejs-currentFixed18.6.0-r0ALPINE-CVE-2022-32212
Alpine Linux 3.17nodejs-currentFixed18.6.0-r0ALPINE-CVE-2022-32212
Alpine Linux 3.16nodejs-currentFixed18.6.0-r0ALPINE-CVE-2022-32212

What the vendor says

As published in the CVE record by hackerone, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.