CVE-2021-26120

Smarty before 3.1.39 allows code injection via an unexpected function name after a {function name= substring

published February 22, 2021

Patch now

High probability of exploitation

NVD has not assigned a CVSS score to this record. It sits in the 99.7th percentile for exploit probability.

CVSS
—
EPSS
82%
Percentile
99.7
In the wild
Unconfirmed
What it is

⚠️ A sneaky code injection can happen with just one unexpected function name in Smarty! This vulnerability lurking in versions before 3.1.39 could let attackers execute commands without much fuss. 🔥 Think of this as a restaurant where a chef takes any request, even if it includes wild substitutions that were never on the menu. If the kitchen doesn't verify what’s being asked, the results could be disastrous! An attacker could inject malicious code into your application, leading to unauthorized actions and compromising system integrity. While no known exploits are out there yet, the potential for chaos is just a misnamed function away!

Put simply

Think of this as a restaurant where a chef takes any request, even if it includes wild substitutions that were never on the menu. If the kitchen doesn't verify what’s being asked, the results could be disastrous! This vulnerability in Smarty allows attackers to inject code through unexpected function names after a '{function name=' substring. When the system doesn't validate the input correctly, it can execute arbitrary code, creating a serious security risk.

What to do

An attacker could inject malicious code into your application, leading to unauthorized actions and compromising system integrity. While no known exploits are out there yet, the potential for chaos is just a misnamed function away! To secure your application, immediately update Smarty to version 3.1.39 or later. Review your function calls for proper validation to ensure that unexpected names can't slip through. Regular audits will help catch any future issues! You've got this! Stay proactive, and your code will be safe and sound! 🛡️

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.82316 · 99.7th percentile
Published
2021-02-22T01:38Z
EPSS history
Timeline
  • 22 FEB 01:38Z
    Smarty before 3.1.39 allows code injection via an unexpected function name after a {function name= substring
    cvelistv5