Security mailing lists by PureSourceCode

CVE-2024-21892

HIGH 7.8CVSS 3.1

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.

Published
20 Feb 2024
Last modified
17 Jun 2026
Assigned by
support@hackerone.com
NVD status
Modified
Weakness
CWE-269CWE-94
Sources
NVDJSON

Scores

SourceScored byVersionScoreVector / decision
NVD nvd@nist.gov (Primary) CVSS 3.1 HIGH 7.8 CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
NVD support@hackerone.com (Secondary) CVSS 3.0 HIGH 7.5 CVSS:3.0/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:N

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD nodejs node.js
cpe:2.3:a:nodejs:node.js:*:*:*:*:*:*:*:*
>= 18.0.0, < 18.19.1 18.19.1
NVD nodejs node.js
cpe:2.3:a:nodejs:node.js:*:*:*:*:*:*:*:*
>= 20.0.0, < 20.11.1 20.11.1
NVD nodejs node.js
cpe:2.3:a:nodejs:node.js:*:*:*:*:*:*:*:*
>= 21.0.0, < 21.6.2 21.6.2

References

History

  • 25 Nov 2026 20:54 UTC · NVD: first stored (published 20 Feb 2024)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.