# CVE-2021-43466: Template injection in thymeleaf-spring5

- Severity: Critical 9.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 3.99%, higher than 90% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-11-09T00:00:00.000Z
- Modified: 2026-06-17T04:11:01.003Z
- Also known as: GHSA-qcj6-jqrg-4wp2
- Weaknesses: CWE-94
- Assigned by: mitre

## Description

In the thymeleaf-spring5:3.0.12 component, thymeleaf combined with specific scenarios in template injection may lead to remote code execution.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- org.thymeleaf:thymeleaf-spring5 (Maven): before 3.0.13.RELEASE
- thymeleaf thymeleaf: 3.0.12

## Every score

- GitHub: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 6.8 Medium `AV:N/AC:M/Au:N/C:P/I:P/A:P`

## References

- <https://gitee.com/wayne_wwang/wayne_wwang/blob/master/2021/10/31/ruoyi+thymeleaf-rce/index.html> (exploit, third-party-advisory, web)
- <https://vuldb.com/?id.186365> (third-party-advisory, web)
- <https://security.netapp.com/advisory/ntap-20221014-0001/> (third-party-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-43466> (advisory)
- <https://github.com/thymeleaf/thymeleaf-spring/issues/263#issuecomment-977199524> (web)
- <https://github.com/thymeleaf/thymeleaf-spring> (package)
- <https://security.netapp.com/advisory/ntap-20221014-0001> (web)

## Sources

- CVE List: [CVE-2021-43466](https://www.cve.org/CVERecord?id=CVE-2021-43466), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-qcj6-jqrg-4wp2](https://github.com/advisories/GHSA-qcj6-jqrg-4wp2), CC-BY-4.0, modified 2024-02-20
- NVD: [CVE-2021-43466](https://nvd.nist.gov/vuln/detail/CVE-2021-43466), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-43466 · Whole record: https://cve.day/CVE-2021-43466.json · Rebuilt by cve.day 2026-11-25T22:24:35.944Z
