# CVE-2024-21892: 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: High 7.5 (CVSS:3.0, scored by hackerone) `CVSS:3.0/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.56%, higher than 48% of CVEs (2026-12-01)
- Published: 2024-02-20T01:31:08.073Z
- Modified: 2026-09-08T08:48:17.697Z
- Also known as: BIT-NODE-2024-21892, BIT-NODE-MIN-2024-21892
- Weaknesses: CWE-94, CWE-269
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: hackerone

## 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.

(As written by CVE List.)

## Affected

- 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.*; from 12.0 before 12.*; from 13.0 before 13.*; from 14.0 before 14.*; from 15.0 before 15.*; and 6 more
- 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
- node (Bitnami): before 18.19.1; from 19.0.0 before 20.11.1; from 21.0.0 before 21.6.2
- node-min (Bitnami): before 18.19.1; from 19.0.0 before 20.11.1; from 21.0.0 before 21.6.2

## Every score

- hackerone: CVSS:3.0 7.5 High `CVSS:3.0/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:N`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Bitnami Vulnerability Database: rating High

## References

- <https://hackerone.com/reports/2237545> (advisory, issue-tracking, third-party-advisory)
- <https://security.netapp.com/advisory/ntap-20240322-0003/> (advisory, third-party-advisory)
- <http://www.openwall.com/lists/oss-security/2024/03/11/1> (advisory, mailing-list, third-party-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-21892> (web)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2264582> (web)
- <https://github.com/nodejs/node/commit/10ecf400679e04eddab940721cad3f6c1d603b61> (web)
- <https://github.com/nodejs/node/commit/2a5a150772c6a41795314340c8697035a1b344b6> (web)
- <https://github.com/nodejs/node/commit/b43171c6f669b2223064343e2c8472582586f727> (web)
- <https://github.com/nodejs/node/commit/e6b4c105e0795fba8afb3f8e910c56ba9e60f4b5> (web)
- <https://www.oracle.com/security-alerts/cpuapr2024.html> (web)

## Sources

- CVE List: [CVE-2024-21892](https://www.cve.org/CVERecord?id=CVE-2024-21892), CVE Terms of Use, modified 2025-04-30
- NVD: [CVE-2024-21892](https://nvd.nist.gov/vuln/detail/CVE-2024-21892), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-NODE-2024-21892](https://osv.dev/vulnerability/BIT-NODE-2024-21892), Apache-2.0, modified 2026-09-08
- Bitnami Vulnerability Database: [BIT-NODE-MIN-2024-21892](https://osv.dev/vulnerability/BIT-NODE-MIN-2024-21892), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2024-21892 · Whole record: https://cve.day/CVE-2024-21892.json · Rebuilt by cve.day 2026-11-25T22:58:36.910Z
