CVE-2021-40219 json
Code Injection in Bolt CMS
published 2022-04-11 4 y ago modified 2026-07-09 4 mo ago also GHSA-gprh-7767-cw39 , EUVD-2022-1744
- cvss
- 8.8
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 3.4%
- EPSS 3.4% chance of exploitation in 30 days, percentile 89%
- public exploits
- 0
- none known
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.
Exploit prediction
3.43% chance of exploitation in the next 30 days, higher than 89% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/bolt/core/blob/3b21a73ebf519b76756d3ad2841312d10ef11461/src/Controller/Frontend/TemplateController.php referenced PoC, tagged "exploit" by a source, unverified
- github.com https://github.com/iiSiLvEr/CVEs/tree/main/CVE-2021-40219 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 6.5 | AV:N/AC:L/Au:S/C:P/I:P/A:P |
| GitHub | 3.1 | 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| packagist | bolt/core | <=4.2 |
no fix listed |
Classification
- Weakness
-
- CWE-94 Improper Control of Generation of Code
References
-
github.com
/bolt/core/blob/3b21a73ebf519b76756d3ad2841312d10ef11461/src/Controller/Frontend/TemplateController.php
web, exploit, third-party-advisory
-
github.com
/iiSiLvEr/CVEs/tree/main/CVE-2021-40219
web, exploit, third-party-advisory
-
github.com
/bolt/core
package, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2021-40219
advisory
-
boltcms.com
web
Sources
- CVE List CVE-2021-40219
- GitHub Advisory GHSA-gprh-7767-cw39
- NVD CVE-2021-40219
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.