CVE-2021-22931
nodejs: Improper handling of untypical characters in domain names
Overview
Description
Node.js before 16.6.0, 14.17.4, and 12.22.4 is vulnerable to Remote Code Execution, XSS, Application crashes due to missing input validation of host names returned by Domain Name Servers in Node.js dns library which can lead to output of wrong hostnames (leading to Domain Hijacking) and injection vulnerabilities in applications using the library.
Source: OX vulnerability database
Severity
9.8 · CRITICAL
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness: CWE-170, CWE-20
Affected packages · 2
| Ecosystem | Package | Vulnerable | Fixed in |
|---|---|---|---|
| Bitnami | node | >=12.0.0, <12.12.1>=12.13.0, <12.22.5>=14.0.0, <14.14.1>=14.15.0, <14.17.5>=16.0.0, <16.6.2 | 12.12.112.22.514.14.114.17.516.6.2 |
| Bitnami | node-min | >=12.0.0, <12.12.1>=12.13.0, <12.22.5>=14.0.0, <14.14.1>=14.15.0, <14.17.5>=16.0.0, <16.6.2 | 12.12.112.22.514.14.114.17.516.6.2 |
Open a package to see all its vulnerabilities.
Operating systems · 60 fixes
Oracle Linux 1 release · 4 packages
| Release | Package | Fixed in |
|---|---|---|
| 8 | nodejs +3 | 1:14.17.5-1.module+el8.4.0+20313+f90c2973 |
| 8 | npm | 1:6.14.14-1.14.17.5.1.module+el8.4.0+20313+f90c2973 |
| 8 | nodejs-nodemon | 2.0.3-1.module+el8.4.0+20281+eb64e322 |
| 8 | nodejs-packaging | 23-3.module+el8.3.0+7818+6cd30d85 |
Photon OS 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 4.0 | nodejs +1 | 14.17.5-1.ph4 |
Red Hat 3 releases · 10 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 7 | rh-nodejs12-nodejs +2 | 0:12.22.5-1.el7 | RHSA-2021:3281 |
| 7 | rh-nodejs14-nodejs +2 | 0:14.17.5-1.el7 | RHSA-2021:3280 |
| 7 | rh-nodejs14-nodejs-nodemon | 0:2.0.3-5.el7 | RHSA-2021:3280 |
| 7 | rh-nodejs12-nodejs-nodemon | 0:2.0.3-5.el7 | RHSA-2021:3281 |
| 7 | rh-nodejs12-npm | 0:6.14.14-12.22.5.1.el7 | RHSA-2021:3281 |
| 7 | rh-nodejs14-npm | 0:6.14.14-14.17.5.1.el7 | RHSA-2021:3280 |
16 more rows
alma 2 releases · 4 packages
| Release | Package | Fixed in |
|---|---|---|
| 8 (nodejs:12) | nodejs-packaging | 17-3.module_el8.3.0+2023+d2377ea3 |
| 8 (nodejs:12) | nodejs +3 | 1:12.22.5-1.module_el8.4.0+2529+af52a4c7 |
| 8 (nodejs:12) | npm | 1:6.14.14-1.12.22.5.1.module_el8.4.0+2529+af52a4c7 |
| 8 (nodejs:12) | nodejs-nodemon | 2.0.3-1.module_el8.4.0+2521+c668cc9f |
| 8 (nodejs:14) | nodejs-nodemon | 2.0.3-1.module_el8.4.0+2521+c668cc9f |
| 8 (nodejs:14) | nodejs-packaging | 23-3.module_el8.4.0+2522+3bd42762 |
alpine 4 releases · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| 3.22 | nodejs | 14.17.5-r0 |
| 3.22 | nodejs-current | 16.6.2-r0 |
| 3.23 | nodejs | 14.17.5-r0 |
| 3.23 | nodejs-current | 16.6.2-r0 |
| 3.24 | nodejs | 14.17.5-r0 |
| 3.24 | nodejs-current | 16.6.2-r0 |
2 more rows
rocky 3 releases · 4 packages
| Release | Package | Fixed in |
|---|---|---|
| 8 | nodejs +3 | 1:12.22.5-1.module+el8.4.0+647+e905fa21 |
| 8 | nodejs +3 | 1:14.17.5-1.module+el8.4.0+654+17ff1d38 |
| 8 | npm | 1:6.14.14-1.12.22.5.1.module+el8.4.0+647+e905fa21 |
| 8 | npm | 1:6.14.14-1.14.17.5.1.module+el8.4.0+654+17ff1d38 |
| 8 (nodejs:12) | nodejs-packaging | 17-3.module+el8.3.0+101+f84c7154 |
| 8 (nodejs:12) | nodejs +3 | 1:12.22.5-1.module+el8.4.0+647+e905fa21 |
13 more rows
References
- access.redhat.com https://access.redhat.com/errata/RHSA-2021:3666
- access.redhat.com https://access.redhat.com/security/cve/CVE-2021-22931
- bugzilla.redhat.com https://bugzilla.redhat.com/1956818
- bugzilla.redhat.com https://bugzilla.redhat.com/1988342
- bugzilla.redhat.com https://bugzilla.redhat.com/1988394
- bugzilla.redhat.com https://bugzilla.redhat.com/1990409
- bugzilla.redhat.com https://bugzilla.redhat.com/1990415
- bugzilla.redhat.com https://bugzilla.redhat.com/1993019
- bugzilla.redhat.com https://bugzilla.redhat.com/1993029
- bugzilla.redhat.com https://bugzilla.redhat.com/1993039
Show all 43 references
- bugzilla.redhat.com https://bugzilla.redhat.com/1993924
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=1956818
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=1988342
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=1988394
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=1990409
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=1990415
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=1993019
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=1993029
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=1993039
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=1993924
- cert-portal.siemens.com https://cert-portal.siemens.com/productcert/pdf/ssa-389290.pdf
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-22930
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-22931
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-22939
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-22940
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-23343
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-32803
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-32804
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-3672
- errata.almalinux.org https://errata.almalinux.org/8/ALSA-2021-3666.html
- errata.rockylinux.org https://errata.rockylinux.org/RLSA-2021:3666
- hackerone.com https://hackerone.com/reports/1178337
- linux.oracle.com https://linux.oracle.com/cve/CVE-2021-22931.html
- linux.oracle.com https://linux.oracle.com/errata/ELSA-2021-3666.html
- nodejs.org https://nodejs.org/en/blog/vulnerability/aug-2021-security-releases/
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2021-22931
- security.gentoo.org https://security.gentoo.org/glsa/202401-02
- security.netapp.com https://security.netapp.com/advisory/ntap-20210923-0001/
- security.netapp.com https://security.netapp.com/advisory/ntap-20211022-0003/
- www.cve.org https://www.cve.org/CVERecord?id=CVE-2021-22931
- www.oracle.com https://www.oracle.com/security-alerts/cpujan2022.html
- www.oracle.com https://www.oracle.com/security-alerts/cpujul2022.html
- www.oracle.com https://www.oracle.com/security-alerts/cpuoct2021.html
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.