← Vulnerability feed

Vulnerability record · CVE-2002-0985 · published 24 September 2002

CVE-2002-0985: Php argument injection vulnerability

Php · Php

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.

7.5 CVSS 2.0 High EPSS 3.0% · top 13.3% CWE-88 · Argument injection
7.5CVSS 2.0 base score
3.0%EPSS exploitation probability, 30 days
NoNot in CISA KEV
2Affected product versions listed by NVD
30References
16 Jun 2026Last modified by NVD

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.

AV:N/AC:L/Au:N/C:P/I:P/A:P

Affected products

2 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

LinkTags
ftp://ftp.caldera.com/pub/security/OpenLinux/CSSA-2003-008.0.txt Broken Link
http://distro.conectiva.com.br/atualizacoes/?id=a&anuncio=000545 Broken Link
http://marc.info/?l=bugtraq&m=103011916928204&w=2 Third Party Advisory
http://marc.info/?l=bugtraq&m=105760591228031&w=2 Third Party Advisory
http://www.debian.org/security/2002/dsa-168 Broken LinkPatchVendor Advisory
http://www.mandrakesoft.com/security/advisories?name=MDKSA-2003:082 Broken Link
http://www.novell.com/linux/security/advisories/2002_036_modphp4.html Broken Link
http://www.osvdb.org/2111 Broken Link
http://www.redhat.com/support/errata/RHSA-2002-213.html Broken LinkPatchVendor Advisory
http://www.redhat.com/support/errata/RHSA-2002-214.html Broken Link
http://www.redhat.com/support/errata/RHSA-2002-243.html Broken Link
http://www.redhat.com/support/errata/RHSA-2002-244.html Broken Link
http://www.redhat.com/support/errata/RHSA-2002-248.html Broken Link
http://www.redhat.com/support/errata/RHSA-2003-159.html Broken Link
https://exchange.xforce.ibmcloud.com/vulnerabilities/9966 Third Party AdvisoryVDB Entry
ftp://ftp.caldera.com/pub/security/OpenLinux/CSSA-2003-008.0.txt Broken Link
http://distro.conectiva.com.br/atualizacoes/?id=a&anuncio=000545 Broken Link
http://marc.info/?l=bugtraq&m=103011916928204&w=2 Third Party Advisory
http://marc.info/?l=bugtraq&m=105760591228031&w=2 Third Party Advisory
http://www.debian.org/security/2002/dsa-168 Broken LinkPatchVendor Advisory
http://www.mandrakesoft.com/security/advisories?name=MDKSA-2003:082 Broken Link
http://www.novell.com/linux/security/advisories/2002_036_modphp4.html Broken Link
http://www.osvdb.org/2111 Broken Link
http://www.redhat.com/support/errata/RHSA-2002-213.html Broken LinkPatchVendor Advisory
http://www.redhat.com/support/errata/RHSA-2002-214.html Broken Link
http://www.redhat.com/support/errata/RHSA-2002-243.html Broken Link
http://www.redhat.com/support/errata/RHSA-2002-244.html Broken Link
http://www.redhat.com/support/errata/RHSA-2002-248.html Broken Link
http://www.redhat.com/support/errata/RHSA-2003-159.html Broken Link
https://exchange.xforce.ibmcloud.com/vulnerabilities/9966 Third Party AdvisoryVDB Entry

Track CVE-2002-0985 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

9.8CVE-2024-4577PHP-CGI on Windows argument injection leads to remote code executionPHP-CGI on Windows can misinterpret characters in the command line passed to Win32 API functions when certain code pages are configured, due to Windo…KEVEPSS 100%analysed9.8CVE-2019-11043PHP-FPM buffer overflow enables remote code executionPHP-FPM in certain configurations writes past allocated buffers into FCGI protocol data space, an out-of-bounds write (CWE-787, CWE-120). It affects …KEVEPSS 100%analysed9.8CVE-2012-1823PHP-CGI query string option injection enables remote code executionPHP versions before 5.3.12 and 5.4.x before 5.4.2, when run as a CGI script (php-cgi), mishandle query strings that lack an equals sign, allowing com…KEVEPSS 100%analysed10.0CVE-2015-0235glibc gethostbyname heap buffer overflow (GHOST)CVE-2015-0235 is a heap-based buffer overflow in the __nss_hostname_digits_dots function in glibc 2.2 and other 2.x versions before 2.18. It is reach…EPSS 95%analysed10.0CVE-2012-2688Php vulnerabilityUnspecified vulnerability in the _php_stream_scandir function in the stream implementation in PHP before 5.3.15 and 5.4.x before 5.4.5 has unknown im…EPSS 10%10.0CVE-2012-2376Php memory buffer overflow vulnerabilityBuffer overflow in the com_print_typeinfo function in PHP 5.4.3 and earlier on Windows allows remote attackers to execute arbitrary code via crafted …EPSS 20%10.0CVE-2011-3268Php memory buffer overflow vulnerabilityBuffer overflow in the crypt function in PHP before 5.3.7 allows context-dependent attackers to have an unspecified impact via a long salt argument, …EPSS 5.7%10.0CVE-2009-4143Php vulnerabilityPHP before 5.2.12 does not properly handle session data, which has unspecified impact and attack vectors related to (1) interrupt corruption of the S…EPSS 2.9%

Source: NIST National Vulnerability Database (record CVE-2002-0985), CISA KEV, FIRST EPSS (scores of 2026-10-03). This page is refreshed as NVD updates the record.