Miggo Logo

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

9.8

CVSS Score
3.1

Basic Information

EPSS Score
0.90148%
Published
11/10/2021
Updated
1/28/2023
KEV Status
No
Technology
TechnologyJava

Technical Details

CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Package NameEcosystemVulnerable VersionsFirst Patched Version
org.thymeleaf:thymeleaf-spring5maven<= 3.0.12.RELEASE3.0.13.RELEASE

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The GitHub issue comment explicitly references the render function in AjaxThymeleafView.java as the injection point. This aligns with the CWE-94 pattern where unvalidated user input flows into template resolution. The function's role in handling dynamic template names makes it a logical vector for expression injection attacks. The direct reference in the vulnerability report and consistency with Thymeleaf's template processing mechanics support high confidence.

Vulnerable functions

Only Mi**o us*rs **n s** t*is s**tion

WAF Protection Rules

WAF Rule

In t** t*ym*l***-sprin**:*.*.** *ompon*nt, t*ym*l*** *om*in** wit* sp**i*i* s**n*rios in t*mpl*t* inj**tion m*y l*** to r*mot* *o** *x**ution.

Reasoning

T** *it*u* issu* *omm*nt *xpli*itly r***r*n**s t** r*n**r *un*tion in *j*xT*ym*l***Vi*w.j*v* *s t** inj**tion point. T*is *li*ns wit* t** *W*-** p*tt*rn w**r* unv*li**t** us*r input *lows into t*mpl*t* r*solution. T** *un*tion's rol* in **n*lin* *yn*