OpenCart Path Traversal Vulnerability in opencart/opencart

opencart/opencart Updated 02 Oct 2025

Summary

14/05/2022
No i
Moderate
4.9

CVE-2018-11495: OpenCart Path Traversal. Affects opencart/opencart versions < 3.0.2.0. 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 Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

OpenCart is an open-source e-commerce platform that allows users to create and manage online stores. It provides various features for product management, order processing, and customer management. The vulnerability affects OpenCart versions up to 3.0.2.0.

Vulnerability Detail

The OpenCart Path Traversal vulnerability allows an attacker to perform directory traversal attacks through the editDownload function in admin\model\catalog\download.php. By exploiting this vulnerability, an attacker can manipulate the download_id parameter in the URL (admin/index.php?route=catalog/download/edit) to download sensitive files outside the intended directory. For example, an attacker can download ../../config.php, which may contain sensitive information such as database credentials.

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

If upgrading to a patched version is not immediately feasible, users can implement a temporary workaround by modifying the affected file (admin\model\catalog\download.php). The following code snippet can be added to the editDownload function to sanitize the download_id parameter:

$download_id = str_replace(array('../', '..\', '..'), '', $download_id);

Conclusion

The OpenCart Path Traversal vulnerability allows attackers to download sensitive files from the server. It is crucial to upgrade to a patched version of OpenCart (3.0.2.1 or later) to mitigate this vulnerability. If immediate upgrading is not possible, implementing the provided workaround can help protect the system. For further support on vulnerability remediation, you can contact DevNack.com.

See every vulnerability recorded for opencart/opencart →

Share this vulnerability

FAQ

OpenCart is an open-source e-commerce platform that allows users to create and manage online stores.

This vulnerability allows an attacker to download sensitive files from the server, potentially exposing sensitive information such as database credentials.

To fix this vulnerability, it is recommended to upgrade to OpenCart version 3.0.2.1 or any subsequent version that includes the fix.

Yes, if upgrading to a patched version is not immediately feasible, users can implement a temporary workaround by modifying the affected file (admin\model\catalog\download.php). The provided code snippet can be added to sanitize the download_id parameter.

For more information about this vulnerability, you can refer to the official GitHub advisory database or contact the OpenCart development team.

Related vulnerabilities

Recent vulnerabilities recorded for opencart/opencart.

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