Lucene search

K
osvGoogleOSV:GHSA-7W4P-72J7-V7C2
HistoryMar 05, 2020 - 10:08 p.m.

Phar object injection in PHPMailer

2020-03-0522:08:55
Google
osv.dev
18

EPSS

0.005

Percentile

75.6%

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:

References