Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. craftcms/cms
  4. ›
  5. CVE-2023-30179

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

June 13, 2023 (updated November 9, 2023)

CraftCMS version 3.7.59 is vulnerable to Server-Side Template Injection (SSTI). An authenticated attacker can inject Twig Template to User Photo Location field when setting User Photo Location in User Settings, lead to Remote Code Execution.

References

  • datnlq.gitbook.io/cve/craft-cms/cve-2023-30179-server-side-template-injection
  • github.com/craftcms/cms/blob/develop/CHANGELOG.md
  • nvd.nist.gov/vuln/detail/CVE-2023-30179

Code Behaviors & Features

Detect and mitigate CVE-2023-30179 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 4.4.2

Fixed versions

  • 4.4.2

Solution

Upgrade to version 4.4.2 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/craftcms/cms/CVE-2023-30179.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Sun, 08 Nov 2026 00:17:08 +0000.