What’s Vulnerable › Vulnerabilities
CVE-2015-1352
- Severity: medium (CVSS 5.0 v2.0)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 6.6% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2015-03-30 · updated 2026-06-17
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.
Affected products
- macOS: through 10.10.5
- PHP: before 5.4.40; from 5.5.0 before 5.5.24; from 5.6.0 before 5.6.8 — fixed in 5.4.40, 5.5.24, 5.6.8
How to fix
Upgrade to a fixed version: PHP 5.4.40, 5.5.24, 5.6.8. Check the vendor advisory for mitigations.
References
- http://git.php.net/?p=php-src.git%3Ba=commit%3Bh=124fb22a13fafa3648e4e15b4f207c7096d8155e
- http://lists.apple.com/archives/security-announce/2015/Sep/msg00008.html
- http://marc.info/?l=bugtraq&m=143403519711434&w=2
- http://openwall.com/lists/oss-security/2015/01/24/9
- http://rhn.redhat.com/errata/RHSA-2015-1053.html
- http://www.mandriva.com/security/advisories?name=MDVSA-2015:079
- http://www.oracle.com/technetwork/topics/security/bulletinjul2015-2511963.html
- http://www.oracle.com/technetwork/topics/security/linuxbulletinjan2016-2867209.html
- http://www.securityfocus.com/bid/71932
- https://bugs.php.net/bug.php?id=68741
- https://security.gentoo.org/glsa/201606-10
- https://support.apple.com/HT205267
Get alerted when CVE-2015-1352 or the next vulnerability affects your stack