{"id":"CVE-2002-0985","aliases":["DSA-168","EUVD-2002-0974","GHSA-39rv-383r-32wp"],"status":"published","title":"Argument injection vulnerability in the mail function for PHP 4.x to 4.2.2 may allow attackers to...","description":"Argument injection vulnerability in the mail function for PHP 4.x to 4.2.2 may allow attackers to bypass safe mode restrictions and modify command line arguments to the MTA (e.g. sendmail) in the 5th argument to mail(), altering MTA behavior and possibly executing commands.","severity":{"version":"2.0","score":7.5,"vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","level":"high","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-09","score":0.02951,"percentile":0.87266,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":false},"cwes":["CWE-88"],"published":"2002-09-18T00:00:00Z","modified":"2026-06-16T21:58:30Z","affected":[{"source":"osv","ecosystem":"Debian:3.0","package":"php3","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.0.18-23.1woody1"}]}],"bundled":2},{"source":"osv","ecosystem":"Debian:3.0","package":"php4","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.1.2-5"}]}],"bundled":2}],"products":[{"vendor":"openpkg","product":"openpkg"},{"vendor":"php","product":"php"}],"references":[{"url":"http://marc.info/?l=bugtraq\u0026m=105760591228031\u0026w=2","tags":["mailing-list","x_refsource_BUGTRAQ","x_transferred","Third Party Advisory"]},{"url":"http://www.debian.org/security/2002/dsa-168","tags":["vendor-advisory","x_refsource_DEBIAN","x_transferred","Broken Link","Patch","Vendor Advisory"]},{"url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/9966","tags":["vdb-entry","x_refsource_XF","x_transferred","Third Party Advisory","VDB Entry"]},{"url":"http://marc.info/?l=bugtraq\u0026m=103011916928204\u0026w=2","tags":["mailing-list","x_refsource_BUGTRAQ","x_transferred","Third Party Advisory"]},{"url":"http://www.redhat.com/support/errata/RHSA-2002-243.html","tags":["vendor-advisory","x_refsource_REDHAT","x_transferred","Broken Link"]},{"url":"http://www.redhat.com/support/errata/RHSA-2003-159.html","tags":["vendor-advisory","x_refsource_REDHAT","x_transferred","Broken Link"]},{"url":"http://www.mandrakesoft.com/security/advisories?name=MDKSA-2003:082","tags":["vendor-advisory","x_refsource_MANDRAKE","x_transferred","Broken Link"]},{"url":"ftp://ftp.caldera.com/pub/security/OpenLinux/CSSA-2003-008.0.txt","tags":["vendor-advisory","x_refsource_CALDERA","x_transferred","Broken Link"]},{"url":"http://www.novell.com/linux/security/advisories/2002_036_modphp4.html","tags":["vendor-advisory","x_refsource_SUSE","x_transferred","Broken Link"]},{"url":"http://distro.conectiva.com.br/atualizacoes/?id=a\u0026anuncio=000545","tags":["vendor-advisory","x_refsource_CONECTIVA","x_transferred","Broken Link"]},{"url":"http://www.redhat.com/support/errata/RHSA-2002-213.html","tags":["vendor-advisory","x_refsource_REDHAT","x_transferred","Broken Link","Patch","Vendor Advisory"]},{"url":"http://www.redhat.com/support/errata/RHSA-2002-248.html","tags":["vendor-advisory","x_refsource_REDHAT","x_transferred","Broken Link"]},{"url":"http://www.redhat.com/support/errata/RHSA-2002-244.html","tags":["vendor-advisory","x_refsource_REDHAT","x_transferred","Broken Link"]},{"url":"http://www.osvdb.org/2111","tags":["vdb-entry","x_refsource_OSVDB","x_transferred","Broken Link"]},{"url":"http://www.redhat.com/support/errata/RHSA-2002-214.html","tags":["vendor-advisory","x_refsource_REDHAT","x_transferred","Broken Link"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2002-0985"},{"url":"https://github.com/advisories/GHSA-39rv-383r-32wp"}],"sources":{"cve":[{"id":"CVE-2002-0985","description":"Argument injection vulnerability in the mail function for PHP 4.x to 4.2.2 may allow attackers to bypass safe mode restrictions and modify command line arguments to the MTA (e.g. sendmail) in the 5th argument to mail(), altering MTA behavior and possibly executing commands.","status":"published","published":"2004-09-01T04:00:00Z","modified":"2024-08-08T03:12:16.384Z","updated_at":"2026-11-02T14:33:55.303902Z"}],"euvd":[{"id":"EUVD-2002-0974","description":"Argument injection vulnerability in the mail function for PHP 4.x to 4.2.2 may allow attackers to bypass safe mode restrictions and modify command line arguments to the MTA (e.g. sendmail) in the 5th argument to mail(), altering MTA behavior and possibly executing commands.","status":"published","published":"2004-09-01T04:00:00Z","modified":"2024-08-08T03:12:16Z","updated_at":"2026-11-03T01:14:58.174731Z"}],"ghsa":[{"id":"GHSA-39rv-383r-32wp","title":"Argument injection vulnerability in the mail function for PHP 4.x to 4.2.2 may allow attackers to...","description":"Argument injection vulnerability in the mail function for PHP 4.x to 4.2.2 may allow attackers to bypass safe mode restrictions and modify command line arguments to the MTA (e.g. sendmail) in the 5th argument to mail(), altering MTA behavior and possibly executing commands.","status":"published","published":"2022-05-03T03:08:03Z","modified":"2023-02-01T05:01:03Z","updated_at":"2026-11-02T14:49:39.648637Z"}],"nvd":[{"id":"CVE-2002-0985","description":"Argument injection vulnerability in the mail function for PHP 4.x to 4.2.2 may allow attackers to bypass safe mode restrictions and modify command line arguments to the MTA (e.g. sendmail) in the 5th argument to mail(), altering MTA behavior and possibly executing commands.","status":"published","published":"2002-09-24T04:00:00Z","modified":"2026-06-16T21:58:30.727Z","cvss":[{"version":"2.0","score":7.5,"vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","level":"high","assessor":"primary"}],"cwes":["CWE-88"],"updated_at":"2026-11-02T14:00:42.827505Z"}],"osv":[{"id":"DSA-168","title":"php - bypassing safe_mode, CRLF injection","status":"published","published":"2002-09-18T00:00:00Z","modified":"2026-03-09T01:18:52.637484Z","updated_at":"2026-11-02T15:46:14.734124Z"}]}}
