Every CVE Search/ Get API key

CVE-2011-1028

Smarty3 Arbitrary PHP Code Execution

9.8 CriticalFix available

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.

Attack profile

How easy it is to exploit

Attack vector
Network
Complexity
Low
Privileges needed
None
User interaction
None

What an attacker can affect

Confidentiality
High
Integrity
High
Availability
High

Exploit likelihood

1.61%Up 0.7 points since Feb 4, 2022
90%50%10%1%

What each source reports

NVD Score used 9.8

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.

Record
CVE-2011-1028
CVSS 3.1
9.8 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS 2.0
7.5 HighAV:N/AC:L/Au:N/C:P/I:P/A:P
Weakness
CWE-20
Updated
2026-11-02
CVE List No score

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.

Record
CVE-2011-1028
Updated
2026-11-02
EUVDEUVD-2022-1647 No score

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.

Record
EUVD-2022-1647
Updated
2026-11-03
GitHub AdvisoriesGHSA-6frx-2r5w-c524 9.8

Smarty3 Arbitrary PHP Code Execution

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.

Record
GHSA-6frx-2r5w-c524
CVSS 3.1
9.8 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness
CWE-20
Updated
2026-11-02
OSV 9.8

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.

Record
CVE-2011-1028
CVSS 3.1
9.8 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Updated
2026-11-02
OSVDEBIAN-CVE-2011-1028 9.8

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.

Record
DEBIAN-CVE-2011-1028
CVSS 3.1
9.8 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Updated
2026-11-02
OSVGHSA-6frx-2r5w-c524 9.8

Smarty3 Arbitrary PHP Code Execution

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.

Record
GHSA-6frx-2r5w-c524
CVSS 3.1
9.8 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness
CWE-20
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
smarty/smarty
Packagist
before 3.0.7
3.0.7
smarty3
Debian:12
before 3.0.8-1
3.0.8-1
smarty3
Debian:13
before 3.0.8-1
3.0.8-1
smarty3
Debian:14
before 3.0.8-1
3.0.8-1
smarty/smarty
Packagist
before 3.0.7, plus listed versions
v2.6.24v2.6.25v2.6.26v2.6.27v2.6.28
Show 4 moreShow less
v2.6.29v2.6.30v2.6.31v2.6.33
3.0.7

History

History
RecordedChangedSources
aliasesEUVD
first indexedCVE List, GitHub Advisories, NVD, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2011-1028 is a critical vulnerability (CVSS 9.8) in Smarty, published November 20, 2019. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 1.61%, the 76th percentile. Fixed in smarty/smarty 3.0.7.

References

MoveEnter Open