CVE-2020-12790 SEOmatic for CraftCMS allows Server-Side Template Injection

High 7.5 Published Updated

Attackers can execute arbitrary code and disclose credentials via Server-Side Template Injection in the 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-2020-12790?

CVE-2020-12790 is a high-severity code injection vulnerability in n/a, published on 11 May 2020. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

In the SEOmatic plugin before 3.2.49 for Craft CMS, helpers/DynamicMeta.php does not properly sanitize the URL. This leads to Server-Side Template Injection and credentials disclosure via a crafted Twig template after a semicolon.

Weakness: CWE-74

Which versions are affected by CVE-2020-12790?

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

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

Products include Nystudio107 Seomatic.

How do I fix CVE-2020-12790?

Upgrade nystudio107/craft-seomatic to 3.2.49 or later.

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

Is CVE-2020-12790 being exploited?

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

Sources

Also known as GHSA-23q7-59jj-2pj4.

Is CVE-2020-12790 in your software?

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

Check your SBOMs for free