CVE-2011-1028
CRITICAL 9.8CVSS 3.1Smarty3 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.
- Published
- 20 Nov 2019
- Last modified
- 16 Jun 2026
- Assigned by
- secalert@redhat.com
- NVD status
- Modified
- Weakness
- CWE-20
- Also known as
- GHSA-6frx-2r5w-c524
- Sources
- NVDJSONOSV GHSA-6frx-2r5w-c524JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | HIGH 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | smarty | smartycpe:2.3:a:smarty:smarty:*:*:*:*:*:*:*:* |
>= 3.0.0, < 3.0.7 | 3.0.7 |
| NVD | debian | debian_linuxcpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:* |
= 8.0 | |
| NVD | debian | debian_linuxcpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:* |
= 9.0 | |
| NVD | debian | debian_linuxcpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:* |
= 10.0 | |
| OSV | Packagist | smarty/smarty | < 3.0.7 | 3.0.7 |
References
- https://access.redhat.com/security/cve/cve-2011-1028 · Broken Link
- https://seclists.org/oss-sec/2011/q1/313 · Mailing List, Third Party Advisory, WEB
- https://security-tracker.debian.org/tracker/CVE-2011-1028 · Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2011-1028 · ADVISORY
- https://github.com/smarty-php/smarty/commit/0154f17de2b2dd16ff9c016923015ac19af9c0cb · WEB
- https://github.com/smarty-php/smarty · PACKAGE
- https://web.archive.org/web/20110609032516/http://smarty-php.googlecode.com/svn/trunk/distribution/change_log.txt · WEB
- https://www.smarty.net/forums/viewtopic.php?t=18815 · WEB
History
- 25 Nov 2026 20:31 UTC · NVD: first stored (published 20 Nov 2019)
- 25 Nov 2026 20:15 UTC · OSV: first stored (published 22 Apr 2022)