Packagist (PHP)Worst: Critical18 advisories
smarty/smarty: known vulnerabilities
smarty/smarty has 18 reviewed security advisories in the GitHub Advisory Database — 3 critical, 8 high, 7 moderate. The most recent was published 2026-08-31. Each one below lists the affected version range, the release that fixes it, its CVE and severity. SkyShield matches these against the smarty/smarty versions running across your servers, containers and images, and ranks what to patch first.
How to fix smarty/smarty
Upgrade smarty/smarty to a release at or above the fixed version shown for each advisory below. For Packagist (PHP):
composer require smarty/smarty:^4.5.7 (composer audit)
SkyShield checks the installed version on every machine and container, so you can see which hosts are still on an affected release after you roll the fix out.
Advisories (18)
Smarty: SSRF via redirect bypass of trusted_uri using {fetch}
Moderate CWE-918
— Affected: before 4.5.7. Fixed in 4.5.7. Published 2026-08-31. GHSA-cq55-c7wv-pxmq · CVE-2026-62993
Smarty: Symlink path traversal out of trusted directories
Moderate CWE-22 CWE-61
— Affected: before 4.5.7. Fixed in 4.5.7. Published 2026-08-07. GHSA-f6wf-28g6-769x · CVE-2026-62992
Smarty Security stream restriction bypass through stream: resource
Moderate CWE-22
— Affected: from 5.0.0 up to 5.8.4. Fixed in 5.8.4. Published 2026-08-07. GHSA-rjhh-76wf-8xmw · CVE-2026-62996
Smarty vulnerable to PHP Code Injection by malicious attribute in extends-tag
High 7.3 CWE-94
— Affected: from 3.0.0 up to 4.5.3. Fixed in 4.5.3. Published 2024-05-28. GHSA-4rmg-292m-wg3w · CVE-2024-35226
smarty Cross-site Scripting vulnerability in Javascript escaping
High 7.1 CWE-79
— Affected: before 3.1.48. Fixed in 3.1.48. Published 2023-03-28. GHSA-7j98-h7fp-4vwj · CVE-2023-28447
Smarty Cross-site Scripting vulnerability in pages that use smarty_function_mailto
Moderate 5.4 CWE-79
— Affected: from 4.0.0 up to 4.2.1. Fixed in 4.2.1. Published 2022-09-15. GHSA-hwq7-5vv9-c6cf · CVE-2018-25047
PHP Code Injection by malicious block or filename in Smarty
High 8.8 CWE-94
— Affected: from 4.0.0 up to 4.1.1. Fixed in 4.1.1. Published 2022-05-24. GHSA-634x-pc3q-cf4c · CVE-2022-29221
Sandbox Escape by math function in smarty
High 8.1 CWE-74
— Affected: from 4.0.0 up to 4.0.2. Fixed in 4.0.2. Published 2022-01-10. GHSA-29gp-2c3m-3j6m · CVE-2021-29454
Access to restricted PHP code by dynamic static class access in smarty
High 8.8 CWE-20
— Affected: from 4.0.0 up to 4.0.3. Fixed in 4.0.3. Published 2022-01-10. GHSA-4h9c-v5vg-5m6m · CVE-2021-21408
PHP Code Injection by malicious function name in smarty
Critical 9.8 CWE-94
— Affected: before 3.1.39. Fixed in 3.1.39. Published 2021-02-22. GHSA-3rpf-5rqv-689q · CVE-2021-26120
Sandbox escape through template_object in smarty
High 7.5
— Affected: before 3.1.39. Fixed in 3.1.39. Published 2021-02-22. GHSA-w5hr-jm4j-9jvq · CVE-2021-26119
Smarty3 Arbitrary PHP Code Execution
Critical 9.8 CWE-20
— Affected: before 3.0.7. Fixed in 3.0.7. Published 2019-11-20. GHSA-6frx-2r5w-c524 · CVE-2011-1028
Smarty Path Traversal Vulnerability
High 7.5 CWE-22
— Affected: before 3.1.33. Fixed in 3.1.33. Published 2018-09-18. GHSA-7gfx-wxfh-7rvm · CVE-2018-13982
Smarty Path Traversal Vulnerability
Moderate 5.9 CWE-22
— Affected: before 3.1.33. Fixed in 3.1.33. Published 2018-09-11. GHSA-65j5-vpm7-6xp4 · CVE-2018-16831
Smarty PHP code injection
Critical 9.8 CWE-94
— Affected: from 3 up to 3.1.32. Fixed in 3.1.32. Published 2018-01-03. GHSA-9m49-vhwv-422g · CVE-2017-1000480
Smarty arbitrary PHP code execution
High CWE-94
— Affected: before 3.1.21. Fixed in 3.1.21. Published 2014-11-03. GHSA-2pmx-6mm6-6v72 · CVE-2014-8350
Cross-site Scripting in SmartyException
Moderate CWE-79
— Affected: before 3.1.12. Fixed in 3.1.12. Published 2012-10-01. GHSA-9gqj-ppv2-f2hq · CVE-2012-4437
Smarty Does Not Consider Umask Values When Setting Permissions
Moderate CWE-281
— Affected: before 3.0.0-beta4. Fixed in 3.0.0-beta4. Published 2011-02-03. GHSA-6m9f-8vwq-97pm · CVE-2009-5054
Find smarty/smarty across your fleet
Install one agent per server and connect your cloud. SkyShield matches your packages and images against GHSA,
CISA KEV and EPSS and shows the fix per machine. Free for one server, then from $49 per server a month.
Start free.