{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "cpe": "cpe:2.3:a:bolt:bolt_cms:*:*:*:*:*:*:*:*",
                "range": [
                  {
                    "introduced": "0"
                  },
                  {
                    "last_affected": "4.2.0"
                  }
                ],
                "source": "CPE_RANGE"
              }
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "last_affected": "89dd040b440434e60bee9001ca69fa262dce061c"
            }
          ],
          "repo": "https://github.com/bolt/core",
          "type": "GIT"
        }
      ]
    }
  ],
  "database_specific": {},
  "details": "Bolt CMS \u003c= 4.2 is vulnerable to Remote Code Execution. Unsafe theme rendering allows an authenticated attacker to edit theme to inject server-side template injection that leads to remote code execution.",
  "id": "CVE-2021-40219",
  "modified": "2026-10-24T02:30:27.483903057Z",
  "published": "2022-04-11T17:15:08.027Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/bolt/core"
    },
    {
      "type": "EVIDENCE",
      "url": "https://github.com/bolt/core/blob/3b21a73ebf519b76756d3ad2841312d10ef11461/src/Controller/Frontend/TemplateController.php"
    },
    {
      "type": "EVIDENCE",
      "url": "https://github.com/iiSiLvEr/CVEs/tree/main/CVE-2021-40219"
    }
  ],
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
      "type": "CVSS_V3"
    }
  ]
}