CVE-2022-40199: EC-CUBE Directory Traversal Vulnerability

ec-cube/ec-cube Updated 02 Oct 2025

Summary

28/09/2022
No i
Low
2.7

CVE-2022-40199: EC-CUBE Directory traversal vulnerability. Affects ec-cube/ec-cube across 2 version ranges.

>= 3.0.0, <= 3.0.18-p4 >= 4.0.0, <= 4.1.2

No fix is published. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

EC-CUBE is an open-source e-commerce platform written in PHP. It provides various features for building and managing online stores. The vulnerability affects EC-CUBE versions 3.0.0 to 3.0.18-p4 and 4.0.0 to 4.1.2. EC-CUBE allows remote authenticated attackers with administrative privileges to exploit a directory traversal vulnerability and obtain the product's directory structure information.

Vulnerability Detail

The directory traversal vulnerability in EC-CUBE allows an attacker to bypass the intended access restrictions and access files or directories outside the intended directory. By manipulating input parameters, an attacker can navigate through the file system and obtain sensitive information about the application's directory structure. This information can be used to plan further attacks or gain unauthorized access to sensitive files.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

As a temporary workaround, users can implement a server-side access control mechanism to restrict access to sensitive directories and files. This can be achieved by configuring the web server to deny access to directories outside the intended directory. For example, in Apache, this can be done using the 'mod_rewrite' module and configuring 'RewriteRule' directives to block access to parent directories.

Conclusion

The directory traversal vulnerability in EC-CUBE can allow an attacker to obtain sensitive information about the application's directory structure. It is crucial for users of affected versions to update to the latest patched versions and review their access control mechanisms. Implementing proper input validation and sanitization can help prevent directory traversal attacks. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for ec-cube/ec-cube →

Share this vulnerability

FAQ

A directory traversal vulnerability allows an attacker to access files or directories outside the intended directory by manipulating input parameters.

The vulnerability can lead to unauthorized access to sensitive files, disclosure of sensitive information, and potential further exploitation of the affected system.

EC-CUBE versions 3.0.0 to 3.0.18-p4 and 4.0.0 to 4.1.2 are affected by this vulnerability. Users of these versions should update to the latest patched versions.

There are no known public exploits for this vulnerability at the time of this report. However, it is important to apply the recommended patches and security updates to mitigate the risk.

You can use the Vulert Playground (https://vulert.com/scanner) to check if your EC-CUBE installation is affected by this vulnerability. Simply upload your composer.lock file to the playground and it will analyze and provide information about any vulnerabilities.

Related vulnerabilities

Recent vulnerabilities recorded for ec-cube/ec-cube.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback