GHSA-64g7-mvw6-v9qj Improper Privilege Management in shelljs

Not scored Published

Local attackers can read output from synchronous shell commands in multi-user environments, exposing sensitive data.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is GHSA-64g7-mvw6-v9qj?

GHSA-64g7-mvw6-v9qj is a vulnerability in shelljs, published on 14 Jan 2022. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

Impact

Output from the synchronous version of shell.exec() may be visible to other users on the same system. You may be affected if you execute shell.exec() in multi-user Mac, Linux, or WSL environments, or if you execute shell.exec() as the root user.

Other shelljs functions (including the asynchronous version of shell.exec()) are not impacted.

Patches

Patched in shelljs 0.8.5

Workarounds

Recommended action is to upgrade to 0.8.5.

References

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

For more information

If you have any questions or comments about this advisory:

Which versions are affected by GHSA-64g7-mvw6-v9qj?

2 open source packages ship an affected version, including shelljs.

PackageAffectedFixed in
shelljs npmAll versions0.8.5
shelljs npmAll versions0.8.5

How do I fix GHSA-64g7-mvw6-v9qj?

Upgrade shelljs to 0.8.5 or later.

Is GHSA-64g7-mvw6-v9qj being exploited?

There is no known exploitation of GHSA-64g7-mvw6-v9qj in the wild and no public exploit code.

Sources

Is GHSA-64g7-mvw6-v9qj in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free