CVE-2022-0144: Improper Privilege Management in shelljs/shelljs

Published Dec 26, 2021
·
Updated

A flaw was found in the ShellJS library when the scripts used the exec function. Local users on the filesystem could take advantage of this as they can read the stdout of the ShellJS process. This issue discloses sensitive information, leading to privilege escalation. This flaw allows an attacker to craft stdout files, which leads to crashing the ShellJS scripts running with privileges.

Other sources

shelljs is vulnerable to improper pPrivilege management.

Reference: https://huntr.dev/bounties/50996581-c08e-4eed-a90e-c0bac082679c

Upstream patch: https://github.com/shelljs/shelljs/commit/d919d22dd6de385edaa9d90313075a77f74b338c

Red Hat

shelljs is vulnerable to Improper Privilege Management

Affected Software

6 affected componentsFixes available
npm/shelljs<0.8.5
0.8.5
redhat/shelljs<0.8
0.8
Shelljs Project Shelljs Node.js<0.8.5
IBM Business Automation Insights<=25.0.0
IBM Business Automation Insights<=24.0.1
IBM Business Automation Insights<=24.0.0

Event History

Dec 26, 2021
CVE Published
12:00 AM
Data Sourced
12:00 AM
RemedyDescriptionSeverityAffected Software
Jan 11, 2022
CVE Published
via MITRE·06:45 AM
Data Sourced
via MITRE·06:45 AM
DescriptionSeverityWeakness
Jan 21, 2022
Data Sourced
via Red Hat·01:31 PM
DescriptionSeverityAffected Software
Advisory Published
11:37 PM
Nov 3, 2025
Data Sourced
via IBM·12:00 AM
DescriptionAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

What is the severity of CVE-2022-0144?

CVE-2022-0144 is considered a critical vulnerability as it allows local users to read sensitive information, potentially leading to privilege escalation.

2

How do I fix CVE-2022-0144?

To fix CVE-2022-0144, upgrade the ShellJS library to version 0.8.5 or later, or apply the relevant patches if you're using IBM Business Automation Insights.

3

Which versions are affected by CVE-2022-0144?

CVE-2022-0144 affects ShellJS versions prior to 0.8.5 and IBM Business Automation Insights versions up to 25.0.0 inclusive.

4

Who is impacted by CVE-2022-0144?

Users and applications utilizing the ShellJS library in their scripts, particularly those executing the exec function, are impacted by CVE-2022-0144.

5

Is CVE-2022-0144 exploitative?

Yes, CVE-2022-0144 could be exploited by local users on the filesystem to escalate their privileges by accessing sensitive information.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203