phar_tar_number() parses the octal size field of a TAR header into a uint32_t with no overflow check. The field is 11 octal digits wide and holds values up to 0x1FFFFFFFF, so a size above 0xFFFFFFFF silently wraps. The parser then skips the wrong number of data blocks and interprets attacker-controlled file content as the next TAR header, which lets a crafted archive inject entries that PharData reports and extracts as if they were genuine.
Branches: PHP 8.5, PHP 8.4, PHP 8.3, PHP 8.2 · Check: 8.5.10, 8.4.25, 8.3.34
In PHP from 8.1.* before 8.1.32, from 8.2.* before 8.2.28, from 8.3.* before 8.3.19, from 8.4.* before 8.4.5, when http request module parses HTTP response obtained from a server, folded headers are parsed incorrectly, which may lead to misinterpreting the response and using incorrect headers, MIME types, etc.
Branches: PHP 8.4, PHP 8.3, PHP 8.2, PHP 8.1 · Check: 8.4.4, 8.3.18, 8.2.27
In PHP versions 8.1.* before 8.1.30, 8.2.* before 8.2.24, 8.3.* before 8.3.12, when using PHP-FPM SAPI and it is configured to catch workers output through catch_workers_output = yes, it may be possible to pollute the final log or remove up to 4 characters from the log messages by manipulating log message content. Additionally, if PHP-FPM is configured to use syslog output, it may be possible to further remove log data using the same vulnerability.
Branches: PHP 8.3, PHP 8.2, PHP 8.1 · Check: 8.3.11, 8.2.23, 8.1.29
In PHP versions 7.2.x below 7.2.33, 7.3.x below 7.3.21 and 7.4.x below 7.4.9, while processing PHAR files using phar extension, phar_parse_zipfile could be tricked into accessing freed memory, which could lead to a crash or information disclosure.
Branches: PHP 7.4, PHP 7.3, PHP 7.2 · Check: 7.4.8, 7.3.20, 7.2.32
The PEAR_REST class in REST.php in PEAR in PHP through 5.6.0 allows local users to write to arbitrary files via a symlink attack on a (1) rest.cachefile or (2) rest.cacheid file in /tmp/pear/cache/, related to the retrieveCacheFirst and useLocalCache functions.
Branches: PHP 5.6 · Check: 5.6.0
The phpinfo implementation in ext/standard/info.c in PHP before 5.4.30 and 5.5.x before 5.5.14 does not ensure use of the string data type for the PHP_AUTH_PW, PHP_AUTH_TYPE, PHP_AUTH_USER, and PHP_SELF variables, which might allow context-dependent attackers to obtain sensitive information from process memory by using the integer data type with crafted values, related to a "type confusion" vulnerability, as demonstrated by reading a private SSL key in an Apache HTTP Server web-hosting environment with mod_ssl and a PHP 5.3.x mod_php.
Branches: PHP 5.5, PHP 5.4, PHP 5.3 · Check: 5.5.13, 5.4.29, 5.3.28
acinclude.m4, as used in the configure script in PHP 5.5.13 and earlier, allows local users to overwrite arbitrary files via a symlink attack on the /tmp/phpglibccheck file.
Branches: PHP 5.5, PHP 5.4, PHP 5.3 · Check: 5.5.13, 5.4.29, 5.3.28
pdo_sql_parser.re in the PDO extension in PHP before 5.3.14 and 5.4.x before 5.4.4 does not properly determine the end of the query string during parsing of prepared statements, which allows remote attackers to cause a denial of service (out-of-bounds read and application crash) via a crafted parameter value.
Branches: PHP 5.4, PHP 5.3 · Check: 5.4.0, 5.3.13
PHP 4.4.4, 5.1.6, and other versions, when running on Apache, allows local users to modify behavior of other sites hosted on the same web server by modifying the mbstring.func_overload setting within .htaccess, which causes this setting to be applied to other virtual hosts on the same server.
Branches: PHP 5.1, PHP 4.4 · Check: 5.1.6, 4.4.4
Cross-site scripting (XSS) vulnerability in PHP, possibly 5.2.7 and earlier, when display_errors is enabled, allows remote attackers to inject arbitrary web script or HTML via unspecified vectors. NOTE: because of the lack of details, it is unclear whether this is related to CVE-2006-0208.
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.7, 5.1.0, 5.0.0
PHP 5.2.5 and earlier allows context-dependent attackers to cause a denial of service (application crash) via a long string in (1) the domain parameter to the dgettext function, the message parameter to the (2) dcgettext or (3) gettext function, the msgid1 parameter to the (4) dngettext or (5) ngettext function, or (6) the classname parameter to the stream_wrapper_register function. NOTE: this might not be a vulnerability in most web server environments that support multiple threads, unless this issue can be demonstrated for code execution.
Branches: PHP 5.2 · Check: 5.2.4
The imap_body function in PHP before 4.4.4 does not implement safemode or open_basedir checks, which allows local users to read arbitrary files or list arbitrary directory contents.
Branches: PHP 5.1, PHP 4.4 · Check: 5.1.4, 4.4.3
The mcrypt_create_iv function in ext/mcrypt/mcrypt.c in PHP before 4.4.7, 5.2.1, and possibly 5.0.x and other PHP 5 versions, calls php_rand_r with an uninitialized seed variable and therefore always generates the same initialization vector (IV), which might allow context-dependent attackers to decrypt certain data more easily because of the guessable encryption keys.
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.1, 4.4.6, 4.3.0
CRLF injection vulnerability in the ftp_putcmd function in PHP before 4.4.7, and 5.x before 5.2.2 allows remote attackers to inject arbitrary FTP commands via CRLF sequences in the parameters to earlier FTP commands.
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
PHP 4.x up to 4.4.4 and PHP 5 up to 5.1.6 allows local users to bypass certain Apache HTTP Server httpd.conf options, such as safe_mode and open_basedir, via the ini_restore function, which resets the values to their php.ini (Master Value) defaults.
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
Integer overflow in memory allocation routines in PHP before 5.1.6, when running on a 64-bit system, allows context-dependent attackers to bypass the memory_limit restriction.
Branches: PHP 5.1 · Check: 5.1.0
Buffer overflow in the LWZReadByte_ function in ext/gd/libgd/gd_gif_in.c in the GD extension in PHP before 5.1.5 allows remote attackers to have an unknown impact via a GIF file with input_code_size greater than MAX_LWZ_BITS, which triggers an overflow when initializing the table array.
Branches: PHP 5.1 · Check: 5.1.0
Buffer consumption vulnerability in the tempnam function in PHP 5.1.4 and 4.x before 4.4.3 allows local users to bypass restrictions and create PHP files with fixed names in other directories via a pathname argument longer than MAXPATHLEN, which prevents a unique string from being appended to the filename.
Branches: PHP 5.1, PHP 4.4, PHP 4.3, PHP 4.2, PHP 4.1, PHP 4.0 · Check: 5.1.4, 4.4.0, 4.3.0
The cURL library (libcurl) in PHP 4.4.2 and 5.1.4 allows attackers to bypass safe mode and read files via a file:// request containing null characters.
Branches: PHP 5.1, PHP 4.4 · Check: 5.1.4, 4.4.2
The copy function in file.c in PHP 4.4.2 and 5.1.2 allows local users to bypass safe mode and read arbitrary files via a source argument containing a compress.zlib:// URI.
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
PHP 4.4.2 and 5.1.2 allows local users to cause a crash (segmentation fault) by defining and executing a recursive function. NOTE: it has been reported by a reliable third party that some later versions are also affected.
Branches: PHP 5.1, PHP 4.4 · Check: 5.1.2, 4.4.2
Directory traversal vulnerability in file.c in PHP 4.4.2 and 5.1.2 allows local users to bypass open_basedir restrictions allows remote attackers to create files in arbitrary directories via the tempnam function.
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
Argument injection vulnerability in certain PHP 4.x and 5.x applications, when used with sendmail and when accepting remote input for the additional_parameters argument to the mb_send_mail function, allows context-dependent attackers to read and create arbitrary files by providing extra -C and -X arguments to sendmail. 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.0 · Check: 5.1.0, 5.0.0, 4.4.0
Multiple cross-site scripting (XSS) vulnerabilities in PHP 4.4.1 and 5.1.1, when display_errors and html_errors are on, allow remote attackers to inject arbitrary web script or HTML via inputs to PHP applications that are not filtered when they are included in the resulting error message.
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.1
The apache2handler SAPI (sapi_apache2.c) in the Apache module (mod_php) for PHP 5.x before 5.1.0 final and 4.4 before 4.4.1 final allows attackers to cause a denial of service (segmentation fault) via the session.save_path option in a .htaccess file or VirtualHost.
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
fopen_wrappers.c in PHP 4.4.0, and possibly other versions, does not properly restrict access to other directories when the open_basedir directive includes a trailing slash, which allows PHP scripts in one directory to access files in other directories whose names are substrings of the original directory.
Branches: PHP 4.4 · Check: 4.4.0
rfc1867.c in PHP before 5.0.2 allows local users to upload files to arbitrary locations via a PHP script with a certain MIME header that causes the "$_FILES" array to be modified.
Branches: PHP 5.0 · Check: 5.0.2
PHP 4.0 through 4.1.1 stores session IDs in temporary files whose name contains the session ID, which allows local users to hijack web connections.
Branches: PHP 4.1, PHP 4.0 · Check: 4.1.0, 4.0.4