{"schemaVersion":3,"id":"CVE-2017-5223","aliases":["UBUNTU-CVE-2017-5223","DEBIAN-CVE-2017-5223","DLA-817-1"],"status":"published","duplicateOf":null,"title":null,"description":"An issue was discovered in PHPMailer before 5.2.22. PHPMailer's msgHTML method applies transformations to an HTML document to make it usable as an email message body. One of the transformations is to convert relative image URLs into attachments using a script-provided base directory. If no base directory is provided, it resolves to /, meaning that relative image URLs get treated as absolute local file paths and added as attachments. To form a remote vulnerability, the msgHTML method must be called, passed an unfiltered, user-supplied HTML document, and must not set a base directory.","dates":{"published":"2017-01-16T06:00:00.000Z","modified":"2024-08-05T14:55:35.461Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":5.5,"severity":"medium","version":"3.0","versionLabel":"v3.0","source":"NVD","vector":"CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.0","versionLabel":"v3.0","source":"NVD","score":5.5,"severity":"medium","vector":"CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":2.1,"severity":"low","vector":"AV:L/AC:L/Au:N/C:P/I:N/A:N","exploitability":null,"impact":null,"computed":false},{"version":"3.0","versionLabel":"v3.0","source":"OSV · Ubuntu","score":5.5,"severity":"medium","vector":"CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","exploitability":4.6,"impact":6,"computed":true},{"version":"3.0","versionLabel":"v3.0","source":"OSV · Debian","score":5.5,"severity":"medium","vector":"CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","exploitability":4.6,"impact":6,"computed":true}]},"epss":{"probability":0.02143,"percentile":0.81808,"severity":"low","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":-0.01799999999999996,"baselineDate":"2026-09-20T00:00:00.000Z","baselineScore":0.02161},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.02161,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.02161,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.02161,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.02161,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.02161,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.02161,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.02161,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.02049,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.02161,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.02161,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.02161,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.02161,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.02161,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.02161,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.02161,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.02161,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.02161,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.02161,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.02161,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.02161,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.02161,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.02161,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.02161,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.02161,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.02161,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.02143,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.02143,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.02143,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.02143,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.02143,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.02143,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.02143,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.02143,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.02143,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.02143,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.02143,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.02143,"percentile":0.81808}],"last30":[{"date":"2026-09-20T00:00:00.000Z","score":0.02161,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.02049,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.02161,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.02161,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.02161,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.02161,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.02161,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.02161,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.02161,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.02161,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.02161,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.02161,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.02161,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.02161,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.02161,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.02161,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.02161,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.02161,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.02161,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.02143,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.02143,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.02143,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.02143,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.02143,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.02143,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.02143,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.02143,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.02143,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.02143,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.02143,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.02143,"percentile":0.81808}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[{"id":"REF_D755D69E3D634D38","name":"Exploit Reference (kalilinux.co)","source":"reference","url":"http://kalilinux.co/2017/01/12/phpmailer-cve-2017-5223-local-information-disclosure-vulnerability-analysis/","maturity":"unknown","reliabilityScore":0.2,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null},{"id":"43056","name":"PHPMailer < 5.2.21 - Local File Disclosure","source":"exploit-database","url":"https://www.exploit-db.com/exploits/43056","maturity":"poc","reliabilityScore":0.5,"verified":false,"type":null,"platforms":["php"],"requiresAuth":null,"exploitdb":{"verified":false,"type":"webapps","platform":"php","file":"exploits/php/webapps/43056.py","codes":["CVE-2017-5223"]},"metasploit":null}],"exploitCount":2,"weaknesses":[{"id":"CWE-200","name":"Exposure of Sensitive Information to an Unauthorized Actor","description":"The product exposes sensitive information to an actor that is not explicitly authorized to have access to that information.","type":"weakness","status":"Draft","abstraction":"Class","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/200.html"}],"affected":[{"vendor":"debian","product":"libphp-phpmailer","name":"libphp-phpmailer","label":"libphp-phpmailer","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/libphp-phpmailer","purlType":"deb","versions":[{"text":"< 5.2.14+dfsg-2.3","noFixRecorded":false,"fixedIn":null},{"text":"< 5.1-1.3+deb7u1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 5.2.14+dfsg-2.3 | < 5.1-1.3+deb7u1","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"libphp-phpmailer","name":"libphp-phpmailer","label":"libphp-phpmailer","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/libphp-phpmailer","purlType":"deb","versions":[{"text":"< 5.2.14+dfsg-1ubuntu0.1~esm1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 5.2.14+dfsg-1ubuntu0.1~esm1","eol":null,"hubHref":null},{"vendor":"phpmailer_project","product":"phpmailer","name":"phpmailer","label":"phpmailer","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≤ 5.2.21","noFixRecorded":false,"fixedIn":null}],"versionsText":"≤ 5.2.21","eol":null,"hubHref":"/vendor/phpmailer_project/phpmailer"}],"affectedCount":3,"eol":{"hasEol":false,"count":0},"references":[{"url":"http://www.securityfocus.com/bid/95328","label":"www.securityfocus.com/bid/95328","hostname":"www.securityfocus.com","tags":["VDB Entry","X Refsource BID","Third Party Advisory"]},{"url":"http://kalilinux.co/2017/01/12/phpmailer-cve-2017-5223-local-information-disclosure-vulnerability-analysis/","label":"kalilinux.co/2017/01/12/phpmailer-cve-2017-5223-local-information-disclosure-vulnerability-analysis/","hostname":"kalilinux.co","tags":["X Refsource MISC","Exploit","Third Party Advisory","REPORT"]},{"url":"https://www.exploit-db.com/exploits/43056/","label":"www.exploit-db.com/exploits/43056/","hostname":"www.exploit-db.com","tags":["Exploit","X Refsource EXPLOIT DB"]},{"url":"https://github.com/PHPMailer/PHPMailer/blob/master/SECURITY.md","label":"github.com/PHPMailer/PHPMailer/blob/master/SECURITY.md","hostname":"github.com","tags":["X Refsource MISC","Issue Tracking","Patch","Third Party Advisory","REPORT"]},{"url":"https://ubuntu.com/security/CVE-2017-5223","label":"ubuntu.com/security/CVE-2017-5223","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://ubuntu.com/security/notices/USN-5956-1","label":"ubuntu.com/security/notices/USN-5956-1","hostname":"ubuntu.com","tags":["Advisory"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2017-5223","label":"www.cve.org/CVERecord?id=CVE-2017-5223","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2017-5223","label":"security-tracker.debian.org/tracker/CVE-2017-5223","hostname":"security-tracker.debian.org","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":["DLA-1591-1","MGASA-2017-0022","USN-5956-1"],"duplicates":[],"related":["USN-5956-1"]},"timeline":[{"kind":"published","date":"2017-01-16T06:00:00.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-05T14:55:35.461Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":32,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T14:20:11.666Z","stale":false,"partial":false}}