CVE-2024-36694: Opencart/opencart OpenCart Server-Side Template Injection (SSTI) Vulnerability
MODERATECVE-2024-36694 is a MODERATE (CVSS 8.0) opencart server-side template injection (ssti) vulnerability (CWE-94: Improper Control of Generation of Code ('Code Injection')) affecting Opencart/opencart libraries in the Packagist ecosystem. The issue involves opencart server-side template injection (ssti) vulnerability. Remediation is available in the latest vendor maintenance releases.
CVE-2024-36694 at a Glance
Security Impact
CVSS: 8.0
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:H).
How to Fix CVE-2024-36694
To remediate this vulnerability, upgrade all affected Opencart/opencart dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade opencart/opencart to Latest secure release
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for opencart/opencart
How to Check if You Are Affected
To determine whether your application is affected by CVE-2024-36694, inspect your project dependencies for Opencart/opencart:
inspect dependencies for opencart/opencart
Analyze the terminal output to locate any version of Opencart/opencart in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-94: Improper Control of Generation of Code ('Code Injection'), where the product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment. In Opencart/opencart, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2024-36694 Affected Opencart/opencart Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
opencart/opencart
|
Packagist |
≤ 4.0.2.3
|
|
References
Frequently Asked Questions
What is CVE-2024-36694?
Which Opencart/opencart versions are affected?
What version fixes CVE-2024-36694?
Is opencart/opencart affected?
What is the CVSS score of CVE-2024-36694?
What CWE is associated with CVE-2024-36694?
How can I check Packagist dependencies for CVE-2024-36694?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-xrh7-2gfq-4rcq",
"modified" : "2024-12-18T22:03:16Z",
"published" : "2024-07-17T21:31:38Z",
"aliases" : [ "CVE-2024-36694" ],
"summary" : "openCart Server-Side Template Injection (SSTI) vulnerability",
"details" : "A Server-Side Template Injection (SSTI) vulnerability in the Theme Editor Function of openCart project v4.0.2.3 allows attackers to execute arbitrary code via injecting a crafted payload.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:H"
}, {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:H/AT:N/PR:H/UI:N/VC:N/VI:N/VA:N/SC:H/SI:H/SA:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "opencart/opencart"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"last_affected" : "4.0.2.3"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-36694"
}, {
"type" : "WEB",
"url" : "https://github.com/opencart/opencart/issues/13863"
}, {
"type" : "WEB",
"url" : "https://github.com/A3h1nt/CVEs/blob/main/OpenCart/Readme.md"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/opencart/opencart"
}, {
"type" : "WEB",
"url" : "https://github.com/opencart/opencart/releases/tag/4.0.2.3"
}, {
"type" : "WEB",
"url" : "https://medium.com/@pawarit.sanguanpang/opencart-v4-0-2-3-server-side-template-injection-0b173a3bdcf9"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-1336", "CWE-94" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2024-07-17T23:36:49Z",
"nvd_published_at" : "2024-07-17T19:15:11Z"
}
}