CVE-2018-11494: OpenCart Path Traversal

opencart/opencart Updated 02 Oct 2025

Summary

14/05/2022
No i
High
8.0

CVE-2018-11494: 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 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

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 in OpenCart version 3.0.2.0 and below allows attackers to execute arbitrary code by exploiting a path traversal vulnerability in the 'program extension upload' feature. This feature follows a six-step process (upload, install, unzip, move, xml, remove) to handle uploaded extensions. However, if the remove step is skipped, an attacker can discover a secret temporary directory name through a directory traversal attack.

Vulnerability Detail

The path traversal vulnerability in OpenCart allows an attacker to execute arbitrary code on the server. By manipulating the 'language_info['code']' parameter, an attacker can traverse directories and discover the secret temporary directory name. This directory contains the uploaded extension files, and if the remove step is skipped, the attacker can execute arbitrary code by accessing these files. The impact of this vulnerability can be severe, as it allows unauthorized code execution and potential compromise of the server.

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 possible, a temporary workaround is to disable the 'program extension upload' feature in OpenCart. This can be done by modifying the configuration settings or removing the corresponding functionality from the code. However, this workaround may limit the functionality of the platform and should only be considered as a temporary measure until the upgrade can be performed.

Conclusion

The path traversal vulnerability in OpenCart version 3.0.2.0 and below allows attackers to execute arbitrary code on the server. To mitigate this vulnerability, it is recommended to upgrade to a patched version of OpenCart. If immediate upgrade is not possible, disabling the 'program extension upload' feature can be used as a temporary workaround. For further support on vulnerability remediation, you can contact DevNack.com.

See every vulnerability recorded for opencart/opencart →

Share this vulnerability

FAQ

This vulnerability allows attackers to execute arbitrary code on the server, potentially leading to unauthorized access, data compromise, and server compromise.

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

Yes, the OpenCart development team has released a patch for this vulnerability in versions above 3.0.2.0. It is recommended to upgrade to the latest version to ensure you are protected.

Yes, you can disable the 'program extension upload' feature in OpenCart as a temporary workaround. However, this may limit the functionality of the platform and should only be considered until you can upgrade to a patched version.

There are no known public exploits for this vulnerability at the moment. However, it is important to patch your OpenCart installation as soon as possible to prevent any potential attacks.

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