CVE-2015-1352 json
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…
published 2015-03-30 11 y ago modified 2026-06-17 4 mo ago also EUVD-2015-1491
- cvss
- 5.0
- version 2.0, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 6.6%
- EPSS 6.6% chance of exploitation in 30 days, percentile 93%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- php php 5.4.40, 5.5.24, 5.6.8
- php5 Ubuntu 14.04 LTS 5.5.9+dfsg-1ubuntu4.6
ubuntu advisories UBUNTU-CVE-2015-1352
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- php55 RHEL 2 SOFTWARE_COLLECTIONS 2.0-1.el6
- php55 RHEL 2 SOFTWARE_COLLECTIONS 2.0-1.el7
- php55-php RHEL 2 SOFTWARE_COLLECTIONS 5.5.21-2.el6
- php55-php RHEL 2 SOFTWARE_COLLECTIONS 5.5.21-2.el7
- php55-php-gd RHEL 2 SOFTWARE_COLLECTIONS 5.5.21-2.el6
- php55-php-gd RHEL 2 SOFTWARE_COLLECTIONS 5.5.21-2.el7
- php55-php-cli RHEL 2 SOFTWARE_COLLECTIONS 5.5.21-2.el6
- php55-php-cli RHEL 2 SOFTWARE_COLLECTIONS 5.5.21-2.el7
red hat advisories RHSA-2015:1053
- php53 SLES 11 SP2-LTSS 5.3.17-47.1
suse advisories SUSE-SU-2016:1638-1
- php7 openSUSE Tumbleweed 7.0.14-1.4
- php5 openSUSE Tumbleweed 5.6.28-1.1
opensuse advisories openSUSE-SU-2024:10290-1openSUSE-SU-2024:10344-1
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2015-1352 updated cvss 2.6
php: NULL pointer dereference in pgsql extension
-
Red Hat Software Collections php55-php, php55-php-gd, php55-php-cli, php55-php-dba, php55-php-fpm, php55-php-gmp, +20 moreaffected: no fix available
-
Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 6) php55 2.0-1.el6, php55-php 5.5.21-2.el6, php55-runtime 2.0-1.el6, php55-scldevel 2.0-1.el6, php55-php-gd 5.5.21-2.el6, php55-php-cli 5.5.21-2.el6, +23 more Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 7) php55 2.0-1.el7, php55-php 5.5.21-2.el7, php55-runtime 2.0-1.el7, php55-scldevel 2.0-1.el7, php55-php-gd 5.5.21-2.el7, php55-php-cli 5.5.21-2.el7, +21 more Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 6.5) php55 2.0-1.el6, php55-php 5.5.21-2.el6, php55-runtime 2.0-1.el6, php55-scldevel 2.0-1.el6, php55-php-gd 5.5.21-2.el6, php55-php-cli 5.5.21-2.el6, +23 more Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 6.6) php55 2.0-1.el6, php55-php 5.5.21-2.el6, php55-runtime 2.0-1.el6, php55-scldevel 2.0-1.el6, php55-php-gd 5.5.21-2.el6, php55-php-cli 5.5.21-2.el6, +23 more Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 6) php55 2.0-1.el6, php55-php 5.5.21-2.el6, php55-runtime 2.0-1.el6, php55-scldevel 2.0-1.el6, php55-php-gd 5.5.21-2.el6, php55-php-cli 5.5.21-2.el6, +23 more Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 7) php55 2.0-1.el7, php55-php 5.5.21-2.el7, php55-runtime 2.0-1.el7, php55-scldevel 2.0-1.el7, php55-php-gd 5.5.21-2.el7, php55-php-cli 5.5.21-2.el7, +21 morefixed: vendor fix RHSA-2015:1053
-
Red Hat Enterprise Linux 5 php, php53 Red Hat Enterprise Linux 6 php, php-gd, php-cli, php-dba, php-fpm, php-pdo, +20 more Red Hat Enterprise Linux 7 php, php-gd, php-cli, php-dba, php-fpm, php-pdo, +18 more Red Hat Software Collections php54-php, php54-php-gd, rh-php56-php, php54-php-cli, php54-php-dba, php54-php-fpm, +46 morenot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
6.58% chance of exploitation in the next 30 days, higher than 93% of all scored CVEs (FIRST EPSS, 2026-11-09).
Exploits and checks
- bugs.php.net https://bugs.php.net/bug.php?id=68741 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 2.0 | 5.0 | AV:N/AC:L/Au:N/C:N/I:N/A:P |
Classification
- Technology feeds
References
-
bugs.php.net
/bug.php?id=68741
exploit, vendor-advisory
-
lists.apple.com
/archives/security-announce/2015/Sep/msg00008.html
vendor-advisory, mailing-list, third-party-advisory
-
mandriva.com
/security/advisories?name=MDVSA-2015:079
vendor-advisory, third-party-advisory
-
marc.info
/?l=bugtraq&m=143403519711434&w=2
vendor-advisory, mailing-list, third-party-advisory
-
rhn.redhat.com
/errata/RHSA-2015-1053.html
vendor-advisory, third-party-advisory
-
security.gentoo.org
/glsa/201606-10
vendor-advisory, third-party-advisory
- git.php.net /?p=php-src.git%3Ba=commit%3Bh=124fb22a13fafa3648e4e15b4f207c7096d8155e
-
openwall.com
/lists/oss-security/2015/01/24/9
mailing-list, third-party-advisory
-
oracle.com
/technetwork/topics/security/linuxbulletinjan2016-2867209.html
third-party-advisory
-
oracle.com
/technetwork/topics/security/bulletinjul2015-2511963.html
third-party-advisory
-
support.apple.com
/HT205267
third-party-advisory
-
securityfocus.com
/bid/71932
vdb-entry, third-party-advisory
Sources
- CVE List CVE-2015-1352
- NVD CVE-2015-1352
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.