Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. opencart/opencart
  4. ›
  5. CVE-2024-40420

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

July 17, 2024 (updated November 18, 2024)

A Server-Side Template Injection (SSTI) vulnerability in the edit theme function of openCart project v4.0.2.3 allows attackers to execute arbitrary code via injecting a crafted payload.

References

  • github.com/A3h1nt/CVEs/blob/main/OpenCart/Readme.md
  • github.com/advisories/GHSA-xrh7-2gfq-4rcq
  • github.com/opencart/opencart
  • nvd.nist.gov/vuln/detail/CVE-2024-40420

Code Behaviors & Features

Detect and mitigate CVE-2024-40420 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions up to 4.0.2.3

Solution

Unfortunately, there is no solution available yet.

Impact 8 HIGH

CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-1336: Improper Neutralization of Special Elements Used in a Template Engine
  • CWE-94: Improper Control of Generation of Code ('Code Injection')

Source file

packagist/opencart/opencart/CVE-2024-40420.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:45 +0000.