Description
The php_pgsql_meta_data function in pgsql.c in the PostgreSQL (aka pgsql) extension in PHP before 5.4.42, 5.5.x before 5.5.26, and 5.6.x before 5.6.10 does not validate token extraction for table names, which might allow remote attackers to cause a denial of service (NULL pointer dereference and application crash) via a crafted name. NOTE: this vulnerability exists because of an incomplete fix for CVE-2015-1352.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 8 | php5 | 5.6.12+dfsg-0+deb8u1 | DSA-3344-1 |
| Debian 7 | php5 | 5.4.44-0+deb7u1 | DSA-3344-1 |
| Debian 6.0 | php5 | 5.3.3.1-7+squeeze27 | DLA-307-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 14.04 LTS | php5 | 5.5.9+dfsg-1ubuntu4.11 | USN-2658-1 |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 2 | php54-php +24 | 5.4.40-3.el6 | RHSA-2015:1219 |
| RHEL 2 | php55-php +26 | 5.5.21-4.el6 | RHSA-2015:1186 |
| RHEL 2 | rh-php56-php +27 | 5.6.5-7.el6 | RHSA-2015:1187 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 12 | php5 | 5.5.14-30.1 | SUSE-SU-2015:1253-2, SUSE-SU-2015:1253-1 |
| SLES 11 SP2 | php53 | 5.3.17-47.1 | SUSE-SU-2016:1638-1 |
Oracle Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Oracle Linux 7 | php54-php +22 | 5.4.40-3.el7 | ELSA-2015-1219 |
| Oracle Linux 7 | php54-php-imap +1 | 5.4.40-3.el6 | ELSA-2015-1219 |
| Oracle Linux 7 | php55-php +24 | 5.5.21-4.el7 | ELSA-2015-1186 |
Advisories 11
- RHSA-2015:1219 Red Hat Security Advisory: php54-php security update Red Hat Security Advisories (RHSA) · Jun 29, 2026
- RHSA-2015:1187 Red Hat Security Advisory: rh-php56-php security update Red Hat Security Advisories (RHSA) · Jun 29, 2026
- RHSA-2015:1186 Red Hat Security Advisory: php55-php security update Red Hat Security Advisories (RHSA) · Jun 29, 2026
- USN-2658-1 php5 vulnerabilities Ubuntu Security Notices (USN) · Apr 22, 2026
- DLA-307-1 php5 - security update Debian Security (DSA / DLA) · Mar 9, 2026
- DSA-3344-1 php5 - security update Debian Security (DSA / DLA) · Mar 9, 2026
- SUSE-SU-2016:1638-1 Security update for php53 SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2015:1253-1 Security update for php5 SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2015:1253-2 Security update for php5 SUSE / openSUSE Security Updates · Feb 4, 2026
- ELSA-2015-1186 Important: php55-php security update (Oracle Linux 7) Oracle Linux Security Advisories (ELSA) · Feb 4, 2016
- ELSA-2015-1219 Moderate: php54-php security update (Oracle Linux 7) Oracle Linux Security Advisories (ELSA) · Feb 4, 2016
References
- RHSA-2015:1187 vendor-advisory
- 1032709 vdb-entry
- RHSA-2015:1186 vendor-advisory
- DSA-3344 vendor-advisory
- 75292 vdb-entry
- http://www.oracle.com/technetwork/topics/security/linuxbulletinjan2016-2867209.html
- [oss-security] 20150618 Re: PHP 5.6.10 / 5.5.26 / 5.4.42 CVE request mailing-list
- http://php.net/ChangeLog-5.php
- https://bugs.php.net/bug.php?id=69667
- http://git.php.net/?p=php-src.git%3Ba=commit%3Bh=2cc4e69cc6d8dbc4b3568ad3dd583324a7c11d64
- GLSA-201606-10 vendor-advisory