{"id":"EDB-40969","name":"PHPMailer < 5.2.20 - Remote Code Execution (RCE)","description":"PHPMailer < 5.2.20 - Remote Code Execution (RCE)","cves":["CVE-2016-10045","CVE-2016-10033"],"author":"Dawid Golunski","published":"2016-12-27","platform":"php","type":"webapps","language":"Python","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/40969","path":"exploits/php/webapps/40969.py","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-40969.py","vulnerabilities":[{"id":"CVE-2016-10045","state":"PUBLISHED","title":null,"titleSource":null,"description":"The isMail transport in PHPMailer before 5.2.20 might allow remote attackers to pass extra parameters to the mail command and consequently execute arbitrary code by leveraging improper interaction between the escapeshellarg function and internal escaping performed in the mail function in PHP. NOTE: this vulnerability exists because of an incorrect fix for CVE-2016-10033.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2016-10045","cvss":{"version":"3.1","baseScore":9.8,"severity":"critical","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2016-10045"},"updatedAt":"2024-08-06T03:07:32.139Z","retrievedAt":"2026-11-26T18:07:50.080Z","stale":false,"error":null},{"id":"CVE-2016-10033","state":"PUBLISHED","title":null,"titleSource":null,"description":"The mailSend function in the isMail transport in PHPMailer before 5.2.18 might allow remote attackers to pass extra parameters to the mail command and consequently execute arbitrary code via a \\\" (backslash double quote) in a crafted Sender property.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2016-10033","cvss":{"version":"3.1","baseScore":9.8,"severity":"critical","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"CISA-ADP","sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2016-10033"},"updatedAt":"2025-10-21T23:55:47.202Z","retrievedAt":"2026-11-26T17:03:42.200Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-40969.png?v=2","url":"https://exploitbin.com/exploits/EDB-40969","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-40969/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-40969/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"}