Advisory record · GHSA-7w4p-72j7-v7c2

Phar object injection in PHPMailer

CVSS 8.8 HighEPSS 0.022 · 83rd percentile

Published by the GitHub Advisory Database at 5 Mar 2020, 22:08 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

PackageEcosystemAffectedFixed in
phpmailer/phpmailerPackagist>=5.0.0, <5.2.27 || >=6.0.0, <6.0.65.2.27, 6.0.6
Identifiers
GHSA-7w4p-72j7-v7c2 · CVE-2018-19296 · PKSA-dn5d-4vy3-wsfy
Weakness (CWE)
CWE-502 · CWE-915 · CWE-1321
Published
5 Mar 2020
Updated
21 Feb 2024

Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

PHPMailer versions 5.0.0 before 5.2.27 and 6.0.0 before 6.0.6 are vulnerable to object injection when phar:// paths are passed to addAttachment() and other functions that accept local paths. An attacker who can supply such paths to the application may be able to trigger object injection, possibly leading to remote code execution. Upgrade to 5.2.27 or 6.0.6; as a workaround, block paths containing URL-protocol prefixes such as phar://.

Written 4 Nov 2026.

Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

Severity and exploitation

ScoreRatingCVSSVectorSource
8.8 High 3.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H GitHub Advisory Database
  • CISA KEV Not listed.
  • EPSS 0.022, the 83rd percentile, on 23 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

Timeline

  1. 5 Mar 2020, 21:13 UTC Published by the maintainers as a GitHub repository advisory
  2. 31 Oct 2026, 14:30 UTC First seen by agentprime
  3. 31 Oct 2026, 14:30 UTC Confirmed by OSV

Sources

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.