sapi/cgi/cgi_main.c in the CGI component in PHP through 5.4.36, 5.5.x through 5.5.20, and 5.6.x through 5.6.4, when mmap is used to read a .php file, does not properly consider the mapping's length during processing of an invalid file that begins with a # character and lacks a newline character, which causes an out-of-bounds read and might (1) allow remote attackers to obtain sensitive information from php-cgi process memory by leveraging the ability to upload a .php file or (2) trigger unexpected code execution if a valid PHP script is present in memory locations adjacent to the mapping.
{ "availability": "No subscription required", "ubuntu_priority": "low", "binaries": [ { "php5-gd": "5.5.9+dfsg-1ubuntu4.6", "libphp5-embed": "5.5.9+dfsg-1ubuntu4.6", "php5-mysqlnd": "5.5.9+dfsg-1ubuntu4.6", "php5-dbg": "5.5.9+dfsg-1ubuntu4.6", "php-pear": "5.5.9+dfsg-1ubuntu4.6", "php5-cli": "5.5.9+dfsg-1ubuntu4.6", "php5-fpm": "5.5.9+dfsg-1ubuntu4.6", "php5-pspell": "5.5.9+dfsg-1ubuntu4.6", "php5-mysql": "5.5.9+dfsg-1ubuntu4.6", "php5-curl": "5.5.9+dfsg-1ubuntu4.6", "php5-ldap": "5.5.9+dfsg-1ubuntu4.6", "php5-pgsql": "5.5.9+dfsg-1ubuntu4.6", "php5-xsl": "5.5.9+dfsg-1ubuntu4.6", "php5-readline": "5.5.9+dfsg-1ubuntu4.6", "php5-common": "5.5.9+dfsg-1ubuntu4.6", "php5-enchant": "5.5.9+dfsg-1ubuntu4.6", "php5-dev": "5.5.9+dfsg-1ubuntu4.6", "libapache2-mod-php5filter": "5.5.9+dfsg-1ubuntu4.6", "php5": "5.5.9+dfsg-1ubuntu4.6", "php5-sybase": "5.5.9+dfsg-1ubuntu4.6", "php5-gmp": "5.5.9+dfsg-1ubuntu4.6", "php5-odbc": "5.5.9+dfsg-1ubuntu4.6", "php5-cgi": "5.5.9+dfsg-1ubuntu4.6", "php5-recode": "5.5.9+dfsg-1ubuntu4.6", "libapache2-mod-php5": "5.5.9+dfsg-1ubuntu4.6", "php5-snmp": "5.5.9+dfsg-1ubuntu4.6", "php5-sqlite": "5.5.9+dfsg-1ubuntu4.6", "php5-intl": "5.5.9+dfsg-1ubuntu4.6", "php5-xmlrpc": "5.5.9+dfsg-1ubuntu4.6", "php5-tidy": "5.5.9+dfsg-1ubuntu4.6" } ] }