Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. ec-cube/ec-cube
  4. ›
  5. CVE-2023-46845

CVE-2023-46845: Improper Control of Generation of Code ('Code Injection')

November 7, 2023 (updated November 15, 2023)

EC-CUBE 3 series (3.0.0 to 3.0.18-p6) and 4 series (4.0.0 to 4.0.6-p3, 4.1.0 to 4.1.2-p2, and 4.2.0 to 4.2.2) contain an arbitrary code execution vulnerability due to improper settings of the template engine Twig included in the product. As a result, arbitrary code may be executed on the server where the product is running by a user with an administrative privilege.

References

  • jvn.jp/en/jp/JVN29195731/
  • nvd.nist.gov/vuln/detail/CVE-2023-46845
  • www.ec-cube.net/info/weakness/20231026/index.php
  • www.ec-cube.net/info/weakness/20231026/index_3.php
  • www.ec-cube.net/info/weakness/20231026/index_40.php

Code Behaviors & Features

Detect and mitigate CVE-2023-46845 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 starting from 3.0.0 up to 3.0.18, all versions starting from 4.0.0 up to 4.0.6, all versions starting from 4.1.0 up to 4.1.2, all versions starting from 4.2.0 before 4.2.3

Fixed versions

  • 4.0.6-p1
  • 4.1.2-p1
  • 4.2.3

Solution

Upgrade to versions 4.0.6-p1, 4.1.2-p1, 4.2.3 or above.

Impact 7.2 HIGH

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

Learn more about CVSS

Weakness

  • CWE-94: Improper Control of Generation of Code ('Code Injection')

Source file

packagist/ec-cube/ec-cube/CVE-2023-46845.yml

Spotted a mistake? Edit the file on GitLab.

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

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