{"id":"CVE-2007-3215","aliases":["DEBIAN-CVE-2007-3215","DSA-1315-1","EUVD-2024-0536","GHSA-6h78-85v2-mmch"],"status":"published","title":"PHPMailer Shell command injection","description":"PHPMailer 1.7, when configured to use sendmail, allows remote attackers to execute arbitrary shell commands via shell metacharacters in the SendmailSend function in class.phpmailer.php.","severity":{"version":"2.0","score":6.8,"vector":"AV:N/AC:M/Au:N/C:P/I:P/A:P","level":"medium","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-07","score":0.02407,"percentile":0.84178,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"published":"2007-06-14T22:00:00Z","modified":"2026-10-21T17:47:33Z","fixes":[{"ecosystem":"Packagist","package":"phpmailer/phpmailer","fixed_in":["1.7.4"],"sources":["ghsa","osv"]},{"ecosystem":"Debian:12","package":"libphp-phpmailer","fixed_in":["1.73-4"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"libphp-phpmailer","fixed_in":["1.73-4"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"libphp-phpmailer","fixed_in":["1.73-4"],"sources":["osv"]},{"ecosystem":"Debian:12","package":"wordpress","fixed_in":["2.2.1-1"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"wordpress","fixed_in":["2.2.1-1"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"wordpress","fixed_in":["2.2.1-1"],"sources":["osv"]},{"ecosystem":"Debian:4.0","package":"libphp-phpmailer","fixed_in":["1.73-2etch1"],"sources":["osv"]}],"affected":[{"source":"ghsa","ecosystem":"Packagist","package":"phpmailer/phpmailer","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.7.4"}]}]},{"source":"osv","ecosystem":"Debian:12","package":"libphp-phpmailer","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.73-4"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"libphp-phpmailer","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.73-4"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"libphp-phpmailer","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.73-4"}]}]},{"source":"osv","ecosystem":"Debian:12","package":"wordpress","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.2.1-1"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"wordpress","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.2.1-1"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"wordpress","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.2.1-1"}]}]},{"source":"osv","ecosystem":"Debian:4.0","package":"libphp-phpmailer","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.73-2etch1"}]}],"versions":["1.73-2"]},{"source":"osv","ecosystem":"Packagist","package":"phpmailer/phpmailer","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.7.4"}]}]}],"products":[{"vendor":"phpmailer","product":"phpmailer"}],"references":[{"url":"http://www.securityfocus.com/archive/1/471065/100/0/threaded","tags":["mailing-list","x_refsource_BUGTRAQ","x_transferred","web"]},{"url":"http://www.debian.org/security/2007/dsa-1315","tags":["vendor-advisory","x_refsource_DEBIAN","x_transferred","advisory"]},{"url":"http://sourceforge.net/project/shownotes.php?release_id=517428\u0026group_id=157374","tags":["x_refsource_CONFIRM","x_transferred","web"]},{"url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/34818","tags":["vdb-entry","x_refsource_XF","x_transferred","web"]},{"url":"http://secunia.com/advisories/25755","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred","advisory"]},{"url":"http://securityreason.com/securityalert/2802","tags":["third-party-advisory","x_refsource_SREASON","x_transferred","web"]},{"url":"http://osvdb.org/76139","tags":["vdb-entry","x_refsource_OSVDB","x_transferred","web"]},{"url":"http://www.securityfocus.com/bid/24417","tags":["vdb-entry","x_refsource_BID","x_transferred","web"]},{"url":"https://sourceforge.net/tracker/index.php?func=detail\u0026aid=1734811\u0026group_id=26031\u0026atid=385707","tags":["x_refsource_MISC","x_transferred","web"]},{"url":"http://osvdb.org/37206","tags":["vdb-entry","x_refsource_OSVDB","x_transferred","web"]},{"url":"http://www.vupen.com/english/advisories/2007/2267","tags":["vdb-entry","x_refsource_VUPEN","x_transferred","advisory"]},{"url":"http://larholm.com/2007/06/11/phpmailer-0day-remote-execution/","tags":["x_refsource_MISC","x_transferred","web"]},{"url":"http://yehg.net/lab/pr0js/advisories/%5BvTiger_5.2.1%5D_rce","tags":["x_refsource_MISC","x_transferred","advisory"]},{"url":"http://secunia.com/advisories/25626","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred","Vendor Advisory","advisory"]},{"url":"http://secunia.com/advisories/25758","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred","advisory"]},{"url":"http://www.vupen.com/english/advisories/2007/2161","tags":["vdb-entry","x_refsource_VUPEN","x_transferred","advisory"]},{"url":"http://seclists.org/fulldisclosure/2011/Oct/223","tags":["mailing-list","x_refsource_FULLDISC","x_transferred","web"]},{"url":"https://github.com/PHPMailer/PHPMailer/security/advisories/GHSA-6h78-85v2-mmch","tags":["web"]},{"url":"https://cxsecurity.com/issue/WLB-2007060063","tags":["web"]},{"url":"https://seclists.org/fulldisclosure/2011/Oct/223","tags":["web"]},{"url":"https://sourceforge.net/p/phpmailer/bugs/192/"},{"url":"https://web.archive.org/web/20070714054359/http://larholm.com/2007/06/11/phpmailer-0day-remote-execution/"},{"url":"https://yehg.net/lab/pr0js/advisories/%5BvTiger_5.2.1%5D_rce","tags":["web"]},{"url":"https://github.com/advisories/GHSA-6h78-85v2-mmch"},{"url":"https://security-tracker.debian.org/tracker/CVE-2007-3215","tags":["advisory"]},{"url":"https://github.com/PHPMailer/PHPMailer","tags":["package"]},{"url":"https://sourceforge.net/p/phpmailer/bugs/192","tags":["web"]},{"url":"https://web.archive.org/web/20070714054359/http://larholm.com/2007/06/11/phpmailer-0day-remote-execution","tags":["web"]}],"sources":{"cve":[{"id":"CVE-2007-3215","description":"PHPMailer 1.7, when configured to use sendmail, allows remote attackers to execute arbitrary shell commands via shell metacharacters in the SendmailSend function in class.phpmailer.php.","status":"published","published":"2007-06-14T22:00:00Z","modified":"2024-08-07T14:05:29.463Z","updated_at":"2026-11-02T13:32:45.563938Z"}],"euvd":[{"id":"EUVD-2024-0536","description":"PHPMailer 1.7, when configured to use sendmail, allows remote attackers to execute arbitrary shell commands via shell metacharacters in the SendmailSend function in class.phpmailer.php.","status":"published","published":"2007-06-14T22:00:00Z","modified":"2024-08-07T14:05:29Z","updated_at":"2026-11-03T01:38:17.502481Z"}],"ghsa":[{"id":"GHSA-6h78-85v2-mmch","title":"PHPMailer Shell command injection","description":"PHPMailer before 1.7.4, when configured to use sendmail, allows remote attackers to execute arbitrary shell commands via shell metacharacters in the SendmailSend function in `class.phpmailer.php`.\n\n### Impact\nShell command injection, remotely exploitable if host application does not filter user data appropriately.\n\n### Patches\nFixed in 1.7.4\n\n### Workarounds\nFilter and validate user-supplied data before putting in the into the `Sender` property.\n\n### References\nhttps://nvd.nist.gov/vuln/detail/CVE-2007-3215\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open a private issue in [the PHPMailer project](https://github.com/PHPMailer/PHPMailer)","status":"published","published":"2024-02-02T20:43:55Z","modified":"2024-02-02T20:43:56Z","updated_at":"2026-11-02T14:37:35.293818Z"}],"nvd":[{"id":"CVE-2007-3215","description":"PHPMailer 1.7, when configured to use sendmail, allows remote attackers to execute arbitrary shell commands via shell metacharacters in the SendmailSend function in class.phpmailer.php.","status":"published","published":"2007-06-14T22:30:00Z","modified":"2026-06-16T22:41:17.177Z","cvss":[{"version":"2.0","score":6.8,"vector":"AV:N/AC:M/Au:N/C:P/I:P/A:P","level":"medium","assessor":"primary"}],"updated_at":"2026-11-02T14:01:16.479378Z"}],"osv":[{"id":"CVE-2007-3215","description":"PHPMailer 1.7, when configured to use sendmail, allows remote attackers to execute arbitrary shell commands via shell metacharacters in the SendmailSend function in class.phpmailer.php.","status":"published","published":"2007-06-14T22:30:00Z","modified":"2026-04-10T03:39:08.073821Z","updated_at":"2026-11-02T15:43:56.865964Z"},{"id":"DEBIAN-CVE-2007-3215","description":"PHPMailer 1.7, when configured to use sendmail, allows remote attackers to execute arbitrary shell commands via shell metacharacters in the SendmailSend function in class.phpmailer.php.","status":"published","published":"2007-06-14T22:30:00Z","modified":"2026-10-21T17:47:33.165557358Z","updated_at":"2026-11-02T15:45:23.411908Z"},{"id":"DSA-1315-1","title":"libphp-phpmailer","status":"published","published":"2007-06-19T00:00:00Z","modified":"2026-03-09T01:01:37.818138Z","updated_at":"2026-11-02T15:46:14.285228Z"},{"id":"GHSA-6h78-85v2-mmch","title":"PHPMailer Shell command injection","description":"PHPMailer before 1.7.4, when configured to use sendmail, allows remote attackers to execute arbitrary shell commands via shell metacharacters in the SendmailSend function in `class.phpmailer.php`.\n\n### Impact\nShell command injection, remotely exploitable if host application does not filter user data appropriately.\n\n### Patches\nFixed in 1.7.4\n\n### Workarounds\nFilter and validate user-supplied data before putting in the into the `Sender` property.\n\n### References\nhttps://nvd.nist.gov/vuln/detail/CVE-2007-3215\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open a private issue in [the PHPMailer project](https://github.com/PHPMailer/PHPMailer)","status":"published","published":"2024-02-02T20:43:55Z","modified":"2024-02-02T20:58:49.494723Z","updated_at":"2026-11-02T15:46:39.618611Z"}]}}
