CVE-2023-30179

high

Description

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. NOTE: the vendor disputes this because only Administrators can add this Twig code, and (by design) Administrators are allowed to do that by default.

References

https://github.com/github/advisory-database/pull/2443#issuecomment-1610634200

https://github.com/github/advisory-database/pull/2443#issuecomment-1610040714

https://github.com/craftcms/cms/blob/develop/CHANGELOG.md#442---2023-03-14

https://datnlq.gitbook.io/cve/craft-cms/cve-2023-30179-server-side-template-injection

Details

Source: Mitre, NVD

Published: 2023-06-13

Updated: 2026-06-17

Risk Information

CVSS v2

Base Score: 8.3

Vector: CVSS2#AV:N/AC:L/Au:M/C:C/I:C/A:C

Severity: High

CVSS v3

Base Score: 7.2

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

Severity: High

EPSS

EPSS: 0.11516