<div><h2>Description</h2><h2>Introduction to Components</h2><p>
Smarty is a template engine for PHP, facilitating the separation of presentation (HTML/CSS) from the application logic (PHP). This is important in collaborative projects or where the application programmer and the template designer are not the same person.<br /><br /></p><h3>
Summary</h3><p>The Sangfor Security Team has verified the Smarty sandbox escape vulnerability CVE-2021-26119, classified as critical.<br /><br />
CVE-2021-26119 vulnerability allows a Sandbox Escape because $smarty.template_object can be accessed in sandbox mode. The vulnerability is found in template files compiled and generated by the engine using the Smarty_Internal_Runtime_TplFunction template. Attackers can exploit this vulnerability to construct malicious data with permission, and ultimately cause remote code execution.<br /><br /></p><h3>
Reproduction</h3><p>CVE-2021-26119<br /><br />
The Sangfor Security Team established the environment of Smarty 3.1.38 and successfully reproduce this vulnerability as follows:<br /><br /></p><h3>
Impact</h3><p>Smarty is a well-known template engine written in PHP. There are tens of thousands of unique visitors on the Smarty website daily.<br /><br /></p><h3>
Affected Versions:</h3><p>Smarty 3.1.38 and earlier versions<br /><br /></p><h3>
Timeline</h3><p>Feb 18, 2021 Sangfor FarSight Labs detected that Smarty released a security patch.<br />
Feb 25, 2021 Sangfor FarSight Labs reproduced this vulnerability successfully and released solutions.<br /><br /></p><h3>
Learn More</h3>
Sangfor FarSight Labs researches the latest and unknown zero-day vulnerabilities and threats, alerting customers to vulnerabilities that can pose threats to their organizations, and providing solutions as soon as possible with actionable intelligence. Sangfor FarSight Labs works with other security vendors and the security community at large to identify and verify global cyberthreats so our customers can be protected from them as quickly as possible.<br /><br /><h2>
Remediation Solution</h2>
Smarty has released a new version to fix this vulnerability. Please download it from the following link: <a href="https://github.com/smarty-php/smarty/blob/master/CHANGELOG.md">https://… /><br /><h3>Sangfor Solution</h3><ol><li>For Sangfor NGAF customers, click Update on Security Capability Update.</li><li>Sangfor Cloud WAF has automatically updated its database in the cloud. Users are already protected from this vulnerability without any additional operation required.</li><li>Sangfor Cyber Command detects attacks which exploit this vulnerability and can alert users in real time. Users can integrate Cyber Command with NGAF to block an attacker's IP address.
</li><li>Sangfor SOC has Sangfor security specialists available 24/7 to help you resolve any security issues. After rule update release, Sangfor security experts check and update the customer's vulnerability detection equipment and perform a vulnerability scan of the customer's network environment to ensure that the customer's host is free from this vulnerability. For users with vulnerabilities, the SOC regularly reviews and updates device policies to ensure protection against this vulnerability.</li></ol><br /><br /></div>

Listen To This Post

Search

Related Articles

Cyber Security

Two Evolving Ransomware Tactics and How Sangfor Athena EPP Responds

Date : 26 Oct 2026
Read Now
Cyber Security

The eMudhra Certificate Compromise: What Happened and Why the Internet Is on High Alert

Date : 21 Oct 2026
Read Now
Cyber Security

OT Security in 2026: Protecting Operational Technology in an Era of Converging IT and OT Networks

Date : 19 Oct 2026
Read Now

See Other Product

Sangfor Omni-Command
Replace your Enterprise NGAV with Sangfor Endpoint Secure
SASE ROI Calculator - Assess Sangfor SASE’s Total Economic Impact
Sangfor Athena XDR - Extended Detection and Response
Athena SASE - Secure Access Service Edge
Sangfor Athena NGFW - Next Generation Firewall