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.
http://git.php.net/?p=php-src.git;a=commit;h=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
Source: MITRE
Published: 2015-03-30
Updated: 2019-10-09
Type: NVD-CWE-Other
Base Score: 5
Vector: AV:N/AC:L/Au:N/C:N/I:N/A:P
Impact Score: 2.9
Exploitability Score: 10
Severity: MEDIUM