CVE-2014-9427
NoneCVSS
—
EPSS
18.3%
Published
Jan 3, 2015
CISA due date
—
The record
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.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Debian:7 | php5 | 0 | 5.4.36-0+deb7u1 |
| Mageia:4 | libgd | 0 | 2.1.0-3.2.mga4 |
| Mageia:4 | php | 0 | 5.5.21-1.mga4 |
| Mageia:4 | php-apc | 0 | 3.1.15-4.11.mga4 |
| Red Hat:rhel_software_collections:2::el6 | php54 | 0 | 0:2.0-1.el6 |
| Red Hat:rhel_software_collections:2::el6 | php54-php | 0 | 0:5.4.40-1.el6 |
| Red Hat:rhel_software_collections:2::el6 | php54-php-bcmath | 0 | 0:5.4.40-1.el6 |
| Red Hat:rhel_software_collections:2::el6 | php54-php-cli | 0 | 0:5.4.40-1.el6 |
| Red Hat:rhel_software_collections:2::el6 | php54-php-common | 0 | 0:5.4.40-1.el6 |
| Red Hat:rhel_software_collections:2::el6 | php54-php-dba | 0 | 0:5.4.40-1.el6 |
| Red Hat:rhel_software_collections:2::el6 | php54-php-debuginfo | 0 | 0:5.4.40-1.el6 |
| Red Hat:rhel_software_collections:2::el6 | php54-php-devel | 0 | 0:5.4.40-1.el6 |
| Red Hat:rhel_software_collections:2::el6 | php54-php-enchant | 0 | 0:5.4.40-1.el6 |
| Red Hat:rhel_software_collections:2::el6 | php54-php-fpm | 0 | 0:5.4.40-1.el6 |
| Red Hat:rhel_software_collections:2::el6 | php54-php-gd | 0 | 0:5.4.40-1.el6 |
| Red Hat:rhel_software_collections:2::el6 | php54-php-imap | 0 | 0:5.4.40-1.el6 |
| Red Hat:rhel_software_collections:2::el6 | php54-php-intl | 0 | 0:5.4.40-1.el6 |
| Red Hat:rhel_software_collections:2::el6 | php54-php-ldap | 0 | 0:5.4.40-1.el6 |
| Red Hat:rhel_software_collections:2::el6 | php54-php-mbstring | 0 | 0:5.4.40-1.el6 |
| Red Hat:rhel_software_collections:2::el6 | php54-php-mysqlnd | 0 | 0:5.4.40-1.el6 |
| Red Hat:rhel_software_collections:2::el6 | php54-php-odbc | 0 | 0:5.4.40-1.el6 |
| Red Hat:rhel_software_collections:2::el6 | php54-php-pdo | 0 | 0:5.4.40-1.el6 |
| Red Hat:rhel_software_collections:2::el6 | php54-php-pecl-zendopcache | 0 | 0:7.0.4-3.el6 |
| Red Hat:rhel_software_collections:2::el6 | php54-php-pecl-zendopcache-debuginfo | 0 | 0:7.0.4-3.el6 |
| Red Hat:rhel_software_collections:2::el6 | php54-php-pgsql | 0 | 0:5.4.40-1.el6 |
| Red Hat:rhel_software_collections:2::el6 | php54-php-process | 0 | 0:5.4.40-1.el6 |
| Red Hat:rhel_software_collections:2::el6 | php54-php-pspell | 0 | 0:5.4.40-1.el6 |
| Red Hat:rhel_software_collections:2::el6 | php54-php-recode | 0 | 0:5.4.40-1.el6 |
| Red Hat:rhel_software_collections:2::el6 | php54-php-snmp | 0 | 0:5.4.40-1.el6 |
| Red Hat:rhel_software_collections:2::el6 | php54-php-soap | 0 | 0:5.4.40-1.el6 |
| Red Hat:rhel_software_collections:2::el6 | php54-php-tidy | 0 | 0:5.4.40-1.el6 |
| Red Hat:rhel_software_collections:2::el6 | php54-php-xml | 0 | 0:5.4.40-1.el6 |
| Red Hat:rhel_software_collections:2::el6 | php54-php-xmlrpc | 0 | 0:5.4.40-1.el6 |
| Red Hat:rhel_software_collections:2::el6 | php54-runtime | 0 | 0:2.0-1.el6 |
| Red Hat:rhel_software_collections:2::el6 | php54-scldevel | 0 | 0:2.0-1.el6 |
| Red Hat:rhel_software_collections:2::el6 | php55 | 0 | 0:2.0-1.el6 |
| Red Hat:rhel_software_collections:2::el6 | php55-php | 0 | 0:5.5.21-2.el6 |
| Red Hat:rhel_software_collections:2::el6 | php55-php-bcmath | 0 | 0:5.5.21-2.el6 |
| Red Hat:rhel_software_collections:2::el6 | php55-php-cli | 0 | 0:5.5.21-2.el6 |
| Red Hat:rhel_software_collections:2::el6 | php55-php-common | 0 | 0:5.5.21-2.el6 |
| Red Hat:rhel_software_collections:2::el6 | php55-php-dba | 0 | 0:5.5.21-2.el6 |
| Red Hat:rhel_software_collections:2::el6 | php55-php-debuginfo | 0 | 0:5.5.21-2.el6 |
| Red Hat:rhel_software_collections:2::el6 | php55-php-devel | 0 | 0:5.5.21-2.el6 |
| Red Hat:rhel_software_collections:2::el6 | php55-php-enchant | 0 | 0:5.5.21-2.el6 |
| Red Hat:rhel_software_collections:2::el6 | php55-php-fpm | 0 | 0:5.5.21-2.el6 |
| Red Hat:rhel_software_collections:2::el6 | php55-php-gd | 0 | 0:5.5.21-2.el6 |
| Red Hat:rhel_software_collections:2::el6 | php55-php-gmp | 0 | 0:5.5.21-2.el6 |
| Red Hat:rhel_software_collections:2::el6 | php55-php-imap | 0 | 0:5.5.21-2.el6 |
| Red Hat:rhel_software_collections:2::el6 | php55-php-intl | 0 | 0:5.5.21-2.el6 |
| Red Hat:rhel_software_collections:2::el6 | php55-php-ldap | 0 | 0:5.5.21-2.el6 |
| Red Hat:rhel_software_collections:2::el6 | php55-php-mbstring | 0 | 0:5.5.21-2.el6 |
| Red Hat:rhel_software_collections:2::el6 | php55-php-mysqlnd | 0 | 0:5.5.21-2.el6 |
| Red Hat:rhel_software_collections:2::el6 | php55-php-odbc | 0 | 0:5.5.21-2.el6 |
| Red Hat:rhel_software_collections:2::el6 | php55-php-opcache | 0 | 0:5.5.21-2.el6 |
| Red Hat:rhel_software_collections:2::el6 | php55-php-pdo | 0 | 0:5.5.21-2.el6 |
| Red Hat:rhel_software_collections:2::el6 | php55-php-pgsql | 0 | 0:5.5.21-2.el6 |
| Red Hat:rhel_software_collections:2::el6 | php55-php-process | 0 | 0:5.5.21-2.el6 |
| Red Hat:rhel_software_collections:2::el6 | php55-php-pspell | 0 | 0:5.5.21-2.el6 |
| Red Hat:rhel_software_collections:2::el6 | php55-php-recode | 0 | 0:5.5.21-2.el6 |
| Red Hat:rhel_software_collections:2::el6 | php55-php-snmp | 0 | 0:5.5.21-2.el6 |
| Red Hat:rhel_software_collections:2::el6 | php55-php-soap | 0 | 0:5.5.21-2.el6 |
| Red Hat:rhel_software_collections:2::el6 | php55-php-tidy | 0 | 0:5.5.21-2.el6 |
| Red Hat:rhel_software_collections:2::el6 | php55-php-xml | 0 | 0:5.5.21-2.el6 |
| Red Hat:rhel_software_collections:2::el6 | php55-php-xmlrpc | 0 | 0:5.5.21-2.el6 |
| Red Hat:rhel_software_collections:2::el6 | php55-runtime | 0 | 0:2.0-1.el6 |
| Red Hat:rhel_software_collections:2::el6 | php55-scldevel | 0 | 0:2.0-1.el6 |
| Red Hat:rhel_software_collections:2::el7 | php54 | 0 | 0:2.0-1.el7 |
| Red Hat:rhel_software_collections:2::el7 | php54-php | 0 | 0:5.4.40-1.el7 |
| Red Hat:rhel_software_collections:2::el7 | php54-php-bcmath | 0 | 0:5.4.40-1.el7 |
| Red Hat:rhel_software_collections:2::el7 | php54-php-cli | 0 | 0:5.4.40-1.el7 |
| Red Hat:rhel_software_collections:2::el7 | php54-php-common | 0 | 0:5.4.40-1.el7 |
| Red Hat:rhel_software_collections:2::el7 | php54-php-dba | 0 | 0:5.4.40-1.el7 |
| Red Hat:rhel_software_collections:2::el7 | php54-php-debuginfo | 0 | 0:5.4.40-1.el7 |
| Red Hat:rhel_software_collections:2::el7 | php54-php-devel | 0 | 0:5.4.40-1.el7 |
| Red Hat:rhel_software_collections:2::el7 | php54-php-enchant | 0 | 0:5.4.40-1.el7 |
| Red Hat:rhel_software_collections:2::el7 | php54-php-fpm | 0 | 0:5.4.40-1.el7 |
| Red Hat:rhel_software_collections:2::el7 | php54-php-gd | 0 | 0:5.4.40-1.el7 |
| Red Hat:rhel_software_collections:2::el7 | php54-php-intl | 0 | 0:5.4.40-1.el7 |
| Red Hat:rhel_software_collections:2::el7 | php54-php-ldap | 0 | 0:5.4.40-1.el7 |
| Red Hat:rhel_software_collections:2::el7 | php54-php-mbstring | 0 | 0:5.4.40-1.el7 |
| Red Hat:rhel_software_collections:2::el7 | php54-php-mysqlnd | 0 | 0:5.4.40-1.el7 |
| Red Hat:rhel_software_collections:2::el7 | php54-php-odbc | 0 | 0:5.4.40-1.el7 |
| Red Hat:rhel_software_collections:2::el7 | php54-php-pdo | 0 | 0:5.4.40-1.el7 |
| Red Hat:rhel_software_collections:2::el7 | php54-php-pecl-zendopcache | 0 | 0:7.0.4-3.el7 |
| Red Hat:rhel_software_collections:2::el7 | php54-php-pecl-zendopcache-debuginfo | 0 | 0:7.0.4-3.el7 |
| Red Hat:rhel_software_collections:2::el7 | php54-php-pgsql | 0 | 0:5.4.40-1.el7 |
| Red Hat:rhel_software_collections:2::el7 | php54-php-process | 0 | 0:5.4.40-1.el7 |
| Red Hat:rhel_software_collections:2::el7 | php54-php-pspell | 0 | 0:5.4.40-1.el7 |
| Red Hat:rhel_software_collections:2::el7 | php54-php-recode | 0 | 0:5.4.40-1.el7 |
| Red Hat:rhel_software_collections:2::el7 | php54-php-snmp | 0 | 0:5.4.40-1.el7 |
| Red Hat:rhel_software_collections:2::el7 | php54-php-soap | 0 | 0:5.4.40-1.el7 |
| Red Hat:rhel_software_collections:2::el7 | php54-php-xml | 0 | 0:5.4.40-1.el7 |
| Red Hat:rhel_software_collections:2::el7 | php54-php-xmlrpc | 0 | 0:5.4.40-1.el7 |
| Red Hat:rhel_software_collections:2::el7 | php54-runtime | 0 | 0:2.0-1.el7 |
| Red Hat:rhel_software_collections:2::el7 | php54-scldevel | 0 | 0:2.0-1.el7 |
| Red Hat:rhel_software_collections:2::el7 | php55 | 0 | 0:2.0-1.el7 |
| Red Hat:rhel_software_collections:2::el7 | php55-php | 0 | 0:5.5.21-2.el7 |
| Red Hat:rhel_software_collections:2::el7 | php55-php-bcmath | 0 | 0:5.5.21-2.el7 |
| Red Hat:rhel_software_collections:2::el7 | php55-php-cli | 0 | 0:5.5.21-2.el7 |
| Red Hat:rhel_software_collections:2::el7 | php55-php-common | 0 | 0:5.5.21-2.el7 |
| Red Hat:rhel_software_collections:2::el7 | php55-php-dba | 0 | 0:5.5.21-2.el7 |
| Red Hat:rhel_software_collections:2::el7 | php55-php-debuginfo | 0 | 0:5.5.21-2.el7 |
| Red Hat:rhel_software_collections:2::el7 | php55-php-devel | 0 | 0:5.5.21-2.el7 |
| Red Hat:rhel_software_collections:2::el7 | php55-php-enchant | 0 | 0:5.5.21-2.el7 |
| Red Hat:rhel_software_collections:2::el7 | php55-php-fpm | 0 | 0:5.5.21-2.el7 |
| Red Hat:rhel_software_collections:2::el7 | php55-php-gd | 0 | 0:5.5.21-2.el7 |
| Red Hat:rhel_software_collections:2::el7 | php55-php-gmp | 0 | 0:5.5.21-2.el7 |
| Red Hat:rhel_software_collections:2::el7 | php55-php-intl | 0 | 0:5.5.21-2.el7 |
| Red Hat:rhel_software_collections:2::el7 | php55-php-ldap | 0 | 0:5.5.21-2.el7 |
| Red Hat:rhel_software_collections:2::el7 | php55-php-mbstring | 0 | 0:5.5.21-2.el7 |
| Red Hat:rhel_software_collections:2::el7 | php55-php-mysqlnd | 0 | 0:5.5.21-2.el7 |
| Red Hat:rhel_software_collections:2::el7 | php55-php-odbc | 0 | 0:5.5.21-2.el7 |
| Red Hat:rhel_software_collections:2::el7 | php55-php-opcache | 0 | 0:5.5.21-2.el7 |
| Red Hat:rhel_software_collections:2::el7 | php55-php-pdo | 0 | 0:5.5.21-2.el7 |
| Red Hat:rhel_software_collections:2::el7 | php55-php-pgsql | 0 | 0:5.5.21-2.el7 |
| Red Hat:rhel_software_collections:2::el7 | php55-php-process | 0 | 0:5.5.21-2.el7 |
| Red Hat:rhel_software_collections:2::el7 | php55-php-pspell | 0 | 0:5.5.21-2.el7 |
| Red Hat:rhel_software_collections:2::el7 | php55-php-recode | 0 | 0:5.5.21-2.el7 |
| Red Hat:rhel_software_collections:2::el7 | php55-php-snmp | 0 | 0:5.5.21-2.el7 |
| Red Hat:rhel_software_collections:2::el7 | php55-php-soap | 0 | 0:5.5.21-2.el7 |
| Red Hat:rhel_software_collections:2::el7 | php55-php-xml | 0 | 0:5.5.21-2.el7 |
| Red Hat:rhel_software_collections:2::el7 | php55-php-xmlrpc | 0 | 0:5.5.21-2.el7 |
| Red Hat:rhel_software_collections:2::el7 | php55-runtime | 0 | 0:2.0-1.el7 |
| Red Hat:rhel_software_collections:2::el7 | php55-scldevel | 0 | 0:2.0-1.el7 |
| SUSE:Linux Enterprise Module for Web and Scripting 12 | php5 | 0 | 5.5.14-11.3 |
| SUSE:Linux Enterprise Software Development Kit 12 | php5 | 0 | 5.5.14-11.3 |
| Ubuntu:14.04:LTS | php5 | 0 | 5.5.9+dfsg-1ubuntu4.6 |
| openSUSE:Tumbleweed | php5 | 0 | 5.6.28-1.1 |
| openSUSE:Tumbleweed | php7 | 0 | 7.0.14-1.4 |
| openSUSE:Tumbleweed | php8 | 0 | 8.0.11-1.1 |
Related vulnerabilities
- CVE-2017-12933 The finish_nested_data function in ext/standard/var_unserializer.re in PHP before 5.6.31… Also affects php5
- CVE-2016-10158 The exif_convert_any_to_int function in ext/exif/exif.c in PHP before 5.6.30, 7.0.x… Also affects php5
- CVE-2016-10161 The object_common1 function in ext/standard/var_unserializer.c in PHP before 5.6.30… Also affects php5
- CVE-2016-7479 In all versions of PHP 7, during the unserialization process, resizing the 'properties'… Also affects php5
- CVE-2016-7478 Zend/zend_exceptions.c in PHP, possibly 5.x before 5.6.28 and 7.x before 7.0.13, allows… Also affects php5
- CVE-2016-7418 The php_wddx_push_element function in ext/wddx/wddx.c in PHP before 5.6.26 and 7.x before… Also affects php5
- CVE-2016-7124 ext/standard/var_unserializer.c in PHP before 5.6.25 and 7.x before 7.0.10 mishandles… Also affects php5
- CVE-2016-5771 spl_array.c in the SPL extension in PHP before 5.5.37 and 5.6.x before 5.6.23 improperly… Also affects php5