# CVE-2021-40219: Code Injection in Bolt CMS

- Severity: High 8.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 3.43%, higher than 89% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2022-04-11T16:45:54.000Z
- Modified: 2026-07-09T01:17:01.673Z
- Also known as: GHSA-gprh-7767-cw39
- Weaknesses: CWE-94
- Assigned by: mitre

## Description

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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- bolt/core (Packagist): up to 4.2
- bolt bolt_cms: up to 4.2.0

## Every score

- GitHub: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 6.5 Medium `AV:N/AC:L/Au:S/C:P/I:P/A:P`

## References

- <https://github.com/bolt/core/blob/3b21a73ebf519b76756d3ad2841312d10ef11461/src/Controller/Frontend/TemplateController.php> (exploit, third-party-advisory, web)
- <https://github.com/iiSiLvEr/CVEs/tree/main/CVE-2021-40219> (exploit, third-party-advisory, web)
- <https://github.com/bolt/core> (package, third-party-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-40219> (advisory)
- <http://boltcms.com> (web)

## Sources

- CVE List: [CVE-2021-40219](https://www.cve.org/CVERecord?id=CVE-2021-40219), CVE Terms of Use, modified 2026-07-09
- GitHub Advisory Database: [GHSA-gprh-7767-cw39](https://github.com/advisories/GHSA-gprh-7767-cw39), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2021-40219](https://nvd.nist.gov/vuln/detail/CVE-2021-40219), Public domain, modified 2026-07-09

---

Page: https://cve.day/CVE-2021-40219 · Whole record: https://cve.day/CVE-2021-40219.json · Rebuilt by cve.day 2026-11-25T22:58:07.359Z
