php-Smarty: PHP code execution via unescaped $ sign or double-quoted string
Published Oct 31, 2008
7.5
HIGHCVSS 2.0
EPSS 2.19%
Description
The _expand_quoted_text function in libs/Smarty_Compiler.class.php in Smarty 2.6.20 before r2797 allows remote attackers to execute arbitrary PHP code via vectors related to templates and (1) a dollar-sign character, aka "php executed in templates;" and (2) a double quoted literal string, aka a "function injection security hole." NOTE: each vector affects slightly different SVN revisions.
Affected products
No data.
- 1.0
- 1.0a
- 1.0b
- 1.1.0
- 1.2.0
- 1.2.1
- 1.2.2
- 1.3.0
- 1.3.1
- 1.3.2
- 1.4.0
- 1.4.0
- 1.4.0
- 1.4.1
- 1.4.2
- 1.4.3
- 1.4.4
- 1.4.5
- 1.4.6
- 1.5.0
- 1.5.1
- 1.5.2
- 2.0.0
- 2.0.1
- 2.1.0
- 2.1.1
- 2.2.0
- 2.3.0
- 2.3.1
- 2.4.0
- 2.4.1
- 2.4.2
- 2.5.0
- 2.5.0
- 2.5.0
- 2.6.0
- 2.6.0
- 2.6.0
- 2.6.0
- 2.6.1
- 2.6.2
- 2.6.3
- 2.6.4
- 2.6.5
- 2.6.6
- 2.6.7
- 2.6.9
- 2.6.10
- 2.6.11
- 2.6.12
- 2.6.13
- 2.6.14
- 2.6.15
- 2.6.16
- 2.6.17
- 2.6.18
No data.
No Red Hat product state for this CVE.
No package ranges for this CVE.
Remediation
No remediation recorded yet.
Metrics
No CVSS v4.0 score for this CVE.
No CVSS v3.1 score for this CVE.
No CVSS v3.0 score for this CVE.
AV:N/AC:L/Au:N/C:P/I:P/A:P
This CVE is not in the KEV list.
No CISA SSVC assessment for this CVE yet.
Estimated probability of exploitation in the wild in the next 30 days (FIRST EPSS). As of Oct 1, 2026.
Score over time
2022–2026- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Percentile over time
- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Table of values (9 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 1, 2026 | 2.19% (0.02187) | 81.75th | v5 (v2026.06.15) |
| Jun 15, 2026 | 2.19% (0.02187) | 79.99th | v5 (v2026.06.15) |
| Mar 17, 2025 | 1.50% (0.01497) | 79.81th | v4 (v2025.03.14) |
| Dec 12, 2024 | 1.34% (0.01337) | 86.64th | v3 (v2023.03.01) |
| May 3, 2024 | 1.24% (0.01236) | 85.34th | v3 (v2023.03.01) |
| Mar 7, 2023 | 1.24% (0.01236) | 83.29th | v3 (v2023.03.01) |
| Mar 6, 2023 | 2.17% (0.02172) | 80.77th | v2 (v2022.01.01) |
| Apr 1, 2022 | 2.17% (0.02172) | 78.91th | v2 (v2022.01.01) |
| Feb 4, 2022 | 2.17% (0.02172) | 57.73th | v2 (v2022.01.01) |
References (14)
- http://code.google.com/p/smarty-php/source/detail?r=2784&path=/trunk/libs/Smarty_Compiler.class.php x_refsource_CONFIRM
- http://code.google.com/p/smarty-php/source/detail?r=2797&path=/trunk/libs/Smarty_Compiler.class.php x_refsource_CONFIRM
- http://secunia.com/advisories/32329 third-party-advisoryx_refsource_SECUNIAVendor Advisory
- http://securityvulns.ru/Udocument746.html x_refsource_MISC
- http://smarty-php.googlecode.com/svn/trunk/NEWS x_refsource_CONFIRM
- http://www.debian.org/security/2008/dsa-1691 vendor-advisoryx_refsource_DEBIAN
- http://www.openwall.com/lists/oss-security/2008/10/25/2 mailing-listx_refsource_MLIST
- http://www.securityfocus.com/bid/31862 vdb-entryx_refsource_BID
- https://access.redhat.com/security/cve/CVE-2008-4810 Vendor Advisory
- https://bugs.gentoo.org/attachment.cgi?id=169804&action=view x_refsource_CONFIRM
- https://bugzilla.redhat.com/show_bug.cgi?id=469646 Issue Tracking
- https://exchange.xforce.ibmcloud.com/vulnerabilities/46031 vdb-entryx_refsource_XF
- https://nvd.nist.gov/vuln/detail/CVE-2008-4810
- https://www.cve.org/CVERecord?id=CVE-2008-4810
Change history (0)
No recorded changes yet.