Vulnerability · Published Nov 26, 2022 · Assigned by mitre
CVE-2022-24999
High 7.5
In plain English
A high-severity prototype pollution in the nodejs package (AlmaLinux). Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 15.7% (higher than 97% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code. Fixed versions are available - upgrade the affected package.
Official description
qs before 6.10.3, as used in Express before 4.17.3 and other products, allows attackers to cause a Node process hang for an Express application because an __ proto__ key can be used. In many typical Express use cases, an unauthenticated remote attacker can place the attack payload in the query string of the URL that is used to visit the application, such as a[__proto__]=b&a[__proto__]&a[length]=100000000. The fix was backported to qs 6.9.7, 6.8.3, 6.7.3, 6.6.1, 6.5.3, 6.4.1, 6.3.3, and 6.2.4 (and therefore Express 4.17.3, which has "deps: qs@6.9.7" in its release description, is not vulnerable).
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux:8 | nodejs | 1:14.21.1-2.module_el8.7.0+3373+a4c18c43 | ALSA-2023:0050 |
| AlmaLinux:8 | nodejs-devel | 1:14.21.1-2.module_el8.7.0+3373+a4c18c43 | ALSA-2023:0050 |
| AlmaLinux:8 | nodejs-docs | 1:14.21.1-2.module_el8.7.0+3373+a4c18c43 | ALSA-2023:0050 |
| AlmaLinux:8 | nodejs-full-i18n | 1:14.21.1-2.module_el8.7.0+3373+a4c18c43 | ALSA-2023:0050 |
| AlmaLinux:8 | nodejs-nodemon | 2.0.20-2.module_el8.7.0+3373+a4c18c43 | ALSA-2023:0050 |
| AlmaLinux:8 | nodejs-packaging | 23-3.module_el8.4.0+2522+3bd42762 | ALSA-2023:0050 |
| AlmaLinux:8 | npm | 1:6.14.17-1.14.21.1.2.module_el8.7.0+3373+a4c18c43 | ALSA-2023:0050 |
| Debian:12 | node-qs | 6.10.3+ds+~6.9.7-1 | DEBIAN-CVE-2022-24999 |
| Debian:13 | node-qs | 6.10.3+ds+~6.9.7-1 | DEBIAN-CVE-2022-24999 |
| Debian:14 | node-qs | 6.10.3+ds+~6.9.7-1 | DEBIAN-CVE-2022-24999 |
| Rocky Linux:8 | nodejs | 1:14.21.1-2.module+el8.7.0+1116+bd2a84b4 | RLSA-2023:0050 |
| Rocky Linux:8 | nodejs-nodemon | 0:2.0.20-2.module+el8.7.0+1108+49363b0d | RLSA-2023:0050 |
| Rocky Linux:8 | nodejs-packaging | 0:23-3.module+el8.3.0+100+234774f7 | RLSA-2023:0050 |
| Rocky Linux:8 | nodejs-packaging | 0:23-3.module+el8.5.0+733+de4fee6c | RLSA-2023:0050 |
| Rocky Linux:8 | nodejs-packaging | 0:23-3.module+el8.7.0+1071+4bdda2a8 | RLSA-2023:0050 |
| npm | qs | 6.7.3 | GHSA-hrpp-h998-j3pp |
| npm | qs | 6.6.1 | GHSA-hrpp-h998-j3pp |
| npm | qs | 6.5.3 | GHSA-hrpp-h998-j3pp |
| npm | qs | 6.4.1 | GHSA-hrpp-h998-j3pp |
| npm | qs | 6.3.3 | GHSA-hrpp-h998-j3pp |
| npm | qs | 6.2.4 | GHSA-hrpp-h998-j3pp |
| npm | qs | 6.10.3 | GHSA-hrpp-h998-j3pp |
| npm | qs | 6.9.7 | GHSA-hrpp-h998-j3pp |
| npm | qs | 6.8.3 | GHSA-hrpp-h998-j3pp |
Affected products (as reported)
Weakness: CWE-1321 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H