Amazon Linux AMI update for php56



Published: 2015-04-17
Risk High
Patch available YES
Number of vulnerabilities 3
CVE-ID CVE-2015-3329
CVE-2015-1351
CVE-2015-1352
CWE-ID CWE-121
CWE-416
CWE-476
Exploitation vector Network
Public exploit N/A
Vulnerable software
Subscribe
Amazon Linux AMI
Operating systems & Components / Operating system

Vendor Amazon Web Services

Security Bulletin

This security bulletin contains information about 3 vulnerabilities.

1) Stack-based buffer overflow

EUVDB-ID: #VU16109

Risk: High

CVSSv3.1: 8.5 [CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H/E:U/RL:O/RC:C]

CVE-ID: CVE-2015-3329

CWE-ID: CWE-121 - Stack-based buffer overflow

Exploit availability: No

Description

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

The weakness exists due to multiple stack-based buffer overflows in the phar_set_inode function in phar_internal.h in PHP before 5.4.40, 5.5.x before 5.5.24, and 5.6.x before 5.6.8. A remote attacker can trigger memory corruption and execute arbitrary code via a crafted length value in a (1) tar, (2) phar, or (3) ZIP archive.

Mitigation

Update the affected packages:

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

src:
    php56-5.6.8-1.111.amzn1.src

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

Vulnerable software versions

Amazon Linux AMI: All versions

External links

http://alas.aws.amazon.com/ALAS-2015-511.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.

2) Use-after-free error

EUVDB-ID: #VU3380

Risk: Low

CVSSv3.1: 6.5 [CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H/E:U/RL:O/RC:C]

CVE-ID: CVE-2015-1351

CWE-ID: CWE-416 - Use After Free

Exploit availability: No

Description

The vulnerability allows a remote attacker to cause DoS condition.

The weakness exists due to use-after-free vulnerability in the _zend_shared_memdup function in zend_shared_alloc.c in the OPcache extension in PHP through 5.6.7. A remote attacker can trigger memory corruption and cause the service to crash.

Mitigation

Update the affected packages:

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

src:
    php56-5.6.8-1.111.amzn1.src

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

Vulnerable software versions

Amazon Linux AMI: All versions

External links

http://alas.aws.amazon.com/ALAS-2015-511.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.

3) NULL pointer dereference

EUVDB-ID: #VU16105

Risk: Low

CVSSv3.1: 5.7 [CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H/E:U/RL:O/RC:C]

CVE-ID: CVE-2015-1352

CWE-ID: CWE-476 - NULL Pointer Dereference

Exploit availability: No

Description

The vulnerability allows a remote attacker to perform a denial of service (DoS) attack.

The vulnerability exists due to a NULL pointer dreference error in pgsql.c in the PostgreSQL (aka pgsql) extension in PHP through 5.6.7 does not validate token extraction for table names, which allows remote attackers to cause a denial of service (NULL pointer dereference and application crash) via a specially crafted name. A remote attacker can perform a denial of service (DoS) attack.

Mitigation

Update the affected packages:

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

src:
    php56-5.6.8-1.111.amzn1.src

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

Vulnerable software versions

Amazon Linux AMI: All versions

External links

http://alas.aws.amazon.com/ALAS-2015-511.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###