CVE-2024-35191 verbb/formie Server-Side Template Injection for variable-enabled settings

Medium 4.4 Published Updated

Users with form settings access can inject malicious Twig code into fields, leading to remote code execution upon submission or rendering.

Exploited in the wild
Not known
Login needed
An administrator
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2024-35191?

CVE-2024-35191 is a medium-severity code injection vulnerability in verbb formie, published on 20 May 2024. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

Formie is a Craft CMS plugin for creating forms. Prior to 2.1.6, users with access to a form's settings can include malicious Twig code into fields that support Twig. These might be the Submission Title or the Success Message. This code will then be executed upon creating a submission, or rendering the text. This has been fixed in Formie 2.1.6.

Weakness: CWE-1336

Which versions are affected by CVE-2024-35191?

2 open source packages ship an affected version, including verbb/formie. It affects 1 product.

PackageAffectedFixed in
verbb/formie PackagistAll versions2.1.6
verbb/formie PackagistAll versions2.1.6

Products include Verbb Formie.

How do I fix CVE-2024-35191?

Upgrade verbb/formie to 2.1.6 or later.

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

Is CVE-2024-35191 being exploited?

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

Sources

Also known as GHSA-v45m-hxqp-fwf5.

Is CVE-2024-35191 in your software?

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

Check your SBOMs for free