Staging Environment: Content and features may be unstable or change without notice.
Search for vulnerabilities
Vulnerability details: VCID-xmrr-2jyf-5yhj
Vulnerability ID VCID-xmrr-2jyf-5yhj
Aliases CVE-2021-26120
GHSA-3rpf-5rqv-689q
Summary Code Injection Smarty allows code injection via an unexpected function name after a `{function name=` substring.
Status Published
Exploitability 0.5
Weighted Severity 9.0
Risk 4.5
Affected and Fixed Packages Package Details
Weaknesses (3)
System Score Found at
epss 0.7558 https://api.first.org/data/v1/epss?cve=CVE-2021-26120
epss 0.7558 https://api.first.org/data/v1/epss?cve=CVE-2021-26120
epss 0.7558 https://api.first.org/data/v1/epss?cve=CVE-2021-26120
cvssv3.1_qr CRITICAL https://github.com/advisories/GHSA-3rpf-5rqv-689q
cvssv3.1 9.8 https://github.com/FriendsOfPHP/security-advisories/blob/master/smarty/smarty/CVE-2021-26120.yaml
generic_textual CRITICAL https://github.com/FriendsOfPHP/security-advisories/blob/master/smarty/smarty/CVE-2021-26120.yaml
cvssv3.1 9.8 https://github.com/smarty-php/smarty
generic_textual CRITICAL https://github.com/smarty-php/smarty
cvssv3.1 9.8 https://github.com/smarty-php/smarty/blob/master/CHANGELOG.md
generic_textual CRITICAL https://github.com/smarty-php/smarty/blob/master/CHANGELOG.md
cvssv3.1 9.8 https://github.com/smarty-php/smarty/blob/master/CHANGELOG.md#3139---2021-02-17
generic_textual CRITICAL https://github.com/smarty-php/smarty/blob/master/CHANGELOG.md#3139---2021-02-17
cvssv3.1 9.8 https://github.com/smarty-php/smarty/commit/165f1bd4d2eec328cfeaca517a725b46001de838
generic_textual CRITICAL https://github.com/smarty-php/smarty/commit/165f1bd4d2eec328cfeaca517a725b46001de838
cvssv3.1 9.8 https://github.com/smarty-php/smarty/security/advisories/GHSA-3rpf-5rqv-689q
cvssv3.1_qr CRITICAL https://github.com/smarty-php/smarty/security/advisories/GHSA-3rpf-5rqv-689q
generic_textual CRITICAL https://github.com/smarty-php/smarty/security/advisories/GHSA-3rpf-5rqv-689q
cvssv3.1 9.8 https://lists.debian.org/debian-lts-announce/2021/04/msg00004.html
generic_textual CRITICAL https://lists.debian.org/debian-lts-announce/2021/04/msg00004.html
cvssv3.1 9.8 https://lists.debian.org/debian-lts-announce/2021/04/msg00014.html
generic_textual CRITICAL https://lists.debian.org/debian-lts-announce/2021/04/msg00014.html
cvssv3.1 9.8 https://nvd.nist.gov/vuln/detail/CVE-2021-26120
generic_textual CRITICAL https://nvd.nist.gov/vuln/detail/CVE-2021-26120
cvssv3.1 9.8 https://security.gentoo.org/glsa/202105-06
generic_textual CRITICAL https://security.gentoo.org/glsa/202105-06
cvssv3.1 9.8 https://srcincite.io/blog/2021/02/18/smarty-template-engine-multiple-sandbox-escape-vulnerabilities.html
generic_textual CRITICAL https://srcincite.io/blog/2021/02/18/smarty-template-engine-multiple-sandbox-escape-vulnerabilities.html
cvssv3.1 9.8 https://www.debian.org/security/2022/dsa-5151
generic_textual CRITICAL https://www.debian.org/security/2022/dsa-5151
No exploits are available.
Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H Found at https://github.com/FriendsOfPHP/security-advisories/blob/master/smarty/smarty/CVE-2021-26120.yaml
Attack Vector (AV) Attack Complexity (AC) Privileges Required (PR) User Interaction (UI) Scope (S) Confidentiality Impact (C) Integrity Impact (I) Availability Impact (A)

network

adjacent_network

local

physical

low

high

none

low

high

none

required

unchanged

changed

high

low

none

high

low

none

high

low

none

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H Found at https://github.com/smarty-php/smarty
Attack Vector (AV) Attack Complexity (AC) Privileges Required (PR) User Interaction (UI) Scope (S) Confidentiality Impact (C) Integrity Impact (I) Availability Impact (A)

network

adjacent_network

local

physical

low

high

none

low

high

none

required

unchanged

changed

high

low

none

high

low

none

high

low

none

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H Found at https://github.com/smarty-php/smarty/blob/master/CHANGELOG.md
Attack Vector (AV) Attack Complexity (AC) Privileges Required (PR) User Interaction (UI) Scope (S) Confidentiality Impact (C) Integrity Impact (I) Availability Impact (A)

network

adjacent_network

local

physical

low

high

none

low

high

none

required

unchanged

changed

high

low

none

high

low

none

high

low

none

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H Found at https://github.com/smarty-php/smarty/blob/master/CHANGELOG.md#3139---2021-02-17
Attack Vector (AV) Attack Complexity (AC) Privileges Required (PR) User Interaction (UI) Scope (S) Confidentiality Impact (C) Integrity Impact (I) Availability Impact (A)

network

adjacent_network

local

physical

low

high

none

low

high

none

required

unchanged

changed

high

low

none

high

low

none

high

low

none

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H Found at https://github.com/smarty-php/smarty/commit/165f1bd4d2eec328cfeaca517a725b46001de838
Attack Vector (AV) Attack Complexity (AC) Privileges Required (PR) User Interaction (UI) Scope (S) Confidentiality Impact (C) Integrity Impact (I) Availability Impact (A)

network

adjacent_network

local

physical

low

high

none

low

high

none

required

unchanged

changed

high

low

none

high

low

none

high

low

none

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H Found at https://github.com/smarty-php/smarty/security/advisories/GHSA-3rpf-5rqv-689q
Attack Vector (AV) Attack Complexity (AC) Privileges Required (PR) User Interaction (UI) Scope (S) Confidentiality Impact (C) Integrity Impact (I) Availability Impact (A)

network

adjacent_network

local

physical

low

high

none

low

high

none

required

unchanged

changed

high

low

none

high

low

none

high

low

none

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H Found at https://lists.debian.org/debian-lts-announce/2021/04/msg00004.html
Attack Vector (AV) Attack Complexity (AC) Privileges Required (PR) User Interaction (UI) Scope (S) Confidentiality Impact (C) Integrity Impact (I) Availability Impact (A)

network

adjacent_network

local

physical

low

high

none

low

high

none

required

unchanged

changed

high

low

none

high

low

none

high

low

none

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H Found at https://lists.debian.org/debian-lts-announce/2021/04/msg00014.html
Attack Vector (AV) Attack Complexity (AC) Privileges Required (PR) User Interaction (UI) Scope (S) Confidentiality Impact (C) Integrity Impact (I) Availability Impact (A)

network

adjacent_network

local

physical

low

high

none

low

high

none

required

unchanged

changed

high

low

none

high

low

none

high

low

none

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H Found at https://nvd.nist.gov/vuln/detail/CVE-2021-26120
Attack Vector (AV) Attack Complexity (AC) Privileges Required (PR) User Interaction (UI) Scope (S) Confidentiality Impact (C) Integrity Impact (I) Availability Impact (A)

network

adjacent_network

local

physical

low

high

none

low

high

none

required

unchanged

changed

high

low

none

high

low

none

high

low

none

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H Found at https://security.gentoo.org/glsa/202105-06
Attack Vector (AV) Attack Complexity (AC) Privileges Required (PR) User Interaction (UI) Scope (S) Confidentiality Impact (C) Integrity Impact (I) Availability Impact (A)

network

adjacent_network

local

physical

low

high

none

low

high

none

required

unchanged

changed

high

low

none

high

low

none

high

low

none

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H Found at https://srcincite.io/blog/2021/02/18/smarty-template-engine-multiple-sandbox-escape-vulnerabilities.html
Attack Vector (AV) Attack Complexity (AC) Privileges Required (PR) User Interaction (UI) Scope (S) Confidentiality Impact (C) Integrity Impact (I) Availability Impact (A)

network

adjacent_network

local

physical

low

high

none

low

high

none

required

unchanged

changed

high

low

none

high

low

none

high

low

none

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H Found at https://www.debian.org/security/2022/dsa-5151
Attack Vector (AV) Attack Complexity (AC) Privileges Required (PR) User Interaction (UI) Scope (S) Confidentiality Impact (C) Integrity Impact (I) Availability Impact (A)

network

adjacent_network

local

physical

low

high

none

low

high

none

required

unchanged

changed

high

low

none

high

low

none

high

low

none

Exploit Prediction Scoring System (EPSS)
Percentile 0.98916
EPSS Score 0.7558
Published At June 4, 2026, 12:55 p.m.
Date Actor Action Source VulnerableCode Version
2026-06-04T16:20:49.523417+00:00 GitLab Importer Import https://gitlab.com/gitlab-org/advisories-community/-/blob/main/packagist/smarty/smarty/CVE-2021-26120.yml 38.6.0