CVE-2021-40219 Code Injection in Bolt CMS
An authenticated attacker can inject server-side templates into themes to achieve remote code execution in Bolt CMS.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2021-40219?
CVE-2021-40219 is a high-severity code injection vulnerability in n/a, published on 11 Apr 2022. Any signed-in user can exploit it over the network, with no action from the victim.
Official 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.
Weakness: CWE-94
Which versions are affected by CVE-2021-40219?
2 open source packages ship an affected version, including bolt/core. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
bolt/core Packagist | All versions to 4.2 | None |
bolt/core Packagist | All versions to 4.2 | None |
Products include Bolt Bolt Cms.
How do I fix CVE-2021-40219?
No fix has been published for CVE-2021-40219 yet. Limit exposure of the affected software until one is available.
Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.
Is CVE-2021-40219 being exploited?
There is no known exploitation of CVE-2021-40219 in the wild and no public exploit code.
Other vulnerabilities in n/a
Sources
Also known as GHSA-gprh-7767-cw39.