CVE-2021-26119Smarty
High 7.5 No auth needed
Follow: this CVE · Smarty · Smarty We alert you by email or Slack (account required).
- Priority
- 61
- CVSS 3.1
- 7.5
- EPSS
- 8.5% probability of exploitation in 30 days · percentile 96
- Auth required
- No
- Published
- Feb 22, 2021
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
What happens
Smarty before 3.1.39 allows a Sandbox Escape because $smarty.template_object can be accessed in sandbox mode.
What to do
- Apply the vendor's security update for Smarty.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Packagist | smarty/smarty |
< 3.1.39 |
3.1.39 |
composer require "smarty/smarty:^3.1.39" |
Per OSV / GitHub Advisories (GHSA-w5hr-jm4j-9jvq). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| smarty | smarty | < 3.1.39 |
| debian | debian_linux | 9.0 |
| debian | debian_linux | 10.0 |
| debian | debian_linux | 11.0 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Release Notes Third Party Advisory
- lists.debian.org Mailing List Third Party Advisory
- lists.debian.org Mailing List Third Party Advisory
- security.gentoo.org Patch Third Party Advisory
- www.debian.org Third Party Advisory