{"id":"CVE-2021-40219","aliases":["EUVD-2022-1744","GHSA-gprh-7767-cw39"],"status":"published","title":"Code Injection in Bolt CMS","description":"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.","severity":{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-11","score":0.03428,"percentile":0.89085,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":false},"cwes":["CWE-94"],"published":"2022-04-11T16:45:54Z","modified":"2026-10-24T02:47:30Z","affected":[{"source":"ghsa","ecosystem":"Packagist","package":"bolt/core","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"4.2"}]}]},{"source":"osv","ecosystem":"Packagist","package":"bolt/core","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"4.2"}]}],"versions":["1.0.0-alpha1","4.0.0","4.0.0-alpha3","4.0.0-beta.1","4.0.0-beta.1.1","4.0.0-beta.1.2","4.0.0-beta.1.3","4.0.0-beta.1.4","4.0.0-beta.1.5","4.0.0-beta.1.6","4.0.0-beta.1.7","4.0.0-beta.1.8","4.0.0-beta.2","4.0.0-beta.2.1","4.0.0-beta.2.10","4.0.0-beta.2.2","4.0.0-beta.2.3","4.0.0-beta.2.4","4.0.0-beta.2.5","4.0.0-beta.2.6","4.0.0-beta.2.7","4.0.0-beta.2.8","4.0.0-beta.2.9","4.0.0-beta.3","4.0.0-beta.3.1","4.0.0-beta.3.2","4.0.0-beta.3.3","4.0.0-beta.3.4","4.0.0-beta.3.5","4.0.0-beta.3.6","4.0.0-beta.3.7","4.0.0-beta.3.8","4.0.0-beta.4","4.0.0-beta.4.1","4.0.0-beta.4.2","4.0.0-beta.4.3","4.0.0-beta.4.4","4.0.0-beta.4.5","4.0.0-beta.4.6","4.0.0-beta.5","4.0.0-beta.5.1","4.0.0-beta.5.2","4.0.0-beta.5.3","4.0.0-beta.5.4","4.0.0-beta.5.5","4.0.0-beta.5.6","4.0.0-beta.5.7","4.0.0-beta.5.8","4.0.0-beta.5.9","4.0.0-rc.1","4.0.0-rc.10","4.0.0-rc.11","4.0.0-rc.12","4.0.0-rc.13","4.0.0-rc.14","4.0.0-rc.15","4.0.0-rc.16","4.0.0-rc.17","4.0.0-rc.18","4.0.0-rc.19","4.0.0-rc.2","4.0.0-rc.20","4.0.0-rc.21","4.0.0-rc.22","4.0.0-rc.23","4.0.0-rc.24","4.0.0-rc.25","4.0.0-rc.26","4.0.0-rc.27","4.0.0-rc.28","4.0.0-rc.29","4.0.0-rc.3","4.0.0-rc.31","4.0.0-rc.32","4.0.0-rc.33","4.0.0-rc.34","4.0.0-rc.35","4.0.0-rc.37","4.0.0-rc.39","4.0.0-rc.4","4.0.0-rc.40","4.0.0-rc.41","4.0.0-rc.42","4.0.0-rc.43","4.0.0-rc.44","4.0.0-rc.5","4.0.0-rc.6","4.0.0-rc.7","4.0.0-rc.8","4.0.0-rc.9","4.0.1","4.1.0","4.1.10","4.1.11","4.1.12","4.1.13","4.1.14","4.1.15","4.1.16","4.1.17","4.1.18","4.1.19","4.1.2","4.1.20","4.1.21","4.1.21.1","4.1.22","4.1.23","4.1.3","4.1.4","4.1.5","4.1.6","4.1.7","4.1.7.1","4.1.8","4.1.9"]}],"products":[{"vendor":"bolt","product":"bolt_cms"}],"references":[{"url":"https://github.com/bolt/core","tags":["x_refsource_MISC","x_transferred","Third Party Advisory","advisory","package"]},{"url":"https://github.com/bolt/core/blob/3b21a73ebf519b76756d3ad2841312d10ef11461/src/Controller/Frontend/TemplateController.php","tags":["x_refsource_MISC","x_transferred","Exploit","Third Party Advisory","evidence","web"]},{"url":"https://github.com/iiSiLvEr/CVEs/tree/main/CVE-2021-40219","tags":["x_refsource_MISC","x_transferred","Exploit","Third Party Advisory","evidence","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-40219","tags":["advisory"]},{"url":"http://boltcms.com","tags":["web"]},{"url":"https://github.com/advisories/GHSA-gprh-7767-cw39"}],"sources":{"cve":[{"id":"CVE-2021-40219","description":"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.","status":"published","published":"2022-04-11T16:45:54Z","modified":"2026-07-09T00:14:42.84Z","updated_at":"2026-11-02T14:33:01.495293Z"}],"euvd":[{"id":"EUVD-2022-1744","description":"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.","status":"published","published":"2022-04-11T16:45:54Z","modified":"2026-07-09T00:14:42Z","updated_at":"2026-11-02T18:20:08.60883Z"}],"ghsa":[{"id":"GHSA-gprh-7767-cw39","title":"Code Injection in Bolt CMS","description":"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.","status":"published","published":"2022-04-12T00:00:34Z","modified":"2023-01-27T05:01:42Z","cvss":[{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"cwes":["CWE-94"],"updated_at":"2026-11-02T14:36:16.28305Z"}],"nvd":[{"id":"CVE-2021-40219","description":"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.","status":"published","published":"2022-04-11T17:15:08.027Z","modified":"2026-07-09T01:17:01.673Z","cvss":[{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high","assessor":"primary"},{"version":"2.0","score":6.5,"vector":"AV:N/AC:L/Au:S/C:P/I:P/A:P","level":"medium","assessor":"primary"}],"cwes":["CWE-94"],"updated_at":"2026-11-02T14:07:05.581807Z"}],"osv":[{"id":"CVE-2021-40219","description":"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.","status":"published","published":"2022-04-11T17:15:08.027Z","modified":"2026-10-24T02:47:30.930754196Z","cvss":[{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:44:21.249056Z"},{"id":"GHSA-gprh-7767-cw39","title":"Code Injection in Bolt CMS","description":"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.","status":"published","published":"2022-04-12T00:00:34Z","modified":"2023-11-08T04:06:46.785466Z","cvss":[{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"cwes":["CWE-94"],"updated_at":"2026-11-02T15:46:48.191583Z"}]}}
