Amazon Linux AMI update for php56



Risk High
Patch available YES
Number of vulnerabilities 3
CVE-ID CVE-2015-0231
CVE-2015-2305
CVE-2015-2331
CWE-ID CWE-416
CWE-190
CWE-122
Exploitation vector Network
Public exploit Public exploit code for vulnerability #1 is available.
Vulnerable software
Amazon Linux AMI
Operating systems & Components / Operating system

Vendor Amazon Web Services

Security Bulletin

This security bulletin contains information about 3 vulnerabilities.

1) Use-after-free

EUVDB-ID: #VU16101

Risk: High

CVSSv4.0: 8.9 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:P/U:Amber]

CVE-ID: CVE-2015-0231

CWE-ID: CWE-416 - Use After Free

Exploit availability: Yes

Description

The vulnerability allows a remote attacker to compromise vulnerable system.

The vulnerability exists due to гse-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. A remote attacker can trigger memory corruption via a crafted unserialize call that leverages improper handling of duplicate numerical keys within the serialized properties of an objecе. Successful exploitation of the vulnerability may allow an attacker to compromise vulnerable system.

Mitigation

Update the affected packages:

i686:
    php56-gd-5.6.7-1.110.amzn1.i686
    php56-bcmath-5.6.7-1.110.amzn1.i686
    php56-mysqlnd-5.6.7-1.110.amzn1.i686
    php56-gmp-5.6.7-1.110.amzn1.i686
    php56-imap-5.6.7-1.110.amzn1.i686
    php56-devel-5.6.7-1.110.amzn1.i686
    php56-soap-5.6.7-1.110.amzn1.i686
    php56-ldap-5.6.7-1.110.amzn1.i686
    php56-dbg-5.6.7-1.110.amzn1.i686
    php56-pdo-5.6.7-1.110.amzn1.i686
    php56-common-5.6.7-1.110.amzn1.i686
    php56-embedded-5.6.7-1.110.amzn1.i686
    php56-enchant-5.6.7-1.110.amzn1.i686
    php56-xmlrpc-5.6.7-1.110.amzn1.i686
    php56-5.6.7-1.110.amzn1.i686
    php56-mssql-5.6.7-1.110.amzn1.i686
    php56-odbc-5.6.7-1.110.amzn1.i686
    php56-xml-5.6.7-1.110.amzn1.i686
    php56-fpm-5.6.7-1.110.amzn1.i686
    php56-intl-5.6.7-1.110.amzn1.i686
    php56-mcrypt-5.6.7-1.110.amzn1.i686
    php56-pspell-5.6.7-1.110.amzn1.i686
    php56-snmp-5.6.7-1.110.amzn1.i686
    php56-dba-5.6.7-1.110.amzn1.i686
    php56-pgsql-5.6.7-1.110.amzn1.i686
    php56-opcache-5.6.7-1.110.amzn1.i686
    php56-recode-5.6.7-1.110.amzn1.i686
    php56-process-5.6.7-1.110.amzn1.i686
    php56-debuginfo-5.6.7-1.110.amzn1.i686
    php56-cli-5.6.7-1.110.amzn1.i686
    php56-tidy-5.6.7-1.110.amzn1.i686
    php56-mbstring-5.6.7-1.110.amzn1.i686

src:
    php56-5.6.7-1.110.amzn1.src

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

Vulnerable software versions

Amazon Linux AMI: All versions

CPE2.3 External links

https://alas.aws.amazon.com/ALAS-2015-508.html


Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote non-authenticated attacker via the Internet.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability. However, proof of concept for this vulnerability is available.

2) Integer overflow

EUVDB-ID: #VU16110

Risk: Low

CVSSv4.0: 5.9 [CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U/U:Clear]

CVE-ID: CVE-2015-2305

CWE-ID: CWE-190 - Integer overflow

Exploit availability: No

Description

The vulnerability allows a local attacker to execute arbitrary code on the target system.

The vulnerability exists due to \integer overflow in the regcomp implementation in the Henry Spencer BSD regex library (aka rxspencer) alpha3.8.g5 on 32-bit platforms, as used in NetBSD through 6.1.5 and other products. A local attacker can trigger heap-based buffer overflow via a large regular expression and execute arbitrary code on the target system.

Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.

Mitigation

Update the affected packages:

i686:
    php56-gd-5.6.7-1.110.amzn1.i686
    php56-bcmath-5.6.7-1.110.amzn1.i686
    php56-mysqlnd-5.6.7-1.110.amzn1.i686
    php56-gmp-5.6.7-1.110.amzn1.i686
    php56-imap-5.6.7-1.110.amzn1.i686
    php56-devel-5.6.7-1.110.amzn1.i686
    php56-soap-5.6.7-1.110.amzn1.i686
    php56-ldap-5.6.7-1.110.amzn1.i686
    php56-dbg-5.6.7-1.110.amzn1.i686
    php56-pdo-5.6.7-1.110.amzn1.i686
    php56-common-5.6.7-1.110.amzn1.i686
    php56-embedded-5.6.7-1.110.amzn1.i686
    php56-enchant-5.6.7-1.110.amzn1.i686
    php56-xmlrpc-5.6.7-1.110.amzn1.i686
    php56-5.6.7-1.110.amzn1.i686
    php56-mssql-5.6.7-1.110.amzn1.i686
    php56-odbc-5.6.7-1.110.amzn1.i686
    php56-xml-5.6.7-1.110.amzn1.i686
    php56-fpm-5.6.7-1.110.amzn1.i686
    php56-intl-5.6.7-1.110.amzn1.i686
    php56-mcrypt-5.6.7-1.110.amzn1.i686
    php56-pspell-5.6.7-1.110.amzn1.i686
    php56-snmp-5.6.7-1.110.amzn1.i686
    php56-dba-5.6.7-1.110.amzn1.i686
    php56-pgsql-5.6.7-1.110.amzn1.i686
    php56-opcache-5.6.7-1.110.amzn1.i686
    php56-recode-5.6.7-1.110.amzn1.i686
    php56-process-5.6.7-1.110.amzn1.i686
    php56-debuginfo-5.6.7-1.110.amzn1.i686
    php56-cli-5.6.7-1.110.amzn1.i686
    php56-tidy-5.6.7-1.110.amzn1.i686
    php56-mbstring-5.6.7-1.110.amzn1.i686

src:
    php56-5.6.7-1.110.amzn1.src

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

Vulnerable software versions

Amazon Linux AMI: All versions

CPE2.3 External links

https://alas.aws.amazon.com/ALAS-2015-508.html


Q & A

Can this vulnerability be exploited remotely?

No. This vulnerability can be exploited locally. The attacker should have authentication credentials and successfully authenticate on the system.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability.

3) Heap-based buffer overflow

EUVDB-ID: #VU40861

Risk: Medium

CVSSv4.0: 2.7 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:U/U:Green]

CVE-ID: CVE-2015-2331

CWE-ID: CWE-122 - Heap-based Buffer Overflow

Exploit availability: No

Description

The vulnerability allows a remote attacker to execute arbitrary code on the target system.

The vulnerability exists due to a boundary error in Integer overflow in the _zip_cdir_new function in zip_dirent.c in libzip 0.11.2 and earlier, as used in the ZIP extension in PHP before 5.4.39, 5.5.x before 5.5.23, and 5.6.x before 5.6.7 and other products,. A remote attacker can use a ZIP archive that contains many entries to trigger heap-based buffer overflow and execute arbitrary code on the target system.

Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.

Mitigation

Update the affected packages:

i686:
    php56-gd-5.6.7-1.110.amzn1.i686
    php56-bcmath-5.6.7-1.110.amzn1.i686
    php56-mysqlnd-5.6.7-1.110.amzn1.i686
    php56-gmp-5.6.7-1.110.amzn1.i686
    php56-imap-5.6.7-1.110.amzn1.i686
    php56-devel-5.6.7-1.110.amzn1.i686
    php56-soap-5.6.7-1.110.amzn1.i686
    php56-ldap-5.6.7-1.110.amzn1.i686
    php56-dbg-5.6.7-1.110.amzn1.i686
    php56-pdo-5.6.7-1.110.amzn1.i686
    php56-common-5.6.7-1.110.amzn1.i686
    php56-embedded-5.6.7-1.110.amzn1.i686
    php56-enchant-5.6.7-1.110.amzn1.i686
    php56-xmlrpc-5.6.7-1.110.amzn1.i686
    php56-5.6.7-1.110.amzn1.i686
    php56-mssql-5.6.7-1.110.amzn1.i686
    php56-odbc-5.6.7-1.110.amzn1.i686
    php56-xml-5.6.7-1.110.amzn1.i686
    php56-fpm-5.6.7-1.110.amzn1.i686
    php56-intl-5.6.7-1.110.amzn1.i686
    php56-mcrypt-5.6.7-1.110.amzn1.i686
    php56-pspell-5.6.7-1.110.amzn1.i686
    php56-snmp-5.6.7-1.110.amzn1.i686
    php56-dba-5.6.7-1.110.amzn1.i686
    php56-pgsql-5.6.7-1.110.amzn1.i686
    php56-opcache-5.6.7-1.110.amzn1.i686
    php56-recode-5.6.7-1.110.amzn1.i686
    php56-process-5.6.7-1.110.amzn1.i686
    php56-debuginfo-5.6.7-1.110.amzn1.i686
    php56-cli-5.6.7-1.110.amzn1.i686
    php56-tidy-5.6.7-1.110.amzn1.i686
    php56-mbstring-5.6.7-1.110.amzn1.i686

src:
    php56-5.6.7-1.110.amzn1.src

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

Vulnerable software versions

Amazon Linux AMI: All versions

CPE2.3 External links

https://alas.aws.amazon.com/ALAS-2015-508.html


Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote non-authenticated attacker via the Internet.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability.



###SIDEBAR###