CVE-2011-1028 Smarty3 Arbitrary PHP Code Execution
Attackers can execute arbitrary PHP code via the $smarty.template variable in the Smarty3 template engine library.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2011-1028?
CVE-2011-1028 is a critical code injection vulnerability in Debian Debian Linux, published on 20 Nov 2019. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
The $smarty.template variable in Smarty3 allows attackers to possibly execute arbitrary PHP code via the sysplugins/smarty_internal_compile_private_special_variable.php file.
Weakness: CWE-20
Which versions are affected by CVE-2011-1028?
2 open source packages ship an affected version, including smarty/smarty. It affects 2 products.
| Package | Affected | Fixed in |
|---|---|---|
smarty/smarty Packagist | All versions | 3.0.7 |
smarty/smarty Packagist | All versions | 3.0.7 |
Products include Debian Debian Linux, Smarty Smarty.
How do I fix CVE-2011-1028?
Upgrade smarty/smarty to 3.0.7 or later.
Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.
Is CVE-2011-1028 being exploited?
There is no known exploitation of CVE-2011-1028 in the wild and no public exploit code.
Other vulnerabilities in Debian Debian Linux
Sources
Also known as DEBIAN-CVE-2011-1028, GHSA-6frx-2r5w-c524.