CVE-2021-21408
Access to restricted PHP code by dynamic static class access in smarty
02 Description
Access to restricted PHP code by dynamic static class access in smarty
03 Exploitation and scoring
- Exploitation
- Assessed, none found. CISA's assessment recorded neither public exploit code nor evidence of exploitation when it was made.
- SSVC decision
- ExploitationnoneCISA recorded no public exploit code and no evidence of exploitation.
- AutomatablenoAt least one step from reconnaissance to exploitation cannot be reliably automated.
- Technical ImpacttotalSuccessful exploitation gives total control of the vulnerable component.
- EPSS probability
- 2.07% probability of exploitation activity in the next 30 days.
- EPSS percentile
- Equal to or higher than the score of 81.3% of scored records. A rank, not a probability.
- NVD base score
- 8.8 (CVSS v3.x), scored by the NVD independently of the CNA.
- NVD CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:L/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
- 2022-01-10 00:00Z4 YR AGO
- Last updated
- 2025-04-23 19:14Z1 YR AGO
- Reserved
- 2020-12-22
- Assigning CNA
- GitHub_M
- Record state
- PUBLISHED
- Severity
- High (CVSS 8.8)
- CNA CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Weaknesses
- CWE-20Improper Input ValidationClass
- Data version
- 5.1
- Document digest
- c98e94bc15497e71e7f2ce62ed7c9c9774459598d812ec168827c3c5328cf19a
05 Affected products
06 References
- github.comhttps://github.com/smarty-php/smarty/security/advisories/GHSA-4h9c-v5vg-5m6m
- github.comhttps://github.com/smarty-php/smarty/commit/19ae410bf56007a5ef24441cdc6414619cfaf664
- github.comhttps://github.com/smarty-php/smarty/releases/tag/v3.1.43
- github.comhttps://github.com/smarty-php/smarty/releases/tag/v4.0.3
- lists.debian.org[debian-lts-announce] 20220505 [SECURITY] [DLA 2995-1] smarty3 security updatehttps://lists.debian.org/debian-lts-announce/2022/05/msg00005.html
- www.debian.orgDSA-5151https://www.debian.org/security/2022/dsa-5151
- security.gentoo.orgGLSA-202209-09https://security.gentoo.org/glsa/202209-09
- lists.fedoraproject.orgFEDORA-2022-52154efd61https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/L777JIBIWJV34HS7LXPIDWASG7TT4LNI/
- lists.fedoraproject.orgFEDORA-2022-d5fc9dcdd7https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/BRAJVDRGCIY5UZ2PQHKDTT7RMKG6WJQQ/
07 Fixed in
Debian 12
- smarty3 Fixed in 3.1.45-1
- smarty4 Fixed in 4.1.1-1
Source: Debian Security Tracker, the Debian security team. Received through OSV.dev. Reformatted by exploit.cc.
Debian 13
- smarty3 Fixed in 3.1.45-1
- smarty4 Fixed in 4.1.1-1
Source: Debian Security Tracker, the Debian security team. Received through OSV.dev. Reformatted by exploit.cc.
Debian 14
- smarty3 Fixed in 3.1.45-1
- smarty4 Fixed in 4.1.1-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 22.04 LTS
- smarty3 Fixed in 3.1.39-2ubuntu1
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+esm1Available 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~esm1Available 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.