Insecure deserialization In phpmailer/phpmailer
Description
Phar object injection in PHPMailer
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.
Impact
Object injection, possible remote code execution
Patches
Fixed in 6.0.6 and 5.2.27
Workarounds
Validate and sanitise user input before using.
References
https://nvd.nist.gov/vuln/detail/CVE-2018-19296
For more information
If you have any questions or comments about this advisory:
Open a private issue in the PHPMailer project
Mitigation
Update Impact
Minimal update. May introduce new vulnerabilities or breaking changes.
Ecosystem | Component | Affected version | Patched versions |
|---|---|---|---|
packagist | 5.2.27, 6.0.6 | ||
debian 13 | 5.2.14+dfsg-2.4 | ||
debian 11 | 5.2.14+dfsg-2.4 | ||
debian 12 | 5.2.14+dfsg-2.4 | ||
debian 14 | 5.2.14+dfsg-2.4 |
Aliases
References