Patchfirst
CVE-2024-48914 Public exploit Critical · 9.1 EPSS 60.4%

Vendure asset server plugin has local file read vulnerability with AssetServerPlugin & LocalAssetStorageStrategy

Fix:upgrade asset-server-plugin to 3.0.5 or later Details ↓

vendure-ecommerce · vendure

Summary

The Vendure headless commerce platform's asset server plugin, specifically its LocalAssetStorageStrategy, contains a path traversal flaw that fails to restrict asset requests to the intended directory. An attacker with network access and no authentication or user interaction can craft a request that traverses the server file system to read arbitrary files, including configuration files and environment variables, and can also crash the server with a malformed URI.

Official description · CVE.org

Vendure is an open-source headless commerce platform. Prior to versions 3.0.5 and 2.3.3, a vulnerability in Vendure's asset server plugin allows an attacker to craft a request which is able to traverse the server file system and retrieve the contents of arbitrary files, including sensitive data such as configuration files, environment variables, and other critical data stored on the server. In the same code path is an additional vector for crashing the server via a malformed URI. Patches are available in versions 3.0.5 and 2.3.3. Some workarounds are also available. One may use object storage rather than the local file system, e.g. MinIO or S3, or define middleware which detects and blocks requests with urls containing `/../`.

Breakdown
66.2 / 100
Exploited
Yes, in VulnCheck KEV
Reports
0
Tactics
0/15

First seen exploited 8 months after disclosure. Public exploit code (PoC-in-GitHub) appeared 6 days after disclosure.

  1. Disclosedday 0
  2. Public exploit codePoC-in-GitHub+6 days
  3. First seen exploitedVulnCheck KEV evidence+8 mo

2 related vulnerabilities in the same code over 2 years.

Linked vulnerabilitiesLinked by evidence that a fix failed or the same code was patched again. Oldest first.

  1. CVE-2022-23065Vendure - XSS via SVG File Upload2 May 2022
  2. relatedMedium

    Why these are linked:

    This CVECVE-2024-48914Vendure asset server plugin has local file read vulnerability…15 Oct 2024

Affected versions and fixes

as published in the CVE record

vendure-ecommerce vendure

Affected: < 2.3.3 · >= 3.0.0, < 3.0.5

Am I affected? What do I upgrade to?

From GitHub Security Advisories and OSV

1 package in 1 ecosystem. Main package: @vendure/asset-server-plugin.

npm@vendure/asset-server-pluginGHSA-r9mq-3c9r-fmjq

Upgrade to 3.0.5 or later

npmnpm install @vendure/asset-server-plugin@3.0.5

The first fix for CVE-2024-48914. No other CVE tracked by Patchfirst affects this package.

Affected versions, by release line

If you runUpgrade to
3.0.0 up to 3.0.53.0.5
All versions before 2.3.32.3.3

“Up to” means the second version is the fix and is not affected.

Check your lockfile against all CVEs

References

4 links, grouped by NVD tag
↑ ↓ chooseEnter openEsc close