GIVE YOUR AGENT THE EVIDENCE

Set up in your agent.

One prompt to get started. Paste it into your coding agent to connect cve.new through MCP and bring vulnerability context into your workflow.

Your agent needs remote MCP support and access to https://cve.new/mcp.

Read the setup guide

GIVE YOUR AGENT THE EVIDENCE

Investigate in your agent.

Turn this advisory into a focused investigation. Ask your agent to check your project’s versions, explain the evidence, and suggest a compatible fix.

Your agent needs remote MCP support and access to https://cve.new/mcp.

Read the setup guide

GHSA-4pc3-96mx-wwc8critical9.8

Remote code execution in PHPMailer

Check your stack

The advisory, in context

Impact

The isMail transport in PHPMailer before 5.2.20 might allow remote attackers to pass extra parameters to the mail command and consequently execute arbitrary code by leveraging improper interaction between the escapeshellarg function and internal escaping performed in the mail function in PHP. NOTE: this vulnerability exists because of an incorrect fix for CVE-2016-10033.

This issue really emphasises that it's worth avoiding the built-in PHP mail() function entirely.

Patches

Fixed in 5.2.20

Workarounds

Send via SMTP to localhost instead of calling the mail() function.

References

https://nvd.nist.gov/vuln/detail/CVE-2016-10045 See also https://nvd.nist.gov/vuln/detail/CVE-2016-10033

For more information

If you have any questions or comments about this advisory:

Affected packages

Start with the recorded fix for your release branch. Check your installed version and test compatibility before upgrading. Fixing this advisory does not rule out other vulnerabilities in the release.

Ecosystem versions

From 5.0.0 before 5.2.20

Fixed in 5.2.20

17 explicitly affected versions

v5.2.10, v5.2.11, v5.2.12, v5.2.13, v5.2.14, v5.2.15, v5.2.16, v5.2.17, v5.2.18, v5.2.19, v5.2.2, v5.2.4, v5.2.5, v5.2.6, v5.2.7, v5.2.8, v5.2.9

View affected-version evidence
{
  "ranges": [
    {
      "events": [
        {
          "introduced": "5.0.0"
        },
        {
          "fixed": "5.2.20"
        }
      ],
      "type": "ECOSYSTEM"
    }
  ],
  "versions": [
    "v5.2.10",
    "v5.2.11",
    "v5.2.12",
    "v5.2.13",
    "v5.2.14",
    "v5.2.15",
    "v5.2.16",
    "v5.2.17",
    "v5.2.18",
    "v5.2.19",
    "v5.2.2",
    "v5.2.4",
    "v5.2.5",
    "v5.2.6",
    "v5.2.7",
    "v5.2.8",
    "v5.2.9"
  ]
}

References