CVE-2017-1000480

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…

published January 3, 2018

CVSS
—
EPSS
3%
Percentile
87.8
In the wild
Unconfirmed
What it is

⚠️ A sneaky PHP code injection is hiding in Smarty 3 before version 3.1.32! This vulnerability pops up when fetch() or display() functions are called on custom resources, and guess what? It doesn't sanitize template names! Think of it like a restaurant that lets customers write the names of their dishes on the menu without checking — one clever diner could sneak in a recipe for disaster, turning your gourmet meal into a food fight! If exploited, an attacker could inject malicious PHP code, leading to unauthorized execution of code on the server. This means they could manipulate your application in various ways, possibly gaining sensitive information or causing other havoc.

Put simply

Think of it like a restaurant that lets customers write the names of their dishes on the menu without checking — one clever diner could sneak in a recipe for disaster, turning your gourmet meal into a food fight! This vulnerability stems from the lack of template name sanitization in Smarty 3, allowing attackers to execute arbitrary PHP code via custom resource calls when using fetch() or display().

What to do

If exploited, an attacker could inject malicious PHP code, leading to unauthorized execution of code on the server. This means they could manipulate your application in various ways, possibly gaining sensitive information or causing other havoc. To remediate this, upgrade Smarty to version 3.1.32 or later immediately. Additionally, review your templates to ensure that custom resource calls are safely implemented to avoid any potential injection risks. You've got this! Patch up and keep your applications safe! 🛡️

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.03124 · 87.8th percentile
Published
2018-01-03T18:00Z
EPSS history
Timeline
  • 03 JAN 18:00Z
    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…
    cvelistv5