CVE-2021-43466 Template injection in thymeleaf-spring5
Attackers can achieve remote code execution via template injection in the Thymeleaf Spring5 library.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2021-43466?
CVE-2021-43466 is a critical code injection vulnerability in n/a, published on 9 Nov 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
In the thymeleaf-spring5:3.0.12 component, thymeleaf combined with specific scenarios in template injection may lead to remote code execution.
Weakness: CWE-94
Which versions are affected by CVE-2021-43466?
2 open source packages ship an affected version, including org.thymeleaf:thymeleaf-spring5. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
org.thymeleaf:thymeleaf-spring5 Maven | All versions | 3.0.13.RELEASE |
org.thymeleaf:thymeleaf-spring5 Maven | All versions | 3.0.13.RELEASE |
Products include Thymeleaf Thymeleaf.
How do I fix CVE-2021-43466?
Upgrade org.thymeleaf:thymeleaf-spring5 to 3.0.13.RELEASE or later.
Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.
Is CVE-2021-43466 being exploited?
There is no known exploitation of CVE-2021-43466 in the wild and no public exploit code.
Other vulnerabilities in n/a
Sources
Also known as GHSA-qcj6-jqrg-4wp2.