ALAS-2015-474


Amazon Linux 1 Security Advisory: ALAS-2015-474
Advisory Release Date: 2015-02-11 19:33 Pacific
Advisory Updated Date: 2015-02-11 19:46 Pacific
Severity: Medium

Issue Overview:

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. (CVE-2014-9427)

Use-after-free vulnerability in the process_nested_data function in ext/standard/var_unserializer.re in PHP before 5.4.37, 5.5.x before 5.5.21, and 5.6.x before 5.6.5 allows remote attackers to execute arbitrary code via a crafted unserialize call that leverages improper handling of duplicate numerical keys within the serialized properties of an object. NOTE: this vulnerability exists because of an incomplete fix for CVE-2014-8142. (CVE-2015-0231)

The exif_process_unicode function in ext/exif/exif.c in PHP before 5.4.37, 5.5.x before 5.5.21, and 5.6.x before 5.6.5 allows remote attackers to execute arbitrary code or cause a denial of service (uninitialized pointer free and application crash) via crafted EXIF data in a JPEG image. (CVE-2015-0232)


Affected Packages:

php55


Issue Correction:
Run yum update php55 to update your system.

New Packages:
i686:
    php55-embedded-5.5.21-1.96.amzn1.i686
    php55-pspell-5.5.21-1.96.amzn1.i686
    php55-mysqlnd-5.5.21-1.96.amzn1.i686
    php55-imap-5.5.21-1.96.amzn1.i686
    php55-dba-5.5.21-1.96.amzn1.i686
    php55-xmlrpc-5.5.21-1.96.amzn1.i686
    php55-xml-5.5.21-1.96.amzn1.i686
    php55-odbc-5.5.21-1.96.amzn1.i686
    php55-mbstring-5.5.21-1.96.amzn1.i686
    php55-snmp-5.5.21-1.96.amzn1.i686
    php55-tidy-5.5.21-1.96.amzn1.i686
    php55-recode-5.5.21-1.96.amzn1.i686
    php55-common-5.5.21-1.96.amzn1.i686
    php55-opcache-5.5.21-1.96.amzn1.i686
    php55-mcrypt-5.5.21-1.96.amzn1.i686
    php55-debuginfo-5.5.21-1.96.amzn1.i686
    php55-gmp-5.5.21-1.96.amzn1.i686
    php55-fpm-5.5.21-1.96.amzn1.i686
    php55-5.5.21-1.96.amzn1.i686
    php55-pdo-5.5.21-1.96.amzn1.i686
    php55-bcmath-5.5.21-1.96.amzn1.i686
    php55-ldap-5.5.21-1.96.amzn1.i686
    php55-process-5.5.21-1.96.amzn1.i686
    php55-mssql-5.5.21-1.96.amzn1.i686
    php55-enchant-5.5.21-1.96.amzn1.i686
    php55-gd-5.5.21-1.96.amzn1.i686
    php55-devel-5.5.21-1.96.amzn1.i686
    php55-pgsql-5.5.21-1.96.amzn1.i686
    php55-soap-5.5.21-1.96.amzn1.i686
    php55-intl-5.5.21-1.96.amzn1.i686
    php55-cli-5.5.21-1.96.amzn1.i686

src:
    php55-5.5.21-1.96.amzn1.src

x86_64:
    php55-pgsql-5.5.21-1.96.amzn1.x86_64
    php55-enchant-5.5.21-1.96.amzn1.x86_64
    php55-gd-5.5.21-1.96.amzn1.x86_64
    php55-pspell-5.5.21-1.96.amzn1.x86_64
    php55-xmlrpc-5.5.21-1.96.amzn1.x86_64
    php55-common-5.5.21-1.96.amzn1.x86_64
    php55-mysqlnd-5.5.21-1.96.amzn1.x86_64
    php55-bcmath-5.5.21-1.96.amzn1.x86_64
    php55-ldap-5.5.21-1.96.amzn1.x86_64
    php55-xml-5.5.21-1.96.amzn1.x86_64
    php55-intl-5.5.21-1.96.amzn1.x86_64
    php55-soap-5.5.21-1.96.amzn1.x86_64
    php55-debuginfo-5.5.21-1.96.amzn1.x86_64
    php55-opcache-5.5.21-1.96.amzn1.x86_64
    php55-pdo-5.5.21-1.96.amzn1.x86_64
    php55-mcrypt-5.5.21-1.96.amzn1.x86_64
    php55-fpm-5.5.21-1.96.amzn1.x86_64
    php55-mssql-5.5.21-1.96.amzn1.x86_64
    php55-gmp-5.5.21-1.96.amzn1.x86_64
    php55-cli-5.5.21-1.96.amzn1.x86_64
    php55-odbc-5.5.21-1.96.amzn1.x86_64
    php55-imap-5.5.21-1.96.amzn1.x86_64
    php55-process-5.5.21-1.96.amzn1.x86_64
    php55-5.5.21-1.96.amzn1.x86_64
    php55-mbstring-5.5.21-1.96.amzn1.x86_64
    php55-dba-5.5.21-1.96.amzn1.x86_64
    php55-devel-5.5.21-1.96.amzn1.x86_64
    php55-snmp-5.5.21-1.96.amzn1.x86_64
    php55-recode-5.5.21-1.96.amzn1.x86_64
    php55-embedded-5.5.21-1.96.amzn1.x86_64
    php55-tidy-5.5.21-1.96.amzn1.x86_64