CVE-2022-21824
nodejs: Prototype pollution via console.table properties
Overview
Description
Due to the formatting logic of the "console.table()" function it was not safe to allow user controlled input to be passed to the "properties" parameter while simultaneously passing a plain object with at least one property as the first parameter, which could be "__proto__". The prototype pollution has very limited control, in that it only allows an empty string to be assigned to numerical keys of the object prototype.Node.js >= 12.22.9, >= 14.18.3, >= 16.13.2, and >= 17.3.1 use a null protoype for the object these properties are being assigned to.
Source: OX vulnerability database
Severity
8.2 · HIGH
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- None
- Integrity
- Low
- Availability
- High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H
Weakness: CWE-471, CWE-1321
Affected packages · 2
| Ecosystem | Package | Vulnerable | Fixed in |
|---|---|---|---|
| Bitnami | node | >=12.0.0, <12.22.9>=14.0.0, <14.18.3>=16.0.0, <16.13.2>=17.0.0, <17.3.1 | 12.22.914.18.316.13.217.3.1 |
| Bitnami | node-min | >=12.0.0, <12.22.9>=14.0.0, <14.18.3>=16.0.0, <16.13.2>=17.0.0, <17.3.1 | 12.22.914.18.316.13.217.3.1 |
Open a package to see all its vulnerabilities.
Operating systems · 82 fixes
Oracle Linux 1 release · 4 packages
| Release | Package | Fixed in |
|---|---|---|
| 8 | nodejs +3 | 1:16.18.1-3.module+el8.7.0+20893+df13f383 |
| 8 | npm | 1:8.19.2-1.16.18.1.3.module+el8.7.0+20893+df13f383 |
| 8 | nodejs-nodemon | 2.0.20-2.module+el8.7.0+20893+df13f383 |
| 8 | nodejs-packaging | 25-1.module+el8.5.0+20388+4b61e68d |
Photon OS 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 4.0 | nodejs +1 | 17.3.1-1.ph4 |
Red Hat 4 releases · 8 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 7 | rh-nodejs12-nodejs +2 | 0:12.22.12-2.el7 | RHSA-2022:4914 |
| 7 | rh-nodejs14-nodejs +2 | 0:14.20.1-2.el7 | RHSA-2022:7044 |
| 7 | rh-nodejs12-npm | 0:6.14.16-12.22.12.2.el7 | RHSA-2022:4914 |
| 7 | rh-nodejs14-npm | 0:6.14.17-14.20.1.2.el7 | RHSA-2022:7044 |
| 8 (nodejs:12) | nodejs-nodemon | 0:1.18.3-1.module+el8.1.0+3369+37ae6a45 | RHEA-2022:4925 |
| 8 (nodejs:12) | nodejs-nodemon | 0:1.18.3-1.module+el8.1.0+3369+37ae6a45 | RHEA-2022:5221 |
26 more rows
alma 2 releases · 4 packages
| Release | Package | Fixed in |
|---|---|---|
| 8 (nodejs:14) | nodejs +3 | 1:14.20.1-2.module_el8.7.0+3342+b2df8497 |
| 8 (nodejs:14) | npm | 1:6.14.17-1.14.20.1.2.module_el8.7.0+3342+b2df8497 |
| 8 (nodejs:14) | nodejs-nodemon | 2.0.19-2.module_el8.6.0+3261+490666b3 |
| 8 (nodejs:14) | nodejs-packaging | 23-3.module_el8.4.0+2522+3bd42762 |
| 8 (nodejs:16) | nodejs +3 | 1:16.18.1-3.module_el8.7.0+3371+ed8c43db |
| 8 (nodejs:16) | npm | 1:8.19.2-1.16.18.1.3.module_el8.7.0+3371+ed8c43db |
2 more rows
alpine 4 releases · 3 packages
| Release | Package | Fixed in |
|---|---|---|
| 3.22 | openjdk11 | 11.0.15_p10-r0 |
| 3.22 | nodejs | 16.13.2-r0 |
| 3.22 | nodejs-current | 17.3.1-r0 |
| 3.23 | openjdk11 | 11.0.15_p10-r0 |
| 3.23 | nodejs | 16.13.2-r0 |
| 3.23 | nodejs-current | 17.3.1-r0 |
6 more rows
amazon linux 1 release · 3 packages
| Release | Package | Fixed in |
|---|---|---|
| 2023 | nodejs +7 | 1:18.12.1-1.amzn2023.0.2 |
| 2023 | npm | 1:8.19.2-1.18.12.1.1.amzn2023.0.2 |
| 2023 | v8-devel | 2:10.2.154.15-1.18.12.1.1.amzn2023.0.2 |
debian 6 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 10 | nodejs | 10.24.0~dfsg-1~deb10u2 |
| 11 | nodejs | 12.22.12~dfsg-1~deb11u1 |
| 12 | nodejs | 12.22.9~dfsg-1 |
| 13 | nodejs | 12.22.9~dfsg-1 |
| 14 | nodejs | 12.22.9~dfsg-1 |
| 9 | nodejs | affected |
echo 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| nodejs | 12.22.9~dfsg-1 |
openSUSE 1 release · 2 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Tumbleweed | corepack16 +4 | 16.13.2-1.1 | openSUSE-SU-2024:11746-1 |
| Tumbleweed | corepack17 +4 | 17.3.1-1.1 | openSUSE-SU-2024:11730-1 |
rocky 2 releases · 4 packages
| Release | Package | Fixed in |
|---|---|---|
| 8 (nodejs:14) | nodejs +3 | 1:14.20.1-2.module+el8.7.0+1071+4bdda2a8 |
| 8 (nodejs:14) | npm | 1:6.14.17-1.14.20.1.2.module+el8.7.0+1071+4bdda2a8 |
| 8 (nodejs:14) | nodejs-nodemon | 2.0.19-2.module+el8.6.0+1003+ae94235a |
| 8 (nodejs:14) | nodejs-nodemon | 2.0.19-2.module+el8.6.0+1046+80feca58 |
| 8 (nodejs:14) | nodejs-packaging | 23-3.module+el8.3.0+100+234774f7 |
| 8 (nodejs:14) | nodejs-packaging | 23-3.module+el8.5.0+733+de4fee6c |
6 more rows
root.io debian 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 12 | rootio-nodejs | 12.22.9~dfsg-1 |
References
- access.redhat.com https://access.redhat.com/errata/RHSA-2022:9073
- access.redhat.com https://access.redhat.com/security/cve/CVE-2022-21824
- bugzilla.redhat.com https://bugzilla.redhat.com/2040839
- bugzilla.redhat.com https://bugzilla.redhat.com/2040846
- bugzilla.redhat.com https://bugzilla.redhat.com/2040856
- bugzilla.redhat.com https://bugzilla.redhat.com/2040862
- bugzilla.redhat.com https://bugzilla.redhat.com/2066009
- bugzilla.redhat.com https://bugzilla.redhat.com/2134609
- bugzilla.redhat.com https://bugzilla.redhat.com/2140911
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2040839
Show all 38 references
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2040846
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2040856
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2040862
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2066009
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2134609
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2140911
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2142806
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-44531
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-44532
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-44533
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-44906
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-21824
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-3517
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-43548
- errata.almalinux.org https://errata.almalinux.org/8/ALSA-2022-9073.html
- errata.rockylinux.org https://errata.rockylinux.org/RLSA-2022:9073
- hackerone.com https://hackerone.com/reports/1431042
- linux.oracle.com https://linux.oracle.com/cve/CVE-2022-21824.html
- linux.oracle.com https://linux.oracle.com/errata/ELSA-2022-9073-1.html
- lists.debian.org https://lists.debian.org/debian-lts-announce/2022/10/msg00006.html
- nodejs.org https://nodejs.org/en/blog/vulnerability/jan-2022-security-releases/
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2022-21824
- security.netapp.com https://security.netapp.com/advisory/ntap-20220325-0007/
- security.netapp.com https://security.netapp.com/advisory/ntap-20220729-0004/
- www.cve.org https://www.cve.org/CVERecord?id=CVE-2022-21824
- www.debian.org https://www.debian.org/security/2022/dsa-5170
- www.oracle.com https://www.oracle.com/security-alerts/cpuapr2022.html
- www.oracle.com https://www.oracle.com/security-alerts/cpujul2022.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.