CVE-2024-40420: openCart Server-Side Template Injection (SSTI) Vulnerability

opencart/opencart Updated 02 Oct 2025

Summary

17/07/2024
No i
Moderate
8.0

CVE-2024-40420: 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 Devnack Penetration testing for web, API and mobile 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 such as product management, order processing, and payment integration. The vulnerability in question affects openCart version 4.0.2.3. This version of openCart includes a function to edit themes, which is vulnerable to Server-Side Template Injection (SSTI).

Vulnerability Detail

The Server-Side Template Injection (SSTI) vulnerability in openCart allows attackers to execute arbitrary code by injecting a crafted payload through the edit theme function. This can lead to various security risks, including unauthorized access, data manipulation, and remote code execution. The vulnerability has a CVSS score of 8.0, indicating a high severity level.

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

There is no known workaround for this vulnerability. It is essential to apply the recommended fix by updating to a patched version of openCart.

Conclusion

The Server-Side Template Injection (SSTI) vulnerability in openCart version 4.0.2.3 allows attackers to execute arbitrary code by injecting a crafted payload. To mitigate the risk, users should update their openCart installation to a version beyond 4.0.2.3, which includes a fix for this vulnerability.

See every vulnerability recorded for opencart/opencart →

Share this vulnerability

FAQ

openCart is an open-source e-commerce platform used for creating and managing online stores.

Server-Side Template Injection (SSTI) is a vulnerability that allows an attacker to inject malicious code into server-side templates, leading to code execution and potential security risks.

This vulnerability in openCart can allow attackers to execute arbitrary code, potentially leading to unauthorized access, data manipulation, and remote code execution.

To fix this vulnerability, it is recommended to update openCart to a version beyond 4.0.2.3, which includes a patch for the Server-Side Template Injection (SSTI) vulnerability.

No, there is no known workaround for this vulnerability. It is crucial to apply the recommended fix by updating to a patched version of openCart.

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