The array_user_key_compare function in PHP 4.4.6 and earlier, and 5.x up to 5.2.1, makes erroneous calls to zval_dtor, which triggers memory corruption and allows local users to bypass safe_mode and execute arbitrary code via a certain unset operation after array_user_key_compare has been called.
Branches: PHP 5.2, PHP 5.1, PHP 5.0, PHP 4.4 · Check: 5.2.1, 4.4.6
Multiple buffer overflows in the (1) ibase_connect and (2) ibase_pconnect functions in the interbase extension in PHP 4.4.6 and earlier allow context-dependent attackers to execute arbitrary code via a long argument.
Branches: PHP 4.4 · Check: 4.4.6
The zip:// URL wrapper provided by the PECL zip extension in PHP before 4.4.7, and 5.2.0 and 5.2.1, does not implement safemode or open_basedir checks, which allows remote attackers to read ZIP archives located outside of the intended directories.
Branches: PHP 5.2, PHP 4.4, PHP 4.3, PHP 4.2, PHP 4.1, PHP 4.0, PHP 3.0 · Check: 5.2.0, 4.4.6, 4.3.0
ext/filter in PHP 5.2.0, when FILTER_SANITIZE_STRING is used with the FILTER_FLAG_STRIP_LOW flag, does not properly strip HTML tags, which allows remote attackers to conduct cross-site scripting (XSS) attacks via HTML with a '<' character followed by certain whitespace characters, which passes one filter but is collapsed into a valid tag, as demonstrated using %0b.
Branches: PHP 5.2 · Check: 5.2.0
The FDF support (ext/fdf) in PHP 5.2.0 and earlier does not implement the input filtering hooks for ext/filter, which allows remote attackers to bypass web site filters via an application/vnd.fdf formatted POST.
Branches: PHP 5.2, PHP 5.1, PHP 5.0 · Check: 5.2.0, 5.1.0, 5.0.0
Buffer overflow in PHP 4.4.6 and earlier, and unspecified PHP 5 versions, allows local and possibly remote attackers to execute arbitrary code via long server name arguments to the (1) mssql_connect and (2) mssql_pconnect functions.
Branches: PHP 4.4 · Check: 4.4.6
Buffer overflow in the crack extension (CrackLib), as bundled with PHP 4.4.6 and other versions before 5.0.0, might allow local users to gain privileges via a long argument to the crack_opendict function.
Branches: PHP 4.4 · Check: 4.4.6
The import_request_variables function in PHP 4.0.7 through 4.4.6, and 5.x before 5.2.2, when called without a prefix, does not prevent the (1) GET, (2) POST, (3) COOKIE, (4) FILES, (5) SERVER, (6) SESSION, and other superglobals from being overwritten, which allows remote attackers to spoof source IP address and Referer data, and have other unspecified impact. NOTE: it could be argued that this is a design limitation of PHP and that only the misuse of this feature, i.e. implementation bugs in applications, should be included in CVE. However, it has been fixed by the vendor.
Branches: PHP 5.2, PHP 5.1, PHP 5.0, PHP 4.4, PHP 4.3, PHP 4.2, PHP 4.1, PHP 4.0 · Check: 5.2.0, 5.1.0, 5.0.0
The php_binary serialization handler in the session extension in PHP before 4.4.5, and 5.x before 5.2.1, allows context-dependent attackers to obtain sensitive information (memory contents) via a serialized variable entry with a large length value, which triggers a buffer over-read.
Branches: PHP 5.2, PHP 5.1, PHP 5.0, PHP 4.4, PHP 4.3, PHP 4.2, PHP 4.1, PHP 4.0 · Check: 5.2.0, 5.1.0, 5.0.0
The ovrimos_close function in the Ovrimos extension for PHP before 4.4.5 can trigger efree of an arbitrary address, which might allow context-dependent attackers to execute arbitrary code.
Branches: PHP 4.4, PHP 4.3, PHP 4.2, PHP 4.1, PHP 4.0, PHP 3.0 · Check: 4.4.0, 4.3.0, 4.2.0
The ovrimos_longreadlen function in the Ovrimos extension for PHP before 4.4.5 allows context-dependent attackers to write to arbitrary memory locations via the result_id and length arguments.
Branches: PHP 4.4, PHP 4.3, PHP 4.2, PHP 4.1, PHP 4.0, PHP 3.0 · Check: 4.4.0, 4.3.0, 4.2.0
Integer overflow in the substr_compare function in PHP 5.2.1 and earlier allows context-dependent attackers to read sensitive memory via a large value in the length argument, a different vulnerability than CVE-2006-1991.
Branches: PHP 5.2 · Check: 5.2.1
A regression error in the phpinfo function in PHP 4.4.3 to 4.4.6, and PHP 6.0 in CVS, allows remote attackers to conduct cross-site scripting (XSS) attacks via GET, POST, or COOKIE array values, which are not escaped in the phpinfo output, as originally fixed for CVE-2005-3388.
Branches: PHP 4.4 · Check: 4.4.4
Integer overflow in PHP 4.4.4 and earlier allows remote context-dependent attackers to execute arbitrary code via a long string to the unserialize function, which triggers the overflow in the ZVAL reference counter.
Branches: PHP 4.4 · Check: 4.4.4
The zend_hash_init function in PHP 5 before 5.2.1 and PHP 4 before 4.4.5, when running on a 64-bit platform, allows context-dependent attackers to cause a denial of service (infinite loop) by unserializing certain integer expressions, which only cause 32-bit arguments to be used after the check for a negative value, as demonstrated by an "a:2147483649:{" argument.
Branches: PHP 5.2, PHP 5.1, PHP 5.0, PHP 4.4, PHP 4.3, PHP 4.2, PHP 4.1, PHP 4.0 · Check: 5.2.0, 4.4.4
The WDDX deserializer in the wddx extension in PHP 5 before 5.2.1 and PHP 4 before 4.4.5 does not properly initialize the key_length variable for a numerical key, which allows context-dependent attackers to read stack memory via a wddxPacket element that contains a variable with a string name before a numerical variable.
Branches: PHP 5.2, PHP 5.1, PHP 5.0, PHP 4.4, PHP 4.3, PHP 4.2, PHP 4.1, PHP 4.0 · Check: 5.2.0, 4.4.4
Buffer underflow in PHP before 5.2.1 allows attackers to cause a denial of service via unspecified vectors involving the sapi_header_op function.
Branches: PHP 5.2, PHP 5.1, PHP 5.0, PHP 4.4, PHP 4.3, PHP 4.2, PHP 4.1, PHP 4.0 +1 more · Check: 5.2.0, 5.1.0, 5.0.0
PHP 5.2.0 and 4.4 allows local users to bypass safe_mode and open_basedir restrictions via a malicious path and a null byte before a ";" in a session_save_path argument, followed by an allowed path, which causes a parsing inconsistency in which PHP validates the allowed path but sets session.save_path to the malicious path.
Branches: PHP 5.2, PHP 4.4 · Check: 5.2.0, 4.4.0
Race condition in the symlink function in PHP 5.1.6 and earlier allows local users to bypass the open_basedir restriction by using a combination of symlink, mkdir, and unlink functions to change the file path after the open_basedir check and before the file is opened by the underlying system, as demonstrated by symlinking a symlink into a subdirectory, to point to a parent directory via .. (dot dot) sequences, and then unlinking the resulting symlink.
Branches: PHP 5.1, PHP 5.0, PHP 4.4, PHP 4.3, PHP 4.2, PHP 4.1, PHP 4.0 · Check: 5.1.6, 5.0.0, 4.4.0
The ip2long function in PHP 5.1.4 and earlier may incorrectly validate an arbitrary string and return a valid network IP address, which allows remote attackers to obtain network information and facilitate other attacks, as demonstrated using SQL injection in the X-FORWARDED-FOR Header in index.php in MiniBB 2.0. NOTE: it could be argued that the ip2long behavior represents a risk for security-relevant issues in a way that is similar to strcpy's role in buffer overflows, in which case this would be a class of implementation bugs that would require separate CVE items for each PHP application that uses ip2long in a security-relevant manner.
Branches: PHP 5.1, PHP 5.0, PHP 4.3 · Check: 5.1.4, 5.0.2, 4.3.3
scanf.c in PHP 5.1.4 and earlier, and 4.4.3 and earlier, allows context-dependent attackers to execute arbitrary code via a sscanf PHP function call that performs argument swapping, which increments an index past the end of an array and triggers a buffer over-read.
Branches: PHP 5.1, PHP 5.0, PHP 4.4, PHP 4.3, PHP 4.2, PHP 4.1, PHP 4.0 · Check: 5.1.0, 5.0.0, 4.4.0
The error_log function in basic_functions.c in PHP before 4.4.4 and 5.x before 5.1.5 allows local users to bypass safe mode and open_basedir restrictions via a "php://" or other scheme in the third argument, which disables safe mode.
Branches: PHP 5.1, PHP 5.0, PHP 4.4, PHP 4.3, PHP 4.2, PHP 4.1, PHP 4.0, PHP 3.0 · Check: 5.1.0, 5.0.0, 4.4.3
The substr_compare function in string.c in PHP 5.1.2 allows context-dependent attackers to cause a denial of service (memory access violation) via an out-of-bounds offset argument.
Branches: PHP 5.1 · Check: 5.1.2
Integer overflow in the wordwrap function in string.c in PHP 4.4.2 and 5.1.2 might allow context-dependent attackers to execute arbitrary code via certain long arguments that cause a small buffer to be allocated, which triggers a heap-based buffer overflow in a memcpy function call, a different vulnerability than CVE-2002-1396.
Branches: PHP 5.1, PHP 4.4 · Check: 5.1.2, 4.4.2
Cross-site scripting (XSS) vulnerability in phpinfo (info.c) in PHP 5.1.2 and 4.4.2 allows remote attackers to inject arbitrary web script or HTML via long array variables, including (1) a large number of dimensions or (2) long values, which prevents HTML tags from being removed.
Branches: PHP 5.1, PHP 4.4 · Check: 5.1.2, 4.4.2
PHP before 5.1.3-RC1 might allow remote attackers to obtain portions of memory via crafted binary data sent to a script that processes user input in the html_entity_decode function and sends the encoded results back to the client, aka a "binary safety" issue. NOTE: this issue has been referred to as a "memory leak," but it is an information leak that discloses memory contents.
Branches: PHP 5.1, PHP 5.0, PHP 4.4, PHP 4.3, PHP 4.2, PHP 4.1, PHP 4.0, PHP 3.0 · Check: 5.1.0, 5.0.0, 4.4.0
Argument injection vulnerability in certain PHP 3.x, 4.x, and 5.x applications, when used with sendmail and when accepting remote input for the additional_parameters argument to the mail function, allows remote attackers to read and create arbitrary files via the sendmail -C and -X arguments. NOTE: it could be argued that this is a class of technology-specific vulnerability, instead of a particular instance; if so, then this should not be included in CVE.
Branches: PHP 5.1, PHP 5.0, PHP 4.4, PHP 4.3, PHP 4.2, PHP 4.1, PHP 4.0, PHP 3.0 · Check: 5.1.0, 5.0.0, 4.4.0
Multiple HTTP response splitting vulnerabilities in PHP 5.1.1 allow remote attackers to inject arbitrary HTTP headers via a crafted Set-Cookie header, related to the (1) session extension (aka ext/session) and the (2) header function.
Branches: PHP 5.1, PHP 5.0 · Check: 5.1.0, 5.0.0
CRLF injection vulnerability in the mb_send_mail function in PHP before 5.1.0 might allow remote attackers to inject arbitrary e-mail headers via line feeds (LF) in the "To" address argument.
Branches: PHP 5.0, PHP 4.4, PHP 4.3, PHP 4.2, PHP 4.1, PHP 4.0 · Check: 5.0.0, 4.4.0, 4.3.0
The exif_read_data function in the Exif module in PHP before 4.4.1 allows remote attackers to cause a denial of service (infinite loop) via a malformed JPEG image.
Branches: PHP 4.4, PHP 4.3, PHP 4.2, PHP 4.1, PHP 4.0 · Check: 4.4.0, 4.3.0, 4.2.0
The parse_str function in PHP 4.x up to 4.4.0 and 5.x up to 5.0.5, when called with only one parameter, allows remote attackers to enable the register_globals directive via inputs that cause a request to be terminated due to the memory_limit setting, which causes PHP to set an internal flag that enables register_globals and allows attackers to exploit vulnerabilities in PHP applications that would otherwise be protected.
Branches: PHP 5.0, PHP 4.4, PHP 4.3, PHP 4.2, PHP 4.1, PHP 4.0 · Check: 5.0.0, 4.4.0, 4.3.0
Cross-site scripting (XSS) vulnerability in the phpinfo function in PHP 4.x up to 4.4.0 and 5.x up to 5.0.5 allows remote attackers to inject arbitrary web script or HTML via a crafted URL with a "stacked array assignment."
Branches: PHP 5.0, PHP 4.4, PHP 4.3, PHP 4.2, PHP 4.1, PHP 4.0 · Check: 5.0.0, 4.4.0, 4.3.0
The php_next_marker function in image.c for PHP 4.2.2, 4.3.9, 4.3.10 and 5.0.3, as reachable by the getimagesize PHP function, allows remote attackers to cause a denial of service (infinite loop) via a JPEG image with an invalid marker value, which causes a negative length value to be passed to php_stream_seek.
Branches: PHP 5.0, PHP 4.3, PHP 4.2 · Check: 5.0.3, 4.3.9, 4.2.2
The php_handle_iff function in image.c for PHP 4.2.2, 4.3.9, 4.3.10 and 5.0.3, as reachable by the getimagesize PHP function, allows remote attackers to cause a denial of service (infinite loop) via a -8 size value.
Branches: PHP 5.0, PHP 4.3, PHP 4.2 · Check: 5.0.3, 4.3.9, 4.2.2
exif.c in PHP before 4.3.11 allows remote attackers to cause a denial of service (memory consumption and crash) via an EXIF header with a large IFD nesting level, which causes significant stack recursion.
Branches: PHP 4.3 · Check: 4.3.0
The addslashes function in PHP 4.3.9 does not properly escape a NULL (/0) character, which may allow remote attackers to read arbitrary files in PHP applications that contain a directory traversal vulnerability in require or include statements, but are otherwise protected by the magic_quotes_gpc mechanism. NOTE: this issue was originally REJECTed by its CNA before publication, but that decision is in active dispute. This candidate may change significantly in the future as a result of further discussion.
Branches: PHP 5.0, PHP 4.3 · Check: 5.0.0, 4.3.6
PHP 4.0 with cURL functions allows remote attackers to bypass the open_basedir setting and read arbitrary files via a file: URL argument to the curl_init function.
Branches: PHP 4.0 · Check: 4.0.1
php_variables.c in PHP before 5.0.2 allows remote attackers to read sensitive memory contents via (1) GET, (2) POST, or (3) COOKIE GPC variables that end in an open bracket character, which causes PHP to calculate an incorrect string length.
Branches: PHP 5.0 · Check: 5.0.2
The strip_tags function in PHP 4.x up to 4.3.7, and 5.x up to 5.0.0RC3, does not filter null (\0) characters within tag names when restricting input to allowed tags, which allows dangerous tags to be processed by web browsers such as Internet Explorer and Safari, which ignore null characters and facilitate the exploitation of cross-site scripting (XSS) vulnerabilities.
Branches: PHP 4.3, PHP 4.2, PHP 4.1, PHP 4.0 · Check: 4.3.0, 4.2.0, 4.1.0
The memory_limit functionality in PHP 4.x up to 4.3.7, and 5.x up to 5.0.0RC3, under certain conditions such as when register_globals is enabled, allows remote attackers to execute arbitrary code by triggering a memory_limit abort during execution of the zend_hash_init function and overwriting a HashTable destructor pointer before the initialization of key data structures is complete.
Branches: PHP 5.0 · Check: 5.0.0
Buffer overflow in the imap_fetch_overview function in the IMAP functionality (php_imap.c) in PHP before 4.3.3 allows remote attackers to cause a denial of service (segmentation fault) and possibly execute arbitrary code via a long e-mail address in a (1) To or (2) From header.
Branches: PHP 4.3 · Check: 4.3.0
The IMAP functionality in PHP before 4.3.1 allows remote attackers to cause a denial of service via an e-mail message with a (1) To or (2) From header with an address that contains a large number of "\" (backslash) characters.
Branches: PHP 4.3, PHP 4.2 · Check: 4.3.0, 4.2.0
Cross-site scripting (XSS) vulnerability in the transparent SID support capability for PHP before 4.3.2 (session.use_trans_sid) allows remote attackers to insert arbitrary script via the PHPSESSID parameter.
Branches: PHP 4.3 · Check: 4.3.1
The imap_header function in the IMAP functionality for PHP before 4.3.0 allows remote attackers to cause a denial of service via an e-mail message with a large number of "To" addresses, which triggers an error in the rfc822_write_address function.
Branches: PHP 4.2, PHP 4.1, PHP 4.0, PHP 3.0 · Check: 4.2.3, 4.1.0, 4.0.1
The php_if_imap_mime_header_decode function in the IMAP functionality in PHP before 4.2.2 allows remote attackers to cause a denial of service (crash) via an e-mail header with a long "To" header.
Branches: PHP 4.2 · Check: 4.2.0
Cross-site scripting (XSS) vulnerability in the phpinfo function in PHP 4.2.3 allows remote attackers to inject arbitrary web script or HTML via the query string argument, as demonstrated using soinfo.php.
Branches: PHP 4.2 · Check: 4.2.3
CRLF injection vulnerability in PHP 4.2.1 through 4.2.3, when allow_url_fopen is enabled, allows remote attackers to modify HTTP headers for outgoing requests by causing CRLF sequences to be injected into arguments that are passed to the (1) fopen or (2) file functions.
Branches: PHP 4.2, PHP 4.1, PHP 4.0, PHP 3.0 · Check: 4.2.0, 4.1.0, 4.0.3
The mail function in PHP 4.x to 4.2.2 does not filter ASCII control characters from its arguments, which could allow remote attackers to modify mail message content, including mail headers, and possibly use PHP as a "spam proxy."
Branches: PHP 4.2, PHP 4.1, PHP 4.0, PHP 3.0 · Check: 4.2.0, 4.1.0, 4.0.1
move_uploaded_file in PHP does not does not check for the base directory (open_basedir), which could allow remote attackers to upload files to unintended locations on the system.
Branches: PHP 4.1, PHP 4.0, PHP 3.0 · Check: 4.1.0, 4.0.1, 3.0.1
PHP, when not configured with the "display_errors = Off" setting in php.ini, allows remote attackers to obtain the physical path for an include file via a trailing slash in a request to a directly accessible PHP program, which modifies the base path, causes the include directive to fail, and produces an error message that contains the path.
Branches: PHP 4.1, PHP 4.0 · Check: 4.1.0, 4.0.1