# CVE-2016-10045: Remote code execution in PHPMailer

Source: https://junglewise.ai/threats/cve-2016-10045-remote-code-execution-in-phpmailer  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2020-03-05  
License: CC BY 4.0 with a link back

CVE-2016-10045 · Severity: low · CVSS 3.1 · Published 2020-03-05

Remote code execution in PHPMailer

Technologies: [phpmailer/phpmailer (Packagist)](https://junglewise.ai/threats/technologies/phpmailer-phpmailer). Vendors: [Packagist](https://junglewise.ai/threats/vendors/packagist).

## Quick answers

**Is CVE-2016-10045 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2016-10045 being exploited in the wild.

**How severe is CVE-2016-10045?** Low severity, with a CVSS score of 3.1, published 5 March 2020.

**Which products and versions are affected?** phpmailer/phpmailer (Packagist) ECOSYSTEM:introduced=5.0.0,fixed=5.2.20.

**Is there a fix for CVE-2016-10045?** Yes. phpmailer/phpmailer (Packagist): upgrade to 5.2.20 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2016-10045?** Check whether you run phpmailer/phpmailer (Packagist) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- phpmailer/phpmailer (Packagist): upgrade to 5.2.20 or later

  ```sh
  composer require phpmailer/phpmailer:^5.2.20
  ```


## Affected products

- phpmailer/phpmailer (Packagist) ECOSYSTEM:introduced=5.0.0,fixed=5.2.20

## Identifiers

- CVE-2016-10045
- GHSA-4pc3-96mx-wwc8

## Related threats

- [PHPMailer Local file inclusion](https://junglewise.ai/threats/cve-2006-5734-phpmailer-local-file-inclusion)
- [PHPMailer Shell command injection](https://junglewise.ai/threats/cve-2007-3215-phpmailer-shell-command-injection)
- [PHPMailer vulnerable to email header injection](https://junglewise.ai/threats/cve-2012-0796-phpmailer-vulnerable-to-email-header-injection)
- [PHPMailer susceptible to arbitrary code execution](https://junglewise.ai/threats/cve-2008-5619-phpmailer-susceptible-to-arbitrary-code-execution)
- [PHPMailer untrusted code may be run from an overridden address validator](https://junglewise.ai/threats/cve-2021-3603-phpmailer-untrusted-code-may-be-run-from-an-overridden-address)
