CVE-2024-35191 verbb/formie Server-Side Template Injection for variable-enabled settings
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.
| Package | Affected | Fixed in |
|---|---|---|
verbb/formie Packagist | All versions | 2.1.6 |
verbb/formie Packagist | All versions | 2.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.
Other vulnerabilities in verbb formie
Sources
Also known as GHSA-v45m-hxqp-fwf5.