OpenCart Server-Side Template Injection Vulnerability in OpenCart 4.0.2.3

opencart/opencart Updated 02 Oct 2025

Summary

18/12/2024
HIGH
No i
High
7.2

GHSA-j2v2-3784-vr44: Duplicate Advisory: openCart Server-Side Template Injection (SSTI) vulnerability. Affects opencart/opencart versions < 4.0.2.3. 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 MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

OpenCart is a popular open-source e-commerce platform that allows users to create and manage online stores. It provides a range of features including product management, order processing, and customer management. The platform is built on PHP and utilizes a modular architecture, making it extensible and customizable. However, OpenCart 4.0.2.3 has been identified with a Server-Side Template Injection (SSTI) vulnerability, which can potentially allow attackers to execute arbitrary code on the server.

Vulnerability Detail

The vulnerability in OpenCart 4.0.2.3 arises from improper handling of user input in the Theme Editor Function. This flaw allows an attacker to inject malicious template code, which can be executed on the server side. The ramifications of this vulnerability are significant, as it could lead to unauthorized access, data leakage, or complete server compromise. The vulnerability is classified as moderate in severity, indicating that while it may not be critical, it poses a serious risk that should be addressed promptly.

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 disable the Theme Editor functionality until a patch is applied. This can be done by modifying the configuration settings in the OpenCart admin panel to restrict access to the Theme Editor.

Conclusion

The Server-Side Template Injection vulnerability in OpenCart 4.0.2.3 poses a moderate risk to users of the platform. It is crucial for users to update their installations to the latest version to mitigate this risk. Additionally, utilizing tools like Vulert can help monitor for vulnerabilities in real-time, ensuring that your application remains secure.

See every vulnerability recorded for opencart/opencart →

Share this vulnerability

FAQ

SSTI is a type of vulnerability that allows an attacker to inject and execute template code on the server, potentially leading to unauthorized access or data manipulation.

If you are using OpenCart version 4.0.2.3, your installation is vulnerable. You can also use Vulert to check for vulnerabilities in your application without needing to install any software.

The risks include unauthorized access to the server, data leakage, and the potential for attackers to execute arbitrary code, which could compromise the entire system.

Yes, users are advised to update to the latest version of OpenCart to mitigate this vulnerability.

Vulert uses your composer.lock file to monitor and alert you in real-time for open-source vulnerabilities, allowing you to stay informed about potential risks.

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