7.5high
On Linux, Node.js ignores certain environment variables if those may have been set by an unprivileged user while the process is running wit…
- Severity
- 7.5high CVSS:3.0 by hackerone
- Exploit likelihood
- 0.56% (higher than 48% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- hackerone
- Also known as
- BIT-NODE-2024-21892BIT-NODE-MIN-2024-21892
Description
On Linux, Node.js ignores certain environment variables if those may have been set by an unprivileged user while the process is running with elevated privileges with the only exception of CAP_NET_BIND_SERVICE. Due to a bug in the implementation of this exception, Node.js incorrectly applies this exception even when certain other capabilities have been set. This allows unprivileged users to inject code that inherits the process's elevated privileges.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| NodeJS Node | from 4.0 before 4.*, from 5.0 before 5.*, from 6.0 before 6.*, from 7.0 before 7.*, from 8.0 before 8.*, from 9.0 before 9.*, from 10.0 before 10.*, from 11.0 before 11.* and 10 more | CVE List |
| nodejs node.js | from 18.0.0 up to 18.19.0, from 20.0.0 up to 20.11.0, from 21.0.0 up to 21.6.0, from 18.0.0 before 18.19.1, from 20.0.0 before 20.11.1, from 21.0.0 before 21.6.2 | CVE List, NVD |
| node (Bitnami) | before 18.19.1, from 19.0.0 before 20.11.1, from 21.0.0 before 21.6.2 | Bitnami Vulnerability Database |
| node-min (Bitnami) | before 18.19.1, from 19.0.0 before 20.11.1, from 21.0.0 before 21.6.2 | Bitnami Vulnerability Database |
All scores
| hackerone | 7.5high CVSS:3.0 | CVSS:3.0/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:N |
| NVD | 7.8high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| Bitnami Vulnerability Database | high rating |
Classification
What each source says
CVE List
On Linux, Node.js ignores certain environment variables if those may have been set by an unprivileged user while the process is running with elevated privileges with the only exception of CAP_NET_BIND_SERVICE. Due to a bug in the implementation of this exception, Node.js incorrectly applies this exception even when certain other capabilities have been set. This allows unprivileged users to inject code that inherits the process's elevated privileges.
NVD (es)
En Linux, Node.js ignora ciertas variables de entorno si pueden haber sido configuradas por un usuario sin privilegios mientras el proceso se ejecuta con privilegios elevados con la única excepción de CAP_NET_BIND_SERVICE. Debido a un error en la implementación de esta excepción, Node.js aplica incorrectamente esta excepción incluso cuando se han configurado otras capacidades. Esto permite a los usuarios sin privilegios inyectar código que hereda los privilegios elevados del proceso.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-21892 changed 2025-04-30 | CVE Terms of Use |
| NVD | CVE-2024-21892 changed 2026-06-17 | Public domain |
| Bitnami Vulnerability Database | BIT-NODE-2024-21892 changed 2026-09-08 | Apache-2.0 |
| Bitnami Vulnerability Database | BIT-NODE-MIN-2024-21892 changed 2026-09-08 | Apache-2.0 |