Bug 1973425 (CVE-2021-3603) - CVE-2021-3603 php-PHPMailer: inclusion of functionality from untrusted control sphere vulnerability
Summary: CVE-2021-3603 php-PHPMailer: inclusion of functionality from untrusted contro...
Keywords:
Status: CLOSED UPSTREAM
Alias: CVE-2021-3603
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 1973427 1973426 1973429 1973430
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-06-17 19:42 UTC by Guilherme de Almeida Suckevicz
Modified: 2021-06-18 18:30 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-06-17 21:04:03 UTC
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.