GHSA-j2v2-3784-vr44: Duplicate Advisory OpenCart Server-Side Template Injection (SSTI) Vulnerability

HIGH
CVSS 7.2
CWE-94
Published
Advisory Summary

GHSA-j2v2-3784-vr44 is a HIGH (CVSS 7.2) opencart server-side template injection (ssti) vulnerability (CWE-94: Improper Control of Generation of Code ('Code Injection')) affecting Duplicate Advisory libraries in the Packagist ecosystem. The issue involves opencart server-side template injection (ssti) vulnerability. Remediation is available in the latest vendor maintenance releases.

GHSA-j2v2-3784-vr44 at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-j2v2-3784-vr44
Severity HIGH
CVSS v3.1 Base Score 7.2
CWE Classification CWE-94: Improper Control of Generation of Code ('Code Injection')
Affected Product Duplicate Advisory
Package Ecosystem Packagist
Published Date
Last Updated

Security Impact

CVSS: 7.2

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required High (PR:H)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (A:H)

How to Fix GHSA-j2v2-3784-vr44

To remediate this vulnerability, upgrade all affected Duplicate Advisory dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

opencart/opencart fixed: Latest secure release
Upgrade opencart/opencart to Latest secure release
Verify Direct and Transitive Dependencies

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 GHSA-j2v2-3784-vr44, inspect your project dependencies for Duplicate Advisory:

inspect dependencies for opencart/opencart

Analyze the terminal output to locate any version of Duplicate Advisory 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 Duplicate Advisory, 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

## Duplicate Advisory This advisory has been withdrawn because it is a duplicate of GHSA-xrh7-2gfq-4rcq. This link is maintained to preserve external references. ## Original Description OpenCart 4.0.2.3 is vulnerable to Server-Side Template Injection (SSTI) via the Theme Editor Function.

GHSA-j2v2-3784-vr44 Affected Duplicate Advisory Versions

1 component(s)
Product / Package Ecosystem Affected Versions Fixed Version
opencart/opencart
Packagist
≤ 4.0.2.3

References

Frequently Asked Questions

What is GHSA-j2v2-3784-vr44?
GHSA-j2v2-3784-vr44 is a security vulnerability in Duplicate Advisory involving openCart Server-Side Template Injection (SSTI) vulnerability under CWE-94: Improper Control of Generation of Code ('Code Injection').
Which Duplicate Advisory versions are affected?
Affected versions include releases prior to current release patches across affected packages: opencart/opencart.
What version fixes GHSA-j2v2-3784-vr44?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is opencart/opencart affected?
Yes, opencart/opencart is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What is the CVSS score of GHSA-j2v2-3784-vr44?
GHSA-j2v2-3784-vr44 has a CVSS v3.1 base score of 7.2 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H.
What CWE is associated with GHSA-j2v2-3784-vr44?
GHSA-j2v2-3784-vr44 is classified under CWE-94: Improper Control of Generation of Code ('Code Injection') (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.).
How can I check Packagist dependencies for GHSA-j2v2-3784-vr44?
Run the dependency tree command: 'inspect dependencies for opencart/opencart'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-j2v2-3784-vr44",
  "modified" : "2025-01-23T23:32:20Z",
  "published" : "2024-12-18T21:30:56Z",
  "withdrawn" : "2024-12-18T22:02:19Z",
  "aliases" : [ ],
  "summary" : "Duplicate Advisory: openCart Server-Side Template Injection (SSTI) vulnerability",
  "details" : "## Duplicate Advisory\nThis advisory has been withdrawn because it is a duplicate of GHSA-xrh7-2gfq-4rcq. This link is maintained to preserve external references.\n\n## Original Description\nOpenCart 4.0.2.3 is vulnerable to Server-Side Template Injection (SSTI) via the Theme Editor Function.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A: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" : "WEB",
    "url" : "https://github.com/PawaritSanguanpang/CVEs/blob/main/OpenCart/CVE-2024-36694/README.md"
  }, {
    "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-94" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-12-18T22:02:19Z",
    "nvd_published_at" : "2024-12-18T20:15:22Z"
  }
}