CVE-2018-20465: Craft CMS Vulnerable to Server-Side Template Injection
7.2
CVSS Score
3.0
Basic Information
CVE ID
GHSA ID
EPSS Score
0.70265%
CWE
Published
5/13/2022
Updated
4/25/2024
KEV Status
No
Technology
PHP
Technical Details
CVSS Vector
CVSS:3.0/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
craftcms/cms | composer | <= 3.0.34 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from unsanitized Twig template evaluation in the URI Format field. Craft CMS's View::renderString()
is the primary Twig rendering function that would execute user-provided template code (like {% ... %} blocks). The Sites::saveSite()
method is implicated because it processes the vulnerable URI Format input without neutralizing template syntax. The high confidence in View::renderString()
comes from its direct role in template evaluation, while Sites::saveSite()
has medium confidence due to inferred input handling without explicit code evidence.