CVE-2017-1000480Smarty
Critical 9.8 No auth needed
Follow: this CVE · Smarty · Smarty We alert you by email or Slack (account required).
- Priority
- 74
- CVSS 3.0
- 9.8
- EPSS
- 3.1% probability of exploitation in 30 days · percentile 89
- Auth required
- No
- Published
- Jan 3, 2018
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-94
- Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
What happens
Smarty 3 before 3.1.32 is vulnerable to a PHP code injection when calling fetch() or display() functions on custom resources that does not sanitize template name.
What to do
- Apply the vendor's security update for Smarty.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Packagist | smarty/smarty |
≥ 3 < 3.1.32 |
3.1.32 |
composer require "smarty/smarty:^3.1.32" |
Per OSV / GitHub Advisories (GHSA-9m49-vhwv-422g). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| smarty | smarty | ≥ 3.0.0 < 3.1.32 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Release Notes Third Party Advisory
- lists.debian.org
- lists.debian.org
- www.debian.org