Bug 2183911 (CVE-2023-28447)

Summary: CVE-2023-28447 php-Smarty: Cross site scripting vulnerability in Javascript escaping
Product: [Other] Security Response Reporter: TEJ RATHI <trathi>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED UPSTREAM QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedKeywords: Security
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: php-Smarty 4.3.1, php-Smarty 3.1.48 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-04-03 08:52:55 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: 2183912, 2183913, 2183914    
Bug Blocks: 2182638    

Description TEJ RATHI 2023-04-03 05:07:49 UTC
Smarty is a template engine for PHP. In affected versions smarty did not properly escape javascript code. An attacker could exploit this vulnerability to execute arbitrary JavaScript code in the context of the user's browser session. This may lead to unauthorized access to sensitive user data, manipulation of the web application's behavior, or unauthorized actions performed on behalf of the user. Users are advised to upgrade to either version 3.1.48 or to 4.3.1 to resolve this issue. There are no known workarounds for this vulnerability.

https://github.com/smarty-php/smarty/security/advisories/GHSA-7j98-h7fp-4vwj
https://github.com/smarty-php/smarty/commit/685662466f653597428966d75a661073104d713d

Comment 1 TEJ RATHI 2023-04-03 05:08:18 UTC
Created php-Smarty tracking bugs for this issue:

Affects: epel-7 [bug 2183912]
Affects: fedora-36 [bug 2183913]
Affects: fedora-37 [bug 2183914]

Comment 2 Product Security DevOps Team 2023-04-03 08:52:53 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.