LiveActive security incident?Get immediate response
CVE Record

CVE-2021-34551: PHPMailer before 6.5.0 on Windows allows remote code execution if lang_path is untrusted data and has a UNC...

PHPMailer before 6.5.0 on Windows allows remote code execution if lang_path is untrusted data and has a UNC pathname.

UnknownCVSS not scoredNot KEV-listedUpdated
Glexia's TakeAutomated analysismoderate

Security readout for executives and security teams

Plain-English summary

This issue affects PHPMailer before 6.5.0 on Windows in a narrow configuration: if an application lets untrusted data control the language path, a UNC path can lead to remote code execution. The business risk is serious where that pattern exists, but the source bundle does not show broad default exposure.

Executive priority

Prioritize review for Windows applications using PHPMailer, especially customer-facing systems with configurable localization or tenant-controlled settings. If lang_path is not externally influenced, urgency is lower, but upgrading remains the cleanest risk reduction.

Technical view

CVE-2021-34551 is a Windows-specific PHPMailer flaw fixed in 6.5.0. The vulnerable condition requires lang_path to be influenced by untrusted data and supplied as a UNC pathname. Sources do not provide CVSS, CWE, exploit details, or evidence of active exploitation.

Likely exposure

Most likely exposure is custom or legacy Windows-hosted applications using PHPMailer before 6.5.0 and deriving lang_path from user input, tenant configuration, or other untrusted sources. Non-Windows deployments and applications that never expose lang_path appear less likely to be affected based on the provided sources.

Exploitation context

The bundle states remote code execution is possible under the UNC lang_path condition. It does not cite public exploitation, weaponized proof-of-concept activity, or CISA KEV listing. Treat exploitation status as unconfirmed, not actively exploited.

Researcher notes

Evidence is limited to the CVE description, PHPMailer security reference, and Fedora advisories. No CVSS vector, CWE, affected CPE list, or exploitation evidence is included. The key validation question is whether untrusted data can influence lang_path on Windows.

Mitigation direction

  • Upgrade PHPMailer to 6.5.0 or later, or apply distribution updates.
  • Do not allow user-controlled values to set lang_path.
  • Restrict language file paths to trusted local directories.
  • Review Fedora package advisories if using Fedora-packaged PHPMailer.

Validation and detection

  • Inventory PHPMailer versions in application dependencies and OS packages.
  • Confirm affected services run on Windows before prioritizing emergency action.
  • Review code and configuration for lang_path assignments from untrusted data.
  • Check deployment records for PHPMailer 6.5.0 or relevant Fedora updates.
Prepared
Confidence
medium
Sources
5

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

description · low confidence lookup

Execution behavior lookup

The CVE wording references code or command execution, so execution technique review may help defensive triage. This is a Glexia inferred lookup path, not an official MITRE, ATT&CK, or CVE Program mapping.

Open ATT&CK lookup
cve · low confidence lookup

CVE-2021-34551 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
Unknown
CVSS
Not scored
Known Exploited
No
Published
Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

0CVSS vectors
0Timeline events
0ADP providers
4Source links

CVSS and timeline data

No CVSS vectors or timeline events were available in the normalized CVE source material.

Source materials

Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
n/an/an/aListed
Weakness

CWE details

No CWE listed

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.