cbcvebase.
CVE-2021-26120
published 2021-02-22

CVE-2021-26120: Smarty before 3.1.39 allows code injection via an unexpected function name after a {function name= substring.

PriorityP271critical9.8CVSS 3.1
AVNACLPRNUINSUCHIHAH
EPSS
82.32%
99.6th percentile
Smarty before 3.1.39 allows code injection via an unexpected function name after a {function name= substring.

Affected

6 ranges
VendorProductVersion rangeFixed in
debiandebian_linux
debiandebian_linux
debiandebian_linux
debiansmarty3< smarty3 3.1.39-1 (bookworm)smarty3 3.1.39-1 (bookworm)
smartysmarty< 3.1.393.1.39
smartysmarty>= 0 < 3.1.393.1.39

Detection & IOCsextracted from sources · hover to see the quote

  • Code injection in Smarty template engine triggered via a crafted function name after the '{function name=' substring in a template
  • ·Vulnerability is fixed in Smarty 3.1.39; versions prior to 3.1.39 are affected. Debian packages resolved at version 3.1.39-1 across all tracked suites (bookworm, bullseye, forky, sid, trixie).

CVSS provenance

nvdv3.19.8CRITICALCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
nvdv2.07.5HIGHAV:N/AC:L/Au:N/C:P/I:P/A:P
osv9.8CRITICAL
vendor_debian9.8CRITICAL
vendor_ubuntu7.5HIGH
Stop checking back — get the weekly exploitation signal.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.