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
{ "nvd_published_at": "2018-11-16T09:29:00Z", "cwe_ids": [ "CWE-1321", "CWE-502", "CWE-915" ], "severity": "HIGH", "github_reviewed": true, "github_reviewed_at": "2020-03-05T22:08:10Z" }