synced 15 MIN AGO
01 Record

CVE-2021-26120

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

UnratedPUBLISHEDCNA: mitre
CNA base scoreUnratedNo CNA CVSS vector

02 Description

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

03 Exploitation and scoring

Exploitation
Not assessed. CISA has not published an exploitation assessment for this record, and it is not in the KEV catalog. That is an absence of assessment, not a finding of no risk.
SSVC decision
Not assessed by CISA
EPSS probability
82.31% probability of exploitation activity in the next 30 days.
EPSS percentile
Equal to or higher than the score of 99.6% of scored records. A rank, not a probability.
NVD base score
9.8 (CVSS v3.x), scored by the NVD independently of the CNA.
NVD CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD analysis status
Modified. NVD last modified this record on 2026-06-17.
Red Hat severity
No Red Hat rating. Red Hat rates the CVEs that affect its products.

Exploit-prediction scores from FIRST. Independent scoring and analysis status from the NVD. Vendor severity from Red Hat. Exploitation assessment and catalog membership from CISA.

04 Metadata

Published
2021-02-22 01:38Z5 YR AGO
Last updated
2024-08-03 20:19Z2 YR AGO
Reserved
2021-01-25
Assigning CNA
mitre
Record state
PUBLISHED
Severity
Not rated by the issuing CNA
CNA CVSS vector
Not published by the issuing CNA
Weaknesses
  • CWE-94Improper Control of Generation of Code ('Code Injection')Base
Data version
5.1
Document digest
ae6b4148cc1c48b6d5887b432cb4f70cb9791d82785055fc3d8acddb9583cb2b

05 Affected products

VendorProductVersionsPlatforms
debiandebian_linuxNot specified—
smartysmartyNot specified—

06 References

07 Fixed in

Debian 12

  • smarty3
    Fixed in 3.1.39-1

Source: Debian Security Tracker, the Debian security team. Received through OSV.dev. Reformatted by exploit.cc.

Debian 13

  • smarty3
    Fixed in 3.1.39-1

Source: Debian Security Tracker, the Debian security team. Received through OSV.dev. Reformatted by exploit.cc.

Debian 14

  • smarty3
    Fixed in 3.1.39-1

Source: Debian Security Tracker, the Debian security team. Received through OSV.dev. Reformatted by exploit.cc.

Ubuntu 18.04 LTS

  • smarty3
    Fixed in 3.1.31+20161214.1.c7d42e4+selfpack1-3ubuntu0.1

Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.

Ubuntu Pro 16.04 LTS

  • smarty3
    Fixed in 3.1.21-1ubuntu1+esm1
    Available with Ubuntu Pro: https://ubuntu.com/pro

Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.

Ubuntu Pro 20.04 LTS

  • smarty3
    Fixed in 3.1.34+20190228.1.c9f0de05+selfpack1-1ubuntu0.1~esm1
    Available with Ubuntu Pro: https://ubuntu.com/pro

Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.

A release or ecosystem missing from this list has no record here. It may be unaffected or not covered by the source. Source notices and licences.