Loading advisory.
Loading advisory.
Object injection in PHPMailer/PHPMailer
This is a reintroduction of an earlier issue (CVE-2018-19296) by an unrelated bug fix in PHPMailer 6.1.8. An external file may be unexpectedly executable if it is used as a path to an attachment file via PHP's support for .phar files.
Published 2021-04-28 02:21 UTC · Modified 2026-07-21 14:00 UTC
Severity and EPSS are shown separately. Helm does not combine them into one score. How tiers work
| Package | Ecosystem | Affected | Fixed in | Upgrade command |
|---|---|---|---|---|
| phpmailer/phpmailer | Packagist | >= 6.1.8, < 6.4.1 versions v6.1.8, v6.2.0, v6.3.0, v6.4.0 | 6.4.1 | composer require 'phpmailer/phpmailer:>=6.4.1' |
This is a reintroduction of an earlier issue (CVE-2018-19296) by an unrelated bug fix in PHPMailer 6.1.8. An external file may be unexpectedly executable if it is used as a path to an attachment file via PHP's support for .phar files. Exploitation requires that an attacker is able to provide an unfiltered path to a file to attach, or to trick calling code into generating one. See this article for more info.
This issue was patched in the PHPMailer 6.4.1 release. This release also implements stricter filtering for attachment paths; paths that look like any kind of URL are rejected.
Validate paths to loaded files using the same pattern as used in isPermittedPath() before using them in any PHP file function, such as file_exists. This method can't be used directly because it is protected, but you can implement the same thing in calling code. Note that this should be applied to all user-supplied paths passed into such functions; it's not a problem specific to PHPMailer.
This issue was found by Fariskhi Vidyan, reported and managed via Tidelift.
No public exploit code known to Helm's sources (Nuclei templates, Metasploit, Exploit-DB and PoC-in-GitHub). That does not mean none exists.
EPSS went from 0.031 on 2026-11-24 to 0.032 on 2026-11-30, over 2 recorded scores.
| Date | Score | Previous | Model |
|---|---|---|---|
| 2026-11-24 | 0.031 | first score | v2026.06.15 |
| 2026-11-30 | 0.032 | 0.031 | v2026.06.15 |