{"id":"CVE-2021-40219","aliases":["CVE-2021-40219","GHSA-gprh-7767-cw39"],"related":[],"kind":"vulnerability","state":"published","title":"Code Injection in Bolt CMS","summary":"Bolt CMS <= 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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Bolt CMS <= 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.","source":"cvelist"},{"lang":"es","text":"Bolt CMS versiones anteriores a 4.2 incluyéndola, es vulnerable a una ejecución de código remota. El renderizado no seguro del tema permite a un atacante autenticado editar el tema para inyectar la plantilla del lado del servidor que conlleva a una ejecución de código remota","source":"nvd"}],"published":"2022-04-11T16:45:54.000Z","modified":"2026-07-09T01:17:01.673Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:S/C:P/I:P/A:P","score":6.5,"rating":"MEDIUM"}],"cwes":["CWE-94"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","lastAffected":"4.2"}],"ecosystem":"Packagist","package":"bolt/core","purl":"pkg:composer/bolt/core","source":"ghsa"},{"ranges":[{"status":"affected","lastAffected":"4.2.0"}],"vendor":"bolt","product":"bolt_cms","cpe":"cpe:2.3:a:bolt:bolt_cms:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/bolt/core","tags":["package","third-party-advisory","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/bolt/core/blob/3b21a73ebf519b76756d3ad2841312d10ef11461/src/Controller/Frontend/TemplateController.php","tags":["exploit","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/iiSiLvEr/CVEs/tree/main/CVE-2021-40219","tags":["exploit","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-40219","tags":["advisory"],"sources":["ghsa"]},{"url":"http://boltcms.com","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"mitre","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-40219","url":"https://www.cve.org/CVERecord?id=CVE-2021-40219","licence":"CVE Terms of Use","modified":"2026-07-09T00:14:42.840Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-gprh-7767-cw39","url":"https://github.com/advisories/GHSA-gprh-7767-cw39","licence":"CC-BY-4.0","modified":"2023-11-08T04:06:46.785Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-40219","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-40219","licence":"Public domain","modified":"2026-07-09T01:17:01.673Z"}],"updatedAt":"2026-11-25T22:58:07.359Z","epss":{"score":0.03428,"percentile":0.89234,"date":"2026-12-01T12:00:22.000Z"}}