CVE-2021-41749 Code Injection in SEOmatic

Critical 9.8 Published Updated

Unauthenticated attackers can achieve remote code execution 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-2021-41749?

CVE-2021-41749 is a critical code injection vulnerability in n/a, published on 12 Jun 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

In the SEOmatic plugin up to 3.4.11 for Craft CMS 3, it is possible for unauthenticated attackers to perform a Server-Side Template Injection, allowing for remote code execution.

Weakness: CWE-94

Which versions are affected by CVE-2021-41749?

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

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

Products include Nystudio107 Seomatic.

How do I fix CVE-2021-41749?

Upgrade nystudio107/craft-seomatic to 3.4.11 or later.

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

Is CVE-2021-41749 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2021-41749 exists.

Public exploit code: 1 Nuclei template.

Sources

Also known as GHSA-g7xr-v82w-qggq.

Is CVE-2021-41749 in your software?

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

Check your SBOMs for free