Description
The build_tablename function 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 crafted name.
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 7 | php5 | 5.4.38-0+deb7u1 | DSA-3195-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 14.04 LTS | php5 | 5.5.9+dfsg-1ubuntu4.6 | USN-2501-1 |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 2 | php55 +2 | 2.0-1.el6 | RHSA-2015:1053 |
| RHEL 2 | php55-php +26 | 5.5.21-2.el6 | RHSA-2015:1053 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 11 SP2 | php53 | 5.3.17-47.1 | SUSE-SU-2016:1638-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | php5 | 5.6.28-1.1 | openSUSE-SU-2024:10344-1 |
| openSUSE Tumbleweed | php7 | 7.0.14-1.4 | openSUSE-SU-2024:10290-1 |
Oracle Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Oracle Linux 7 | php55 +2 | 2.0-1.el7 | ELSA-2015-1053 |
| Oracle Linux 7 | php55-php +26 | 5.5.21-2.0.1.el6 | ELSA-2015-1053 |
Advisories 7
- RHSA-2015:1053 Red Hat Security Advisory: php55 security and bug fix update Red Hat Security Advisories (RHSA) · Jun 29, 2026
- USN-2501-1 php5 vulnerabilities Ubuntu Security Notices (USN) · Apr 22, 2026
- DSA-3195-1 php5 - security update Debian Security (DSA / DLA) · Mar 9, 2026
- openSUSE-SU-2024:10290-1 apache2-mod_php7-7.0.14-1.4 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2024:10344-1 apache2-mod_php5-5.6.28-1.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2016:1638-1 Security update for php53 SUSE / openSUSE Security Updates · Feb 4, 2026
- ELSA-2015-1053 Moderate: php55 security and bug fix update (Oracle Linux 7) Oracle Linux Security Advisories (ELSA) · Feb 4, 2016
References
- http://git.php.net/?p=php-src.git%3Ba=commit%3Bh=124fb22a13fafa3648e4e15b4f207c7096d8155e
- [oss-security] 20150124 Re: CVE Request: PHP mailing-list
- APPLE-SA-2015-09-30-3 vendor-advisory
- http://www.oracle.com/technetwork/topics/security/linuxbulletinjan2016-2867209.html
- MDVSA-2015:079 vendor-advisory
- http://www.oracle.com/technetwork/topics/security/bulletinjul2015-2511963.html
- SSRT102066 vendor-advisory
- https://support.apple.com/HT205267
- https://bugs.php.net/bug.php?id=68741
- 71932 vdb-entry
- RHSA-2015:1053 vendor-advisory
- GLSA-201606-10 vendor-advisory