{"id":"CVE-2002-0985","state":"PUBLISHED","title":"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. s","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.","publishedAt":"2004-09-01T04:00:00.000Z","updatedAt":"2024-08-08T03:12:16.384Z","severity":null,"assigner":"mitre","products":["n/a n/a"],"affected":[{"vendor":"n/a","product":"n/a","versions":[{"version":"n/a","status":"affected"}]}],"references":["http://marc.info/?l=bugtraq&m=105760591228031&w=2","http://www.debian.org/security/2002/dsa-168","https://exchange.xforce.ibmcloud.com/vulnerabilities/9966","http://marc.info/?l=bugtraq&m=103011916928204&w=2","http://www.redhat.com/support/errata/RHSA-2002-243.html","http://www.redhat.com/support/errata/RHSA-2003-159.html","http://www.mandrakesoft.com/security/advisories?name=MDKSA-2003:082","http://www.novell.com/linux/security/advisories/2002_036_modphp4.html","http://distro.conectiva.com.br/atualizacoes/?id=a&anuncio=000545","http://www.redhat.com/support/errata/RHSA-2002-213.html","http://www.redhat.com/support/errata/RHSA-2002-248.html","http://www.redhat.com/support/errata/RHSA-2002-244.html","http://www.osvdb.org/2111","http://www.redhat.com/support/errata/RHSA-2002-214.html"],"weaknesses":[],"ingestedAt":"2026-10-29T19:26:37.469Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2002/0xxx/CVE-2002-0985.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2002-0985","state":"PUBLISHED","datePublished":"2004-09-01T04:00:00.000Z","dateUpdated":"2024-08-08T03:12:16.384Z","assignerShortName":"mitre","assignerOrgId":"8254265b-2729-46b6-b9e3-3dfca2d5bfca","dateReserved":"2002-08-23T00:00:00.000Z"},"containers":{"cna":{"descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"n/a","product":"n/a","versions":[{"version":"n/a","status":"affected"}]}],"references":[{"url":"http://marc.info/?l=bugtraq&m=105760591228031&w=2","name":"20030707 [OpenPKG-SA-2003.032] OpenPKG Security Advisory (php)","tags":["mailing-list","x_refsource_BUGTRAQ"]},{"url":"http://www.debian.org/security/2002/dsa-168","name":"DSA-168","tags":["vendor-advisory","x_refsource_DEBIAN"]},{"url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/9966","name":"php-mail-safemode-bypass(9966)","tags":["vdb-entry","x_refsource_XF"]},{"url":"http://marc.info/?l=bugtraq&m=103011916928204&w=2","name":"20020823 PHP: Bypass safe_mode and inject ASCII control chars with mail()","tags":["mailing-list","x_refsource_BUGTRAQ"]},{"url":"http://www.redhat.com/support/errata/RHSA-2002-243.html","name":"RHSA-2002:243","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"http://www.redhat.com/support/errata/RHSA-2003-159.html","name":"RHSA-2003:159","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"http://www.mandrakesoft.com/security/advisories?name=MDKSA-2003:082","name":"MDKSA-2003:082","tags":["vendor-advisory","x_refsource_MANDRAKE"]},{"url":"ftp://ftp.caldera.com/pub/security/OpenLinux/CSSA-2003-008.0.txt","name":"CSSA-2003-008.0","tags":["vendor-advisory","x_refsource_CALDERA"]},{"url":"http://www.novell.com/linux/security/advisories/2002_036_modphp4.html","name":"SuSE-SA:2002:036","tags":["vendor-advisory","x_refsource_SUSE"]},{"url":"http://distro.conectiva.com.br/atualizacoes/?id=a&anuncio=000545","name":"CLA-2002:545","tags":["vendor-advisory","x_refsource_CONECTIVA"]},{"url":"http://www.redhat.com/support/errata/RHSA-2002-213.html","name":"RHSA-2002:213","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"http://www.redhat.com/support/errata/RHSA-2002-248.html","name":"RHSA-2002:248","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"http://www.redhat.com/support/errata/RHSA-2002-244.html","name":"RHSA-2002:244","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"http://www.osvdb.org/2111","name":"2111","tags":["vdb-entry","x_refsource_OSVDB"]},{"url":"http://www.redhat.com/support/errata/RHSA-2002-214.html","name":"RHSA-2002:214","tags":["vendor-advisory","x_refsource_REDHAT"]}],"problemTypes":[{"descriptions":[{"description":"n/a","lang":"en","type":"text"}]}],"providerMetadata":{"shortName":"mitre","dateUpdated":"2007-11-13T00:00:00.000Z","orgId":"8254265b-2729-46b6-b9e3-3dfca2d5bfca"},"datePublic":"2002-08-23T00:00:00.000Z","x_legacyV4Record":{"CVE_data_meta":{"ASSIGNER":"cve@mitre.org","ID":"CVE-2002-0985","STATE":"PUBLIC"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"n/a","version":{"version_data":[{"version_value":"n/a"}]}}]},"vendor_name":"n/a"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"n/a"}]}]},"references":{"reference_data":[{"name":"20030707 [OpenPKG-SA-2003.032] OpenPKG Security Advisory (php)","refsource":"BUGTRAQ","url":"http://marc.info/?l=bugtraq&m=105760591228031&w=2"},{"name":"DSA-168","refsource":"DEBIAN","url":"http://www.debian.org/security/2002/dsa-168"},{"name":"php-mail-safemode-bypass(9966)","refsource":"XF","url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/9966"},{"name":"20020823 PHP: Bypass safe_mode and inject ASCII control chars with mail()","refsource":"BUGTRAQ","url":"http://marc.info/?l=bugtraq&m=103011916928204&w=2"},{"name":"RHSA-2002:243","refsource":"REDHAT","url":"http://www.redhat.com/support/errata/RHSA-2002-243.html"},{"name":"RHSA-2003:159","refsource":"REDHAT","url":"http://www.redhat.com/support/errata/RHSA-2003-159.html"},{"name":"MDKSA-2003:082","refsource":"MANDRAKE","url":"http://www.mandrakesoft.com/security/advisories?name=MDKSA-2003:082"},{"name":"CSSA-2003-008.0","refsource":"CALDERA","url":"ftp://ftp.caldera.com/pub/security/OpenLinux/CSSA-2003-008.0.txt"},{"name":"SuSE-SA:2002:036","refsource":"SUSE","url":"http://www.novell.com/linux/security/advisories/2002_036_modphp4.html"},{"name":"CLA-2002:545","refsource":"CONECTIVA","url":"http://distro.conectiva.com.br/atualizacoes/?id=a&anuncio=000545"},{"name":"RHSA-2002:213","refsource":"REDHAT","url":"http://www.redhat.com/support/errata/RHSA-2002-213.html"},{"name":"RHSA-2002:248","refsource":"REDHAT","url":"http://www.redhat.com/support/errata/RHSA-2002-248.html"},{"name":"RHSA-2002:244","refsource":"REDHAT","url":"http://www.redhat.com/support/errata/RHSA-2002-244.html"},{"name":"2111","refsource":"OSVDB","url":"http://www.osvdb.org/2111"},{"name":"RHSA-2002:214","refsource":"REDHAT","url":"http://www.redhat.com/support/errata/RHSA-2002-214.html"}]}}},"adp":[{"title":"CVE Program Container","references":[{"url":"http://marc.info/?l=bugtraq&m=105760591228031&w=2","name":"20030707 [OpenPKG-SA-2003.032] OpenPKG Security Advisory (php)","tags":["mailing-list","x_refsource_BUGTRAQ","x_transferred"]},{"url":"http://www.debian.org/security/2002/dsa-168","name":"DSA-168","tags":["vendor-advisory","x_refsource_DEBIAN","x_transferred"]},{"url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/9966","name":"php-mail-safemode-bypass(9966)","tags":["vdb-entry","x_refsource_XF","x_transferred"]},{"url":"http://marc.info/?l=bugtraq&m=103011916928204&w=2","name":"20020823 PHP: Bypass safe_mode and inject ASCII control chars with mail()","tags":["mailing-list","x_refsource_BUGTRAQ","x_transferred"]},{"url":"http://www.redhat.com/support/errata/RHSA-2002-243.html","name":"RHSA-2002:243","tags":["vendor-advisory","x_refsource_REDHAT","x_transferred"]},{"url":"http://www.redhat.com/support/errata/RHSA-2003-159.html","name":"RHSA-2003:159","tags":["vendor-advisory","x_refsource_REDHAT","x_transferred"]},{"url":"http://www.mandrakesoft.com/security/advisories?name=MDKSA-2003:082","name":"MDKSA-2003:082","tags":["vendor-advisory","x_refsource_MANDRAKE","x_transferred"]},{"url":"ftp://ftp.caldera.com/pub/security/OpenLinux/CSSA-2003-008.0.txt","name":"CSSA-2003-008.0","tags":["vendor-advisory","x_refsource_CALDERA","x_transferred"]},{"url":"http://www.novell.com/linux/security/advisories/2002_036_modphp4.html","name":"SuSE-SA:2002:036","tags":["vendor-advisory","x_refsource_SUSE","x_transferred"]},{"url":"http://distro.conectiva.com.br/atualizacoes/?id=a&anuncio=000545","name":"CLA-2002:545","tags":["vendor-advisory","x_refsource_CONECTIVA","x_transferred"]},{"url":"http://www.redhat.com/support/errata/RHSA-2002-213.html","name":"RHSA-2002:213","tags":["vendor-advisory","x_refsource_REDHAT","x_transferred"]},{"url":"http://www.redhat.com/support/errata/RHSA-2002-248.html","name":"RHSA-2002:248","tags":["vendor-advisory","x_refsource_REDHAT","x_transferred"]},{"url":"http://www.redhat.com/support/errata/RHSA-2002-244.html","name":"RHSA-2002:244","tags":["vendor-advisory","x_refsource_REDHAT","x_transferred"]},{"url":"http://www.osvdb.org/2111","name":"2111","tags":["vdb-entry","x_refsource_OSVDB","x_transferred"]},{"url":"http://www.redhat.com/support/errata/RHSA-2002-214.html","name":"RHSA-2002:214","tags":["vendor-advisory","x_refsource_REDHAT","x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-08T03:12:16.384Z"}}]}}}