# CVE-2007-3215: PHPMailer Shell command injection

Source: https://junglewise.ai/threats/cve-2007-3215-phpmailer-shell-command-injection  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2024-02-02  
License: CC BY 4.0 with a link back

CVE-2007-3215 · Severity: info · Published 2024-02-02

PHPMailer Shell command injection

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

## Quick answers

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

**How severe is CVE-2007-3215?** Informational severity, published 2 February 2024.

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

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

**Am I affected by CVE-2007-3215?** 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 1.7.4 or later

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


## Affected products

- phpmailer/phpmailer (Packagist) ECOSYSTEM:introduced=0,fixed=1.7.4

## Identifiers

- CVE-2007-3215
- GHSA-6h78-85v2-mmch

## Related threats

- [PHPMailer Local file inclusion](https://junglewise.ai/threats/cve-2006-5734-phpmailer-local-file-inclusion)
- [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)
- [Remote Code Execution vulnerability in PHPMailer 6.4.1 running on Windows](https://junglewise.ai/threats/cve-2021-34551-remote-code-execution-vulnerability-in-phpmailer-6-4-1-running-on)
