CVE-2018-3758: express-cart unrestricted file upload vulnerability

CVE-2018-3758 · Severity: low · CVSS 3 · Published 2022-05-13

express-cart is a popular Node.js e-commerce shopping cart module used by online retailers. An attacker with privileged user access (such as a compromised admin account) can upload arbitrary files to the hosting machine, potentially achieving remote code execution and taking complete control of the server infrastructure.

Technologies: express-cart (npm). Vendors: npm.

Quick answers

Is CVE-2018-3758 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2018-3758 being exploited in the wild.
How severe is CVE-2018-3758?
Low severity, with a CVSS score of 3, published 13 May 2022.
Which products and versions are affected?
express-cart (npm) SEMVER:introduced=0,fixed=1.1.7.
Is there a fix for CVE-2018-3758?
Yes. express-cart (npm): upgrade to 1.1.7 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
How is CVE-2018-3758 attacked?
It is attacked over the network, in a software library.
Am I affected by CVE-2018-3758?
Check whether you run express-cart (npm) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

How to fix

  • express-cart (npm): upgrade to 1.1.7 or later
    npm install express-cart@1.1.7

Technical details

This is an unrestricted file upload vulnerability (CWE-434) in express-cart versions before 1.1.7. The file upload functionality lacks proper validation or restrictions on file types and content, allowing an authenticated user with administrative privileges to upload and execute arbitrary files on the server. The attack requires prior authentication with elevated privileges, but once exploited, an attacker gains remote code execution on the hosting machine. The vulnerability was fixed in version 1.1.7 with added limitations to file uploads as shown in the commit adding validation controls to the admin file upload routes.

Affected products

  • mrvautin express-cart before 1.1.7

Identifiers

  • CVE-2018-3758
  • GHSA-4w62-cq5r-5mmq

Timeline

  • 2018-06-07: disclosed: Published on NVD
  • 2022-05-13: patched: Advisory published; fix available in version 1.1.7

References

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.