Skip to content
Fencer Intel
medium 6.1

CVE-2017-11503 json

Cross-site scripting in PHPMailer

published 2017-07-20 9 y ago modified 2026-06-17 4 mo ago also GHSA-58mj-pw57-4vm2 , EUVD-2020-0330

cvss
6.1
version 3.0, NVD
cisa kev
Not listed
not in CISA's catalog
epss
2.4%
EPSS 2.4% chance of exploitation in 30 days, percentile 84%
public exploits
0
none known

Summary

PHPMailer 5.2.23 has XSS in the "From Email Address" and "To Email Address" fields of code_generator.php.

Patch / fix

  • packagist phpmailer/phpmailer 5.2.24
  • libphp-phpmailer Debian 14, Debian 13, Debian 12 6.0.6-0.1

debian advisories DEBIAN-CVE-2017-11503

  • libphp-phpmailer Ubuntu Pro 16.04 LTS 5.2.14+dfsg-1ubuntu0.1~esm2
  • libphp-phpmailer Ubuntu Pro 18.04 LTS 5.2.14+dfsg-2.3+deb9u2ubuntu0.1~esm2

ubuntu advisories UBUNTU-CVE-2017-11503

Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2017-11503 updated cvss 6.1

phpmailer: XSS in code_generator.php

  • Red Hat All currently supported Red Hat products
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

Exploit prediction

2.40% chance of exploitation in the next 30 days, higher than 84% of all scored CVEs (FIRST EPSS, 2026-11-09).

Exploits and checks

  • packetstormsecurity.com https://packetstormsecurity.com/files/143138/phpmailer-xss.txt referenced PoC, tagged "exploit" by a source, unverified
  • cxsecurity.com https://cxsecurity.com/issue/WLB-2017060181 referenced PoC, tagged "exploit" by a source, unverified

CVSS scores

assigned by version score vector
NVD 3.0 6.1 CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
NVD 2.0 4.3 AV:N/AC:M/Au:N/C:N/I:P/A:N
GitHub 3.0 6.1 CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Affected packages

ecosystem package affected fixed in
packagist phpmailer/phpmailer
>=5.0.0, <5.2.24
5.2.24

Classification

Weakness
  • CWE-79 Improper Neutralization of Input During Web Page Generation

References

Sources

Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.