CVE-2021-40219 Code Injection in Bolt CMS

High 8.8 Published Updated

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.

PackageAffectedFixed in
bolt/core PackagistAll versions to 4.2None
bolt/core PackagistAll versions to 4.2None

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.

Sources

Also known as GHSA-gprh-7767-cw39.

Is CVE-2021-40219 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free