Bug 1425807

Summary: nodejs-shelljs: Command injection via shell.exec() call
Product: [Other] Security Response Reporter: Andrej Nemec <anemec>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED UPSTREAM QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: unspecifiedCC: tchollingsworth
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-06-08 03:08:01 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1425810, 1425809    
Bug Blocks:    

Description Andrej Nemec 2017-02-22 13:40:15 UTC
shelljs is a portable Unix shell commands for Node.js. It is possible to invoke commands from shell.exec() from external sources, allowing an attacker to inject arbitrary commands.

References:

https://snyk.io/vuln/npm:shelljs:20140723

Upstream bugs:

https://github.com/shelljs/shelljs/issues/143
https://github.com/shelljs/shelljs/issues/495

Upstream patch:

https://github.com/shelljs/shelljs/pull/524/commits/2f18dc4e4cbbc1d22d9e80ed8ce9d222db0b62f5

Comment 1 Andrej Nemec 2017-02-22 13:40:57 UTC
Created nodejs-shelljs tracking bugs for this issue:

Affects: epel-all [bug 1425810]
Affects: fedora-all [bug 1425809]

Comment 2 Product Security DevOps Team 2019-06-08 03:08:01 UTC
This CVE Bugzilla entry is for community support informational purposes only as it does not affect a package in a commercially supported Red Hat product. Refer to the dependent bugs for status of those individual community products.