node-shell-quote: CVE-2021-42740

Related Vulnerabilities: CVE-2021-42740  

Debian Bug report logs - #998418
node-shell-quote: CVE-2021-42740

version graph

Reported by: Salvatore Bonaccorso <carnil@debian.org>

Date: Wed, 3 Nov 2021 21:42:02 UTC

Severity: grave

Tags: security, upstream

Found in version node-shell-quote/1.7.2-1

Reply or subscribe to this bug.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, carnil@debian.org, team@security.debian.org, Debian Javascript Maintainers <pkg-javascript-devel@lists.alioth.debian.org>:
Bug#998418; Package src:node-shell-quote. (Wed, 03 Nov 2021 21:42:03 GMT) (full text, mbox, link).


Acknowledgement sent to Salvatore Bonaccorso <carnil@debian.org>:
New Bug report received and forwarded. Copy sent to carnil@debian.org, team@security.debian.org, Debian Javascript Maintainers <pkg-javascript-devel@lists.alioth.debian.org>. (Wed, 03 Nov 2021 21:42:03 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Salvatore Bonaccorso <carnil@debian.org>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: node-shell-quote: CVE-2021-42740
Date: Wed, 03 Nov 2021 22:39:56 +0100
Source: node-shell-quote
Version: 1.7.2-1
Severity: grave
Tags: security upstream
Justification: user security hole
X-Debbugs-Cc: carnil@debian.org, Debian Security Team <team@security.debian.org>

Hi,

The following vulnerability was published for node-shell-quote.

CVE-2021-42740[0]:
| The shell-quote package before 1.7.3 for Node.js allows command
| injection. 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.


If you fix the vulnerability please also make sure to include the
CVE (Common Vulnerabilities & Exposures) id in your changelog entry.

For further information see:

[0] https://security-tracker.debian.org/tracker/CVE-2021-42740
    https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-42740
[1] https://github.com/substack/node-shell-quote/commit/5799416ed454aa4ec9afafc895b4e31760ea1abe

Regards,
Salvatore



Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Thu Nov 4 14:37:00 2021; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.