CVE-2024-21892: Code injection and privilege escalation through Linux capabilities
Code injection and privilege escalation through Linux capabilities
Other sources
Node.js could allow a local authenticated attacker to gain elevated privileges on the system, caused by a bug in the implementation of the exception of CAPNETBINDSERVICE. An attacker could exploit this vulnerability to inject code that inherits the process's elevated privileges.
— IBM
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 CAPNETBINDSERVICE.
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.
— Node.Js
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
redhat/nodeto a version that resolves this vulnerability.Fixed in 18.19.1 - Upgrade
Upgrade
redhat/nodeto a version that resolves this vulnerability.Fixed in 20.11.1 - Upgrade
Upgrade
redhat/nodeto a version that resolves this vulnerability.Fixed in 21.6.2 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 18.19.1Fixed in 20.11.1Fixed in 21.6.2 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 18.19.1 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 20.11.1 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 21.6.2 - Upgrade
Upgrade
debian/nodejsto a version that resolves this vulnerability.Fixed in 18.20.4+dfsg-1~deb12u1 - Upgrade
Upgrade
debian/nodejsto a version that resolves this vulnerability.Fixed in 18.19.1+dfsg-1 - Upgrade
Upgrade
debian/nodejsto a version that resolves this vulnerability.Fixed in 18.20.4+dfsg-1~deb12u2Fixed in 18.20.4+dfsg-1~deb12u3Fixed in 20.19.2+dfsg-1+deb13u2Fixed in 20.19.2+dfsg-1+deb13u3Fixed in 24.21.0+dfsg+~cs24.13.4-1Fixed in 24.22.2+dfsg+~cs24.19.2-1 - Upgrade
Upgrade
alpine/openjdk17to a version that resolves this vulnerability.Fixed in 17.0.11_p9-r0 - Upgrade
Upgrade
alpine/openjdk21to a version that resolves this vulnerability.Fixed in 21.0.3_p9-r0 - Upgrade
Upgrade
Node.jsto a version that resolves this vulnerability.Fixed in 18.19.1
Event History
Parent advisories
This vulnerability appears in the following advisories.
Frequently Asked Questions
What is the severity of CVE-2024-21892?
CVE-2024-21892 is classified as a high severity vulnerability due to its potential to allow local authenticated attackers to gain elevated privileges.
How do I fix CVE-2024-21892?
To mitigate CVE-2024-21892, update Node.js to versions 18.19.1, 20.11.1, or 21.6.2, or apply the appropriate patches for affected IBM Cognos Analytics releases.
Who is affected by CVE-2024-21892?
CVE-2024-21892 affects users running specific versions of Node.js and IBM Cognos Analytics on Linux systems.
What does CVE-2024-21892 exploit?
CVE-2024-21892 exploits a bug in the implementation of the exception of CAP_NET_BIND_SERVICE in Node.js on Linux.
What are the potential impacts of CVE-2024-21892?
If exploited, CVE-2024-21892 could allow attackers to inject code that inherits elevated privileges from the Node.js process.