Bug 1973425 (CVE-2021-3603)

Summary: CVE-2021-3603 php-PHPMailer: inclusion of functionality from untrusted control sphere vulnerability
Product: [Other] Security Response Reporter: Guilherme de Almeida Suckevicz <gsuckevi>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED UPSTREAM QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: unspecifiedCC: fedora
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-06-17 21:04:03 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: 1973426, 1973427, 1973429, 1973430    
Bug Blocks:    

Description Guilherme de Almeida Suckevicz 2021-06-17 19:42:51 UTC
PHPMailer 6.4.1 and earlier contain a vulnerability that can result in untrusted code being called (if such code is injected into the host project's scope by other means). If the $patternselect parameter to validateAddress() is set to 'php' (the default, defined by PHPMailer::$validator), and the global namespace contains a function called php, it will be called in preference to the built-in validator of the same name. Mitigated in PHPMailer 6.5.0 by denying the use of simple strings as validator function names.

Reference:
https://www.huntr.dev/bounties/1-PHPMailer/PHPMailer/

Upstream patch:
https://github.com/PHPMailer/PHPMailer/commit/45f3c18dc6a2de1cb1bf49b9b249a9ee36a5f7f3

Comment 1 Guilherme de Almeida Suckevicz 2021-06-17 19:43:40 UTC
Created php-PHPMailer tracking bugs for this issue:

Affects: fedora-all [bug 1973426]

Comment 2 Guilherme de Almeida Suckevicz 2021-06-17 19:44:37 UTC
Created php-PHPMailer tracking bugs for this issue:

Affects: epel-7 [bug 1973427]

Comment 3 Guilherme de Almeida Suckevicz 2021-06-17 19:49:07 UTC
Created php-phpmailer6 tracking bugs for this issue:

Affects: fedora-all [bug 1973430]

Comment 4 Product Security DevOps Team 2021-06-17 21:04:03 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.