See prior work at https://secure.phabricator.com/T12046
Basically, there are a bunch of security alerts that come up with PHPMailer, which we include as code.
In T12046, epriestley analysed the 2016 exploits and concluded that we're not vulnerable, but that the situation gets any worse we should just dump PHPMailer and write our own.
This is the public Security disclosure document of PHPMailer, and we should be tracking it to see if it got worse:
https://github.com/PHPMailer/PHPMailer/blob/master/SECURITY.md
As of now, it lists the following items since 2016 (I checked those that I already cleared):
- CVE-2017-5223 (unfiltered user input)
- CVE-2017-11503
- CVE-2018-19296 and CVE-2020-36326 (UNC paths)
- CVE-2020-13625 (Attachments)
- CVE-2021-34551 (UNC paths)
- CVE-2021-3603