CVE-2018-14716:
SEOmatic plugin for Craft CMS SSTI Vulnerability
7.5
CVSS ScoreBasic Information
CVE ID
GHSA ID
EPSS Score
-
CWE
Published
5/13/2022
Updated
10/6/2023
KEV Status
No
Technology
PHP
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
nystudio107/craft-seomatic | composer | < 3.1.4 | 3.1.4 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability root cause lies in two key areas:
- In GlobalVars.php, the canonicalUrl was directly configured with a Twig template that incorporated user-controlled pathInfo. This allowed attackers to inject Twig code via crafted URIs.
- In DynamicMeta.php's getLocalizedUrls method, the URL processing lacked critical sanitization steps (query string stripping and protocol enforcement), enabling the injected Twig code to execute. The patch explicitly addresses both points by replacing the dynamic Twig template with a safe helper method and adding sanitization layers in the URL generation logic.