CVE-2018-19296: Object injection

Published Jul 26, 2017
·
Updated

Last updated 24 July 2024

Other sources

PHPMailer before 5.2.27 and 6.x before 6.0.6 is vulnerable to an object injection attack.

— Launchpad

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

— GitHub

Affected Software

13 affected componentsFixes available
composer/phpmailer/phpmailer>=5.0.0, <5.2.27, >=6.0.0, <6.0.6
6.0.6
composer/phpmailer/phpmailer>=6.0.0<6.0.6
6.0.6
composer/phpmailer/phpmailer>=5.0.0<5.2.27
5.2.27
debian/libphp-phpmailer
6.2.0-26.6.3-16.9.1-1
PHPMailer project PHPMailer<5.2.27
PHPMailer project PHPMailer>=6.0.0<6.0.6
Debian Debian Linux=8.0
Debian Debian Linux=9.0
Fedoraproject Fedora=33
Fedoraproject Fedora=34
WordPress WordPress>=3.7<=5.7
composer/phpmailer/phpmailer>=5.0.0, <5.2.27
5.2.27
composer/phpmailer/phpmailer>=6.0.0, <6.0.6
6.0.6

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade composer/phpmailer/phpmailer to a version that resolves this vulnerability.

    Fixed in 6.0.6
  2. Upgrade

    Upgrade composer/phpmailer/phpmailer to a version that resolves this vulnerability.

    Fixed in 5.2.27
  3. Upgrade

    Upgrade debian/libphp-phpmailer to a version that resolves this vulnerability.

    Fixed in 6.2.0-2Fixed in 6.6.3-1Fixed in 6.9.1-1
  4. Upgrade

    Upgrade PHPMailer to a version that resolves this vulnerability.

    Fixed in 6.0.6
  5. Upgrade

    Upgrade PHPMailer to a version that resolves this vulnerability.

    Fixed in 5.2.27
  6. Compensating control

    Block the use of paths containing URL-protocol style prefixes such as phar://.

  7. Compensating control

    Validate and sanitise user input before using it in PHPMailer functions that receive local paths.

Event History

Jul 26, 2017
Advisory Published
12:41 AM
Data Sourced
via Packagist·12:41 AM
DescriptionSeverityAffected Software
Nov 16, 2018
CVE Published
via MITRE·09:00 AM
Data Sourced
via MITRE·09:00 AM
Description
Data Sourced
08:30 PM
SeverityAffected Software

Frequently Asked Questions

1

What is the vulnerability ID for the Object Injection vulnerability?

The vulnerability ID for the Object Injection vulnerability is CVE-2018-19296.

2

What is the severity of the Object Injection vulnerability?

The severity of the Object Injection vulnerability is high with a severity value of 8.8.

3

What is affected by the Object Injection vulnerability?

The Object Injection vulnerability affects PHPMailer before 5.2.27 and 6.x before 6.0.6, as well as other packages and systems listed in the vulnerability description.

4

How can I fix the Object Injection vulnerability?

To fix the Object Injection vulnerability, update PHPMailer to version 5.2.27 or 6.0.6 and follow any additional remediation steps mentioned in the relevant advisories.

5

Where can I find more information about the Object Injection vulnerability?

More information about the Object Injection vulnerability can be found on the official PHPMailer GitHub releases page, the Debian Security Tracker, and the MITRE CVE database.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203