{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "versions": [
              {
                "introduced": "0"
              },
              {
                "last_affected": "3.7.59"
              }
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "last_affected": "b3e6247db27b315615c02dad6dab89ecd9233d89"
            }
          ],
          "repo": "https://github.com/craftcms/cms",
          "type": "GIT"
        }
      ]
    }
  ],
  "details": "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.",
  "id": "CVE-2023-30179",
  "modified": "2026-03-14T13:52:02.724901340Z",
  "published": "2023-06-13T17:15:14.600Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/craftcms/cms/blob/develop/CHANGELOG.md#442---2023-03-14"
    },
    {
      "type": "FIX",
      "url": "https://github.com/github/advisory-database/pull/2443#issuecomment-1610040714"
    },
    {
      "type": "FIX",
      "url": "https://github.com/github/advisory-database/pull/2443#issuecomment-1610634200"
    },
    {
      "type": "EVIDENCE",
      "url": "https://datnlq.gitbook.io/cve/craft-cms/cve-2023-30179-server-side-template-injection"
    }
  ],
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H",
      "type": "CVSS_V3"
    }
  ]
}