Lucene search

K
cveSnykCVE-2020-28494
HistoryFeb 02, 2021 - 11:15 a.m.

CVE-2020-28494

2021-02-0211:15:13
CWE-78
snyk
web.nvd.nist.gov
90
cve
2020
28494
total.js
package
image.pipe
image.stream
child_process.spawn
shell injection

CVSS2

7.5

Attack Vector

NETWORK

Attack Complexity

LOW

Authentication

NONE

Confidentiality Impact

PARTIAL

Integrity Impact

PARTIAL

Availability Impact

PARTIAL

AV:N/AC:L/Au:N/C:P/I:P/A:P

CVSS3

8.6

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

HIGH

Integrity Impact

LOW

Availability Impact

LOW

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:L

AI Score

8.5

Confidence

High

EPSS

0.004

Percentile

73.4%

This affects the package total.js before 3.4.7. The issue occurs in the image.pipe and image.stream functions. The type parameter is used to build the command that is then executed using child_process.spawn. The issue occurs because child_process.spawn is called with the option shell set to true and because the type parameter is not properly sanitized.

Affected configurations

Nvd
Node
totaljstotal.jsRange<3.4.7node.js
VendorProductVersionCPE
totaljstotal.js*cpe:2.3:a:totaljs:total.js:*:*:*:*:*:node.js:*:*

CNA Affected

[
  {
    "product": "total.js",
    "vendor": "n/a",
    "versions": [
      {
        "lessThan": "3.4.7",
        "status": "affected",
        "version": "unspecified",
        "versionType": "custom"
      }
    ]
  }
]

CVSS2

7.5

Attack Vector

NETWORK

Attack Complexity

LOW

Authentication

NONE

Confidentiality Impact

PARTIAL

Integrity Impact

PARTIAL

Availability Impact

PARTIAL

AV:N/AC:L/Au:N/C:P/I:P/A:P

CVSS3

8.6

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

HIGH

Integrity Impact

LOW

Availability Impact

LOW

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:L

AI Score

8.5

Confidence

High

EPSS

0.004

Percentile

73.4%