CVE-2021-43466 json
Template injection in thymeleaf-spring5
published 2021-11-09 5 y ago modified 2026-06-17 4 mo ago also GHSA-qcj6-jqrg-4wp2 , EUVD-2021-2380
- cvss
- 9.8
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 4.0%
- EPSS 4.0% chance of exploitation in 30 days, percentile 90%
- public exploits
- 0
- none known
Summary
In the thymeleaf-spring5:3.0.12 component, thymeleaf combined with specific scenarios in template injection may lead to remote code execution.
Patch / fix
- maven org.thymeleaf:thymeleaf-spring5 3.0.13.RELEASE
Exploit prediction
3.99% chance of exploitation in the next 30 days, higher than 90% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- gitee.com https://gitee.com/wayne_wwang/wayne_wwang/blob/master/2021/10/31/ruoyi+thymeleaf-rce/index.html referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 6.8 | AV:N/AC:M/Au:N/C:P/I:P/A:P |
| GitHub | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| maven | org.thymeleaf:thymeleaf-spring5 | <3.0.13.RELEASE |
3.0.13.RELEASE |
Classification
- Weakness
-
- CWE-94 Improper Control of Generation of Code
References
-
gitee.com
/wayne_wwang/wayne_wwang/blob/master/2021/10/31/ruoyi+thymeleaf-rce/index.html
web, exploit, third-party-advisory
-
vuldb.com
/?id.186365
web, third-party-advisory
-
security.netapp.com
/advisory/ntap-20221014-0001/
third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2021-43466
advisory
-
github.com
/thymeleaf/thymeleaf-spring/issues/263#issuecomment-977199524
web
-
github.com
/thymeleaf/thymeleaf-spring
package
-
security.netapp.com
/advisory/ntap-20221014-0001
web
Sources
- CVE List CVE-2021-43466
- GitHub Advisory GHSA-qcj6-jqrg-4wp2
- NVD CVE-2021-43466
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.