Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2021-29454

published high CVSS 3.1 · 8.1

Sandbox Escape by math function in smarty

Published
10 Jan 2022, 00:00:00 UTC
Updated
23 Apr 2025, 19:14:05 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
smarty-php — smarty< 3.1.42 · >= 4.0.0, < 4.0.2 Affected Not stated GitHub_M
Debian bullseye smarty3 Advisory build 3.1.39-2+deb11u1 DSA-5151-1
Ubuntu bionic smarty3 Advisory build 3.1.31+20161214.1.c7d42e4+selfpack1-3ubuntu0.1 USN-5348-1
Debian buster smarty3 Advisory build 3.1.33+20180830.1.3a78a21f+selfpack1-1+deb10u1 DSA-5151-1
Debian stretch smarty3 Advisory build 3.1.31+20161214.1.c7d42e4+selfpack1-2+deb9u5 DLA-2995-1
Ubuntu focal smarty3 Advisory build 3.1.34+20190228.1.c9f0de05+selfpack1-1ubuntu0.1~esm1 USN-5348-3
Ubuntu xenial smarty3 Advisory build 3.1.21-1ubuntu1+esm1 USN-5348-2

Description

Smarty is a template engine for PHP, facilitating the separation of presentation (HTML/CSS) from application logic. Prior to versions 3.1.42 and 4.0.2, template authors could run arbitrary PHP code by crafting a malicious math string. If a math string was passed through as user provided data to the math function, external users could run arbitrary PHP code by crafting a malicious math string. Users should upgrade to version 3.1.42 or 4.0.2 to receive a patch.

en · GitHub_M · cna

Vendor advisories explicitly linked to this CVE.

6

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
3.1
Base score
8.1 / 10
Severity
high
Provider
GitHub_M · cna
Vector string
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
smarty-php smarty < 3.1.42 (affected)>= 4.0.0, < 4.0.2 (affected) GitHub_M · cna

Weaknesses

1
  • CWE-74 CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection') (GitHub_M · cna)

References

11

Provider assertions

3

GitHub_M · cna

Sandbox Escape by math function in smarty

CISA-ADP · adp

CISA ADP Vulnrichment

CVE · adp

CVE Program Container

Provenance

Schema
5.1
Searchable
yes
Content hash
30458aa719b431b4506c81af25297785bb9705a634a3a881807dd1930432e06f
Ingested
23 Sep 2026, 07:53:55 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected