cve.bz

CVE-2022-32212 OS Command Injection

8.1 highEPSS 6.4%

High (8.1). EPSS 6.4% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

8.1 high
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
6.4% (unchanged from 6.4% a week ago; 6.4% 30 days ago) estimated probability of exploitation activity in the next 30 days; 94th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWEs
CWE-78 Improper Neutralization of Special Elements used in an OS Command (OS Command Injection)
CWE-284 Improper Access Control
OWASP Top 10
A01:2025 Broken Access Control, A05:2025 Injection
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2022-32212 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2022-32212?via=ask-ai-copy and https://cve.bz/cve/CVE-2022-32212?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2022-32212 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

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

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian10nodejs10.24.0~dfsg-1~deb10u2DLA-3137-1
Debian11nodejs12.22.12~dfsg-1~deb11u3DSA-5326-1
Debian12, 13, 14nodejs18.6.0+dfsg-3DEBIAN-CVE-2022-32212
Ubuntu20.04:LTSnodejs10.19.0~dfsg-3ubuntu1.3UBUNTU-CVE-2022-32212 USN-6491-1
Ubuntu22.04:LTSnodejs12.22.9~dfsg-1ubuntu3.2UBUNTU-CVE-2022-32212 USN-6491-1
UbuntuPro:18.04:LTSnodejs8.10.0~dfsg-2ubuntu0.4+esm4UBUNTU-CVE-2022-32212 USN-6491-1
Red Hatenterprise_linux:8::appstreamnodejs, nodejs-docs, nodejs-devel and 3 more1:14.20.0-2.module+el8.6.0+16231+7c1b33d9RHSA-2022:6448
Red Hatenterprise_linux:8::appstreamnodejs, nodejs-docs, nodejs-devel and 3 more1:16.16.0-3.module+el8.6.0+16248+76b0e185RHSA-2022:6449
Red Hatenterprise_linux:8::appstreamnodejs-nodemon0:2.0.19-2.module+el8.6.0+16231+7c1b33d9RHSA-2022:6448
Red Hatenterprise_linux:8::appstreamnodejs-nodemon0:2.0.19-2.module+el8.6.0+16240+7ca51420RHSA-2022:6449
Red Hatenterprise_linux:8::appstreamnodejs-packaging0:23-3.module+el8.3.0+6519+9f98ed83RHSA-2022:6448
Red Hatenterprise_linux:8::appstreamnodejs-packaging0:25-1.module+el8.5.0+10992+fac5fe06RHSA-2022:6449
Red Hatenterprise_linux:8::appstreamnpm1:6.14.17-1.14.20.0.2.module+el8.6.0+16231+7c1b33d9RHSA-2022:6448
Red Hatenterprise_linux:8::appstreamnpm1:8.11.0-1.16.16.0.3.module+el8.6.0+16248+76b0e185RHSA-2022:6449
Red Hatenterprise_linux:9::appstreamnodejs, nodejs-docs, nodejs-libs and 4 more1:16.16.0-1.el9_0RHSA-2022:6595
Red Hatenterprise_linux:9::appstreamnodejs-nodemon0:2.0.19-1.el9_0RHSA-2022:6595
Red Hatenterprise_linux:9::appstreamnpm1:8.11.0-1.16.16.0.1.el9_0RHSA-2022:6595
Red Hatrhel_eus:8.4::appstreamnodejs, nodejs-docs, nodejs-devel and 3 more1:14.20.0-2.module+el8.4.0+16234+70f4adc8RHSA-2022:6985
6 more for Red Hat in the JSON and on Red Hat's page.
SUSEEnterprise Storage 6, Enterprise Storage 7, Linux Enterprise High Performance Computing 15 SP1-ESPOS and 16 morenodejs1010.24.1-150000.1.47.1SUSE-SU-2022:2855-1
SUSEEnterprise Storage 7, Linux Enterprise High Performance Computing 15 SP2-ESPOS, Linux Enterprise High Performance Computing 15 SP2-LTSS and 7 morenodejs1212.22.12-150200.4.35.1SUSE-SU-2022:2430-1
SUSEEnterprise Storage 7, Linux Enterprise High Performance Computing 15 SP2-ESPOS, Linux Enterprise High Performance Computing 15 SP2-LTSS and 7 morenodejs1414.20.0-150200.15.34.1SUSE-SU-2022:2425-1
SUSELinux Enterprise Module for Web and Scripting 12nodejs1212.22.12-1.51.1SUSE-SU-2022:2417-1
SUSELinux Enterprise Module for Web and Scripting 12nodejs1414.20.0-6.31.1SUSE-SU-2022:2416-1
SUSELinux Enterprise Module for Web and Scripting 12nodejs1616.16.0-8.6.1SUSE-SU-2022:2415-1
SUSELinux Enterprise Module for Web and Scripting 12nodejs1818.13.0-8.3.1SUSE-SU-2023:0408-1
SUSELinux Enterprise Module for Web and Scripting 15 SP3nodejs1616.16.0-150300.7.6.2SUSE-SU-2022:2551-1
SUSELinux Enterprise Module for Web and Scripting 15 SP4nodejs1616.16.0-150400.3.3.2SUSE-SU-2022:2491-1
SUSELinux Enterprise Module for Web and Scripting 15 SP4nodejs1818.13.0-150400.9.3.1SUSE-SU-2023:0419-1
openSUSELeap 15.3nodejs1616.16.0-150300.7.6.2SUSE-SU-2022:2551-1
openSUSELeap 15.3, Leap 15.4nodejs1010.24.1-150000.1.47.1SUSE-SU-2022:2855-1
openSUSELeap 15.3, Leap 15.4nodejs1212.22.12-150200.4.35.1SUSE-SU-2022:2430-1
openSUSELeap 15.3, Leap 15.4nodejs1414.20.0-150200.15.34.1SUSE-SU-2022:2425-1
openSUSELeap 15.4nodejs1616.16.0-150400.3.3.2SUSE-SU-2022:2491-1
openSUSELeap 15.4, Leap 15.5nodejs1818.13.0-150400.9.3.1SUSE-SU-2023:0419-1
openSUSETumbleweednodejs1616.16.0-1.1openSUSE-SU-2024:12199-1
openSUSETumbleweednodejs1818.9.0-1.1openSUSE-SU-2024:12349-1
AlmaLinux8nodejs, nodejs-docs, nodejs-devel and 1 more1:14.20.0-2.module_el8.6.0+3261+490666b3ALSA-2022:6448
AlmaLinux8nodejs-nodemon2.0.19-2.module_el8.6.0+3261+490666b3ALSA-2022:6448
AlmaLinux8nodejs-packaging23-3.module_el8.5.0+2618+8d46dafdALSA-2022:6448
AlmaLinux8npm1:6.14.17-1.14.20.0.2.module_el8.6.0+3261+490666b3ALSA-2022:6448
AlmaLinux9nodejs, nodejs-docs, nodejs-libs and 1 more1:16.16.0-1.el9_0ALSA-2022:6595
AlmaLinux9nodejs-nodemon2.0.19-1.el9_0ALSA-2022:6595
AlmaLinux9npm1:8.11.0-1.16.16.0.1.el9_0ALSA-2022:6595
Rocky Linux8nodejs1:14.20.0-2.module+el8.6.0+1004+df064614RLSA-2022:6448
Rocky Linux8nodejs1:16.16.0-3.module+el8.6.0+1003+ae94235aRLSA-2022:6449
Rocky Linux8nodejs-nodemon0:2.0.19-2.module+el8.6.0+1003+ae94235aRLSA-2022:6448 RLSA-2022:6449
Rocky Linux8nodejs-nodemon0:2.0.19-2.module+el8.6.0+1046+80feca58RLSA-2022:6448 RLSA-2022:6449
Rocky Linux8nodejs-packaging0:23-3.module+el8.3.0+100+234774f7RLSA-2022:6448
Rocky Linux8nodejs-packaging0:23-3.module+el8.5.0+733+de4fee6cRLSA-2022:6448
Rocky Linux8nodejs-packaging0:23-3.module+el8.7.0+1071+4bdda2a8RLSA-2022:6448
Rocky Linux8nodejs-packaging0:25-1.module+el8.5.0+702+221f14e6RLSA-2022:6449
Rocky Linux8nodejs-packaging0:25-1.module+el8.6.0+1046+80feca58RLSA-2022:6449
Rocky Linux9nodejs-nodemon0:2.0.19-1.el9_0RLSA-2022:6595
Alpinev3.16, v3.17, v3.18 and 6 morenodejs-current18.6.0-r0ALPINE-CVE-2022-32212
Azure Linux2nodejs16.20.2-4AZL-10149

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

This issue is a bypass of CVE-2021-22884.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8nodejs:14-8060020220804102127.ad008a3aFixed 2022-09-13RHSA-2022:6448
Red Hat Enterprise Linux 8nodejs:16-8060020220805104227.ad008a3aFixed 2022-09-13RHSA-2022:6449
Red Hat Enterprise Linux 8.4 Extended Update Supportnodejs:14-8040020220804130254.522a0ee4Fixed 2022-10-18RHSA-2022:6985
Red Hat Enterprise Linux 9nodejs-1:16.16.0-1.el9_0Fixed 2022-09-20RHSA-2022:6595
Red Hat Software Collections for Red Hat Enterprise Linux 7rh-nodejs14-nodejs-0:14.20.0-2.el7Fixed 2022-09-08RHSA-2022:6389
Red Hat Enterprise Linux 8nodejs:18/nodejsNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2022-32212.

ICS advisories (CISA)

AdvisoryTitlePublishedSectorsAffectedFixed
ICSA-23-017-03Siemens SINEC INS2023-01-10MultipleSINEC INSnone listed

From CISA's ICS advisories (CSAF), provided under CISA's notification. Only the facts are shown; each advisory is on CISA's page. Credits.

Attack patterns (CAPEC)

  • CAPEC-6 Argument Injection Likelihood: High · Severity: High
  • CAPEC-15 Command Delimiters Likelihood: High · Severity: High
  • CAPEC-43 Exploiting Multiple Input Interpretation Layers Likelihood: Medium · Severity: High
  • CAPEC-88 OS Command Injection Likelihood: High · Severity: High
  • CAPEC-108 Command Line Execution through SQL Injection Likelihood: Low · Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-284 (17).

References

Check your stackJSON