Bug 2043594 (CVE-2021-21408)

Summary: CVE-2021-21408 php-Smarty: template authors could run restricted static php methods
Product: [Other] Security Response Reporter: Marian Rehak <mrehak>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED UPSTREAM QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: unspecifiedCC: christof, shawn
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: php-Smarty 3.1.43, php-Smarty 4.0.3 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-01-21 16:01:18 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2043595, 2043596    
Bug Blocks:    

Description Marian Rehak 2022-01-21 15:25:21 UTC
Smarty is a template engine for PHP, facilitating the separation of presentation (HTML/CSS) from application logic. Prior to versions 3.1.43 and 4.0.3, template authors could run restricted static php methods. Users should upgrade to version 3.1.43 or 4.0.3 to receive a patch.

References:

https://github.com/smarty-php/smarty/commit/19ae410bf56007a5ef24441cdc6414619cfaf664
https://github.com/smarty-php/smarty/releases/tag/v3.1.43
https://github.com/smarty-php/smarty/security/advisories/GHSA-4h9c-v5vg-5m6m
https://github.com/smarty-php/smarty/releases/tag/v4.0.3

Comment 1 Marian Rehak 2022-01-21 15:25:43 UTC
Created php-Smarty tracking bugs for this issue:

Affects: epel-7 [bug 2043596]
Affects: fedora-all [bug 2043595]

Comment 2 Product Security DevOps Team 2022-01-21 16:01:16 UTC
This CVE Bugzilla entry is for community support informational purposes only as it does not affect a package in a commercially supported Red Hat product. Refer to the dependent bugs for status of those individual community products.