{"id":"CVE-2008-4810","aliases":["DSA-1691-1","DSA-1919-1","EUVD-2008-4789","GHSA-c7vg-7rfq-795p"],"status":"published","title":"The _expand_quoted_text function in libs/Smarty_Compiler.class.php in Smarty 2.6.20 before r2797...","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.","severity":{"version":"2.0","score":7.5,"vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","level":"high","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-08","score":0.02187,"percentile":0.82528,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":false},"cwes":["CWE-94"],"published":"2008-10-31T17:18:00Z","modified":"2026-06-16T22:58:35Z","affected":[{"source":"osv","ecosystem":"Debian:4.0","package":"moodle","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.6.3-2+etch1"}]}],"versions":["1.6.3-2"],"bundled":9},{"source":"osv","ecosystem":"Debian:4.0","package":"smarty","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.6.14-1etch2"}]}],"versions":["2.6.14-1","2.6.14-1etch1"],"bundled":2},{"source":"osv","ecosystem":"Debian:5.0","package":"smarty","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.6.20-1.2"}]}],"versions":["2.6.20-1.1"],"bundled":2}],"products":[{"vendor":"smarty","product":"smarty"}],"references":[{"url":"http://secunia.com/advisories/32329","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred","Vendor Advisory"]},{"url":"http://www.securityfocus.com/bid/31862","tags":["vdb-entry","x_refsource_BID","x_transferred"]},{"url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/46031","tags":["vdb-entry","x_refsource_XF","x_transferred"]},{"url":"http://www.debian.org/security/2008/dsa-1691","tags":["vendor-advisory","x_refsource_DEBIAN","x_transferred"]},{"url":"http://code.google.com/p/smarty-php/source/detail?r=2784\u0026path=/trunk/libs/Smarty_Compiler.class.php","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"http://securityvulns.ru/Udocument746.html","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://bugs.gentoo.org/attachment.cgi?id=169804\u0026action=view","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"http://smarty-php.googlecode.com/svn/trunk/NEWS","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"http://code.google.com/p/smarty-php/source/detail?r=2797\u0026path=/trunk/libs/Smarty_Compiler.class.php","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"http://www.openwall.com/lists/oss-security/2008/10/25/2","tags":["mailing-list","x_refsource_MLIST","x_transferred"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2008-4810"},{"url":"https://github.com/advisories/GHSA-c7vg-7rfq-795p"}],"sources":{"cve":[{"id":"CVE-2008-4810","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.","status":"published","published":"2008-10-31T17:18:00Z","modified":"2024-08-07T10:31:27.52Z","updated_at":"2026-11-02T14:34:46.950176Z"}],"euvd":[{"id":"EUVD-2008-4789","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.","status":"published","published":"2008-10-31T17:18:00Z","modified":"2024-08-07T10:31:27Z","updated_at":"2026-11-03T01:38:45.934665Z"}],"ghsa":[{"id":"GHSA-c7vg-7rfq-795p","title":"The _expand_quoted_text function in libs/Smarty_Compiler.class.php in Smarty 2.6.20 before r2797...","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.","status":"published","published":"2022-05-17T02:19:00Z","modified":"2023-01-27T05:04:33Z","cwes":["CWE-94"],"updated_at":"2026-11-02T14:42:29.387682Z"}],"nvd":[{"id":"CVE-2008-4810","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.","status":"published","published":"2008-10-31T18:09:08.54Z","modified":"2026-06-16T22:58:35.117Z","cvss":[{"version":"2.0","score":7.5,"vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","level":"high","assessor":"primary"}],"cwes":["CWE-94"],"updated_at":"2026-11-02T14:01:29.223028Z"}],"osv":[{"id":"DSA-1691-1","title":"moodle - several vulnerabilities","status":"published","published":"2008-12-22T00:00:00Z","modified":"2026-03-09T01:01:40.529427Z","updated_at":"2026-11-02T15:46:14.734124Z"},{"id":"DSA-1919-1","title":"smarty - several vulnerabilities","status":"published","published":"2009-10-25T00:00:00Z","modified":"2026-03-09T01:22:38.238096Z","updated_at":"2026-11-02T15:46:14.734124Z"}]}}
