Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Snyk vulnerability [SNYK-JS-SHELLQUOTE-1766506] #53

Open
HHogg opened this issue Oct 29, 2021 · 0 comments
Open

Snyk vulnerability [SNYK-JS-SHELLQUOTE-1766506] #53

HHogg opened this issue Oct 29, 2021 · 0 comments
Labels
help wanted Extra attention is needed snyk-vulnerability

Comments

@HHogg
Copy link
Owner

HHogg commented Oct 29, 2021

Affecting Packages/Plugins

Overview

shell-quote is a package used to quote and parse shell commands.

Affected versions of this package are vulnerable to Remote Code Execution (RCE). An attacker can inject unescaped shell metacharacters through a regex designed to support Windows drive letters. If the output of this package is passed to a real shell as a quoted argument to a command with exec(), an attacker can inject arbitrary commands. This is because the Windows drive letter regex character class is {A-z] instead of the correct {A-Za-z]. Several shell metacharacters exist in the space between capital letter Z and lower case letter a, such as the backtick character.

Remediation

Upgrade shell-quote to version 1.7.3 or higher.

References

@HHogg HHogg added help wanted Extra attention is needed snyk-vulnerability labels Oct 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed snyk-vulnerability
Projects
None yet
Development

No branches or pull requests

1 participant