CVE-2021-29454
Sandbox Escape by math function in smarty
02 Description
Sandbox Escape by math function 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
- 1.80% probability of exploitation activity in the next 30 days.
- EPSS percentile
- Equal to or higher than the score of 78.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
- 2021-03-30
- Assigning CNA
- GitHub_M
- Record state
- PUBLISHED
- Severity
- High (CVSS 8.1)
- CNA CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N
- Weaknesses
- CWE-74Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')Class
- Data version
- 5.1
- Document digest
- 50b7f323b997c68c31314c5e493efa19bd16de693d833b83202122c2861d3ef7
05 Affected products
06 References
- github.comhttps://github.com/smarty-php/smarty/security/advisories/GHSA-29gp-2c3m-3j6m
- github.comhttps://github.com/smarty-php/smarty/commit/215d81a9fa3cd63d82fb3ab56ecaf97cf1e7db71
- github.comhttps://github.com/smarty-php/smarty/releases/tag/v3.1.42
- github.comhttps://github.com/smarty-php/smarty/releases/tag/v4.0.2
- packagist.orghttps://packagist.org/packages/smarty/smarty
- www.smarty.nethttps://www.smarty.net/docs/en/language.function.math.tpl
- 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.