CVE-2018-14716 SEOmatic plugin for Craft CMS SSTI Vulnerability

High 7.5 Published Updated

Attacker can execute arbitrary Twig code via Server Side Template Injection in SEOmatic plugin for Craft CMS.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2018-14716?

CVE-2018-14716 is a high-severity code injection vulnerability in n/a, published on 6 Aug 2018. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

A Server Side Template Injection (SSTI) was discovered in the SEOmatic plugin before 3.1.4 for Craft CMS, because requests that don't match any elements incorrectly generate the canonicalUrl, and can lead to execution of Twig code.

Weakness: CWE-94

Which versions are affected by CVE-2018-14716?

2 open source packages ship an affected version, including nystudio107/craft-seomatic. It affects 1 product.

PackageAffectedFixed in
nystudio107/craft-seomatic PackagistAll versions3.1.4
nystudio107/craft-seomatic PackagistAll versions3.1.4

Products include Nystudio107 Seomatic.

How do I fix CVE-2018-14716?

Upgrade nystudio107/craft-seomatic to 3.1.4 or later.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2018-14716 being exploited?

There is no known exploitation of CVE-2018-14716 in the wild and no public exploit code.

Public exploit code: 1 Exploit-DB entry and 1 proofs of concept on GitHub.

Sources

Also known as GHSA-6j9m-rp7m-3gfg.

Is CVE-2018-14716 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free