PHPMailer versions prior to 6.0.6 and 5.2.27 are vulnerable to an object injection attack by passing phar:// paths into addAttachment()
and other functions that may receive unfiltered local paths, possibly leading to RCE. See this article for more info on this type of vulnerability. Mitigated by blocking the use of paths containing URL-protocol style prefixes such as phar://
. Reported by Sehun Oh of cyberone.kr.
Object injection, possible remote code execution
Fixed in 6.0.6 and 5.2.27
Validate and sanitise user input before using.
https://nvd.nist.gov/vuln/detail/CVE-2018-19296
If you have any questions or comments about this advisory: * Open a private issue in the PHPMailer project