CVE-2020-11056 Potential Code Injection in Sprout Forms
Attackers can execute arbitrary Twig code via custom fields in notification emails, potentially compromising the server.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2020-11056?
CVE-2020-11056 is a high-severity code injection vulnerability in barrelstrength Sprout Forms, published on 7 May 2020. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
In Sprout Forms before 3.9.0, there is a potential Server-Side Template Injection vulnerability when using custom fields in Notification Emails which could lead to the execution of Twig code. This has been fixed in 3.9.0.
Which versions are affected by CVE-2020-11056?
4 open source packages ship an affected version, including barrelstrength/sprout-forms and barrelstrength/sprout-base-email. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
barrelstrength/sprout-forms Packagist | All versions | 3.9.0 |
barrelstrength/sprout-forms Packagist | All versions | 3.9.0 |
barrelstrength/sprout-base-email Packagist | All versions | 1.2.7 |
barrelstrength/sprout-base-email Packagist | All versions | 1.2.7 |
Products include Barrelstrengthdesign Sprout Forms.
How do I fix CVE-2020-11056?
Upgrade barrelstrength/sprout-forms to 3.9.0 or later.
Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.
Is CVE-2020-11056 being exploited?
There is no known exploitation of CVE-2020-11056 in the wild and no public exploit code.
Sources
Also known as GHSA-px8v-hxxx-2rgh.