Every CVESearch/Get API key

CVE-2015-1352

The build_tablename function in pgsql.c in the PostgreSQL (aka pgsql) extension in PHP through 5...

5.0 MediumFix available

CVE-2015-1352 is a medium vulnerability (CVSS 5.0) in Php, published January 26, 2015. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 6.58%, the 93rd percentile. Fixed in php5 5.5.9+dfsg-1ubuntu4.6.

What does this mean?
Severity
5.0 MediumCVSS 2.0, NVD
Exploit chance
6.58%EPSS, 93rd percentile
Exploitation
None knownNot on CISA’s or ENISA’s lists
Fixed in
5.5.9+dfsg-1ubuntu4.6php5 +67 more

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.

Exploit likelihood

6.58%Up 2.8 points since Feb 4, 2022
90%50%10%1%

Affected products

Affected packages

Affected packages
PackageAffectedFixed
php5
Debian:7
From an advisory covering 6 CVEs
before 5.4.38-0+deb7u1, plus listed versions
5.4.11-15.4.15-15.4.34-0+deb7u15.4.35-0+deb7u15.4.35-0+deb7u2
Show 25 moreShow less
5.4.36-0+deb7u15.4.36-0+deb7u35.4.4-145.4.4-14+deb7u15.4.4-14+deb7u105.4.4-14+deb7u115.4.4-14+deb7u125.4.4-14+deb7u135.4.4-14+deb7u145.4.4-14+deb7u25.4.4-14+deb7u35.4.4-14+deb7u45.4.4-14+deb7u55.4.4-14+deb7u75.4.4-14+deb7u85.4.4-14+deb7u95.4.4-155.4.4-15.15.4.6-15.4.6-25.4.8-15.4.9-15.4.9-25.4.9-35.4.9-4
5.4.38-0+deb7u1
php
Mageia:4
From an advisory covering 3 CVEs
before 5.5.22-1.2.mga4
5.5.22-1.2.mga4
php-apc
Mageia:4
From an advisory covering 3 CVEs
before 3.1.15-4.12.mga4
3.1.15-4.12.mga4
php55
Red Hat:rhel_software_collections:2::el6
From an advisory covering 19 CVEs
before 0:2.0-1.el6
0:2.0-1.el6
php55-php
Red Hat:rhel_software_collections:2::el6
From an advisory covering 19 CVEs
before 0:5.5.21-2.el6
0:5.5.21-2.el6
php55-php-bcmath
Red Hat:rhel_software_collections:2::el6
From an advisory covering 19 CVEs
before 0:5.5.21-2.el6
0:5.5.21-2.el6
php55-php-cli
Red Hat:rhel_software_collections:2::el6
From an advisory covering 19 CVEs
before 0:5.5.21-2.el6
0:5.5.21-2.el6
php55-php-common
Red Hat:rhel_software_collections:2::el6
From an advisory covering 19 CVEs
before 0:5.5.21-2.el6
0:5.5.21-2.el6
php55-php-dba
Red Hat:rhel_software_collections:2::el6
From an advisory covering 19 CVEs
before 0:5.5.21-2.el6
0:5.5.21-2.el6
php55-php-debuginfo
Red Hat:rhel_software_collections:2::el6
From an advisory covering 19 CVEs
before 0:5.5.21-2.el6
0:5.5.21-2.el6
Show 58 moreShow less
Affected packages
PackageAffectedFixed
php55-php-devel
Red Hat:rhel_software_collections:2::el6
From an advisory covering 19 CVEs
before 0:5.5.21-2.el6
0:5.5.21-2.el6
php55-php-enchant
Red Hat:rhel_software_collections:2::el6
From an advisory covering 19 CVEs
before 0:5.5.21-2.el6
0:5.5.21-2.el6
php55-php-fpm
Red Hat:rhel_software_collections:2::el6
From an advisory covering 19 CVEs
before 0:5.5.21-2.el6
0:5.5.21-2.el6
php55-php-gd
Red Hat:rhel_software_collections:2::el6
From an advisory covering 19 CVEs
before 0:5.5.21-2.el6
0:5.5.21-2.el6
php55-php-gmp
Red Hat:rhel_software_collections:2::el6
From an advisory covering 19 CVEs
before 0:5.5.21-2.el6
0:5.5.21-2.el6
php55-php-imap
Red Hat:rhel_software_collections:2::el6
From an advisory covering 19 CVEs
before 0:5.5.21-2.el6
0:5.5.21-2.el6
php55-php-intl
Red Hat:rhel_software_collections:2::el6
From an advisory covering 19 CVEs
before 0:5.5.21-2.el6
0:5.5.21-2.el6
php55-php-ldap
Red Hat:rhel_software_collections:2::el6
From an advisory covering 19 CVEs
before 0:5.5.21-2.el6
0:5.5.21-2.el6
php55-php-mbstring
Red Hat:rhel_software_collections:2::el6
From an advisory covering 19 CVEs
before 0:5.5.21-2.el6
0:5.5.21-2.el6
php55-php-mysqlnd
Red Hat:rhel_software_collections:2::el6
From an advisory covering 19 CVEs
before 0:5.5.21-2.el6
0:5.5.21-2.el6
php55-php-odbc
Red Hat:rhel_software_collections:2::el6
From an advisory covering 19 CVEs
before 0:5.5.21-2.el6
0:5.5.21-2.el6
php55-php-opcache
Red Hat:rhel_software_collections:2::el6
From an advisory covering 19 CVEs
before 0:5.5.21-2.el6
0:5.5.21-2.el6
php55-php-pdo
Red Hat:rhel_software_collections:2::el6
From an advisory covering 19 CVEs
before 0:5.5.21-2.el6
0:5.5.21-2.el6
php55-php-pgsql
Red Hat:rhel_software_collections:2::el6
From an advisory covering 19 CVEs
before 0:5.5.21-2.el6
0:5.5.21-2.el6
php55-php-process
Red Hat:rhel_software_collections:2::el6
From an advisory covering 19 CVEs
before 0:5.5.21-2.el6
0:5.5.21-2.el6
php55-php-pspell
Red Hat:rhel_software_collections:2::el6
From an advisory covering 19 CVEs
before 0:5.5.21-2.el6
0:5.5.21-2.el6
php55-php-recode
Red Hat:rhel_software_collections:2::el6
From an advisory covering 19 CVEs
before 0:5.5.21-2.el6
0:5.5.21-2.el6
php55-php-snmp
Red Hat:rhel_software_collections:2::el6
From an advisory covering 19 CVEs
before 0:5.5.21-2.el6
0:5.5.21-2.el6
php55-php-soap
Red Hat:rhel_software_collections:2::el6
From an advisory covering 19 CVEs
before 0:5.5.21-2.el6
0:5.5.21-2.el6
php55-php-tidy
Red Hat:rhel_software_collections:2::el6
From an advisory covering 19 CVEs
before 0:5.5.21-2.el6
0:5.5.21-2.el6
php55-php-xml
Red Hat:rhel_software_collections:2::el6
From an advisory covering 19 CVEs
before 0:5.5.21-2.el6
0:5.5.21-2.el6
php55-php-xmlrpc
Red Hat:rhel_software_collections:2::el6
From an advisory covering 19 CVEs
before 0:5.5.21-2.el6
0:5.5.21-2.el6
php55-runtime
Red Hat:rhel_software_collections:2::el6
From an advisory covering 19 CVEs
before 0:2.0-1.el6
0:2.0-1.el6
php55-scldevel
Red Hat:rhel_software_collections:2::el6
From an advisory covering 19 CVEs
before 0:2.0-1.el6
0:2.0-1.el6
php55
Red Hat:rhel_software_collections:2::el7
From an advisory covering 19 CVEs
before 0:2.0-1.el7
0:2.0-1.el7
php55-php
Red Hat:rhel_software_collections:2::el7
From an advisory covering 19 CVEs
before 0:5.5.21-2.el7
0:5.5.21-2.el7
php55-php-bcmath
Red Hat:rhel_software_collections:2::el7
From an advisory covering 19 CVEs
before 0:5.5.21-2.el7
0:5.5.21-2.el7
php55-php-cli
Red Hat:rhel_software_collections:2::el7
From an advisory covering 19 CVEs
before 0:5.5.21-2.el7
0:5.5.21-2.el7
php55-php-common
Red Hat:rhel_software_collections:2::el7
From an advisory covering 19 CVEs
before 0:5.5.21-2.el7
0:5.5.21-2.el7
php55-php-dba
Red Hat:rhel_software_collections:2::el7
From an advisory covering 19 CVEs
before 0:5.5.21-2.el7
0:5.5.21-2.el7
php55-php-debuginfo
Red Hat:rhel_software_collections:2::el7
From an advisory covering 19 CVEs
before 0:5.5.21-2.el7
0:5.5.21-2.el7
php55-php-devel
Red Hat:rhel_software_collections:2::el7
From an advisory covering 19 CVEs
before 0:5.5.21-2.el7
0:5.5.21-2.el7
php55-php-enchant
Red Hat:rhel_software_collections:2::el7
From an advisory covering 19 CVEs
before 0:5.5.21-2.el7
0:5.5.21-2.el7
php55-php-fpm
Red Hat:rhel_software_collections:2::el7
From an advisory covering 19 CVEs
before 0:5.5.21-2.el7
0:5.5.21-2.el7
php55-php-gd
Red Hat:rhel_software_collections:2::el7
From an advisory covering 19 CVEs
before 0:5.5.21-2.el7
0:5.5.21-2.el7
php55-php-gmp
Red Hat:rhel_software_collections:2::el7
From an advisory covering 19 CVEs
before 0:5.5.21-2.el7
0:5.5.21-2.el7
php55-php-intl
Red Hat:rhel_software_collections:2::el7
From an advisory covering 19 CVEs
before 0:5.5.21-2.el7
0:5.5.21-2.el7
php55-php-ldap
Red Hat:rhel_software_collections:2::el7
From an advisory covering 19 CVEs
before 0:5.5.21-2.el7
0:5.5.21-2.el7
php55-php-mbstring
Red Hat:rhel_software_collections:2::el7
From an advisory covering 19 CVEs
before 0:5.5.21-2.el7
0:5.5.21-2.el7
php55-php-mysqlnd
Red Hat:rhel_software_collections:2::el7
From an advisory covering 19 CVEs
before 0:5.5.21-2.el7
0:5.5.21-2.el7
php55-php-odbc
Red Hat:rhel_software_collections:2::el7
From an advisory covering 19 CVEs
before 0:5.5.21-2.el7
0:5.5.21-2.el7
php55-php-opcache
Red Hat:rhel_software_collections:2::el7
From an advisory covering 19 CVEs
before 0:5.5.21-2.el7
0:5.5.21-2.el7
php55-php-pdo
Red Hat:rhel_software_collections:2::el7
From an advisory covering 19 CVEs
before 0:5.5.21-2.el7
0:5.5.21-2.el7
php55-php-pgsql
Red Hat:rhel_software_collections:2::el7
From an advisory covering 19 CVEs
before 0:5.5.21-2.el7
0:5.5.21-2.el7
php55-php-process
Red Hat:rhel_software_collections:2::el7
From an advisory covering 19 CVEs
before 0:5.5.21-2.el7
0:5.5.21-2.el7
php55-php-pspell
Red Hat:rhel_software_collections:2::el7
From an advisory covering 19 CVEs
before 0:5.5.21-2.el7
0:5.5.21-2.el7
php55-php-recode
Red Hat:rhel_software_collections:2::el7
From an advisory covering 19 CVEs
before 0:5.5.21-2.el7
0:5.5.21-2.el7
php55-php-snmp
Red Hat:rhel_software_collections:2::el7
From an advisory covering 19 CVEs
before 0:5.5.21-2.el7
0:5.5.21-2.el7
php55-php-soap
Red Hat:rhel_software_collections:2::el7
From an advisory covering 19 CVEs
before 0:5.5.21-2.el7
0:5.5.21-2.el7
php55-php-xml
Red Hat:rhel_software_collections:2::el7
From an advisory covering 19 CVEs
before 0:5.5.21-2.el7
0:5.5.21-2.el7
php55-php-xmlrpc
Red Hat:rhel_software_collections:2::el7
From an advisory covering 19 CVEs
before 0:5.5.21-2.el7
0:5.5.21-2.el7
php55-runtime
Red Hat:rhel_software_collections:2::el7
From an advisory covering 19 CVEs
before 0:2.0-1.el7
0:2.0-1.el7
php55-scldevel
Red Hat:rhel_software_collections:2::el7
From an advisory covering 19 CVEs
before 0:2.0-1.el7
0:2.0-1.el7
php53
SUSE:Linux Enterprise Server 11 SP2-LTSS
From an advisory covering 85 CVEs
before 5.3.17-47.1
5.3.17-47.1
php5
Ubuntu:14.04:LTS
before 5.5.9+dfsg-1ubuntu4.6, plus listed versions
5.5.3+dfsg-1ubuntu25.5.3+dfsg-1ubuntu35.5.6+dfsg-1ubuntu15.5.6+dfsg-1ubuntu25.5.8+dfsg-2ubuntu1
Show 9 moreShow less
5.5.9+dfsg-1ubuntu15.5.9+dfsg-1ubuntu25.5.9+dfsg-1ubuntu35.5.9+dfsg-1ubuntu45.5.9+dfsg-1ubuntu4.15.5.9+dfsg-1ubuntu4.25.5.9+dfsg-1ubuntu4.35.5.9+dfsg-1ubuntu4.45.5.9+dfsg-1ubuntu4.5
5.5.9+dfsg-1ubuntu4.6
php5
Ubuntu:14.04:LTS
From an advisory covering 7 CVEs
before 5.5.9+dfsg-1ubuntu4.6, plus listed versions
5.5.3+dfsg-1ubuntu25.5.3+dfsg-1ubuntu35.5.6+dfsg-1ubuntu15.5.6+dfsg-1ubuntu25.5.8+dfsg-2ubuntu1
Show 9 moreShow less
5.5.9+dfsg-1ubuntu15.5.9+dfsg-1ubuntu25.5.9+dfsg-1ubuntu35.5.9+dfsg-1ubuntu45.5.9+dfsg-1ubuntu4.15.5.9+dfsg-1ubuntu4.25.5.9+dfsg-1ubuntu4.35.5.9+dfsg-1ubuntu4.45.5.9+dfsg-1ubuntu4.5
5.5.9+dfsg-1ubuntu4.6
php7
openSUSE:Tumbleweed
From an advisory covering 70 CVEs
before 7.0.14-1.4
7.0.14-1.4
php5
openSUSE:Tumbleweed
From an advisory covering 71 CVEs
before 5.6.28-1.1
5.6.28-1.1

What each source reports

NVD Score used5.0

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.

Record
CVE-2015-1352
CVSS 2.0
5.0 MediumAV:N/AC:L/Au:N/C:N/I:N/A:P
Updated
2026-11-02
CVE ListNo score

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.

Record
CVE-2015-1352
Updated
2026-11-02
EUVDEUVD-2015-1491No score

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.

Record
EUVD-2015-1491
Updated
2026-11-03
GitHub AdvisoriesGHSA-j4qg-8m5f-3hcvNo score

The build_tablename function in pgsql.c in the PostgreSQL (aka pgsql) extension in PHP through 5...

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.

Record
GHSA-j4qg-8m5f-3hcv
Updated
2026-11-02
OSVBELL-CVE-2015-13525.0

CVE-2015-1352 does not affect BellSoft software

Record
BELL-CVE-2015-1352
CVSS 2.0
5.0 MediumAV:N/AC:L/Au:N/C:N/I:N/A:P
Updated
2026-11-02
OSVMGASA-2015-0090No score

Updated php packages fix security vulnerabilities

Updated php packages fix security vulnerabilities:

It was discovered that the PHP opcache component incorrectly handled memory. A remote attacker could possibly use this issue to cause PHP to crash, resulting in a denial of service, or possibly execute arbitrary code (CVE-2015-1351).

It was discovered that the PHP PostgreSQL database extension incorrectly handled certain pointers. A remote attacker could possibly use this issue to cause PHP to crash, resulting in a denial of service, or possibly execute arbitrary code (CVE-2015-1352).

Use after free vulnerability in unserialize() with DateTimeZone in PHP before 5.5.22 (CVE-2015-0273).

PHP has been updated to version 5.5.22, which fixes these issues and other bugs.

Record
MGASA-2015-0090
Updated
2026-11-02
Show 5 moreShow less
OSVopenSUSE-SU-2024:10290-1No score

apache2-mod_php7-7.0.14-1.4 on GA media

These are all security issues fixed in the apache2-mod_php7-7.0.14-1.4 package on the GA media of openSUSE Tumbleweed.

Record
openSUSE-SU-2024:10290-1
Updated
2026-11-02
OSVopenSUSE-SU-2024:10344-1No score

apache2-mod_php5-5.6.28-1.1 on GA media

These are all security issues fixed in the apache2-mod_php5-5.6.28-1.1 package on the GA media of openSUSE Tumbleweed.

Record
openSUSE-SU-2024:10344-1
Updated
2026-11-02
OSVSUSE-SU-2016:1638-1No score

Security update for php53

This update for php53 to version 5.3.17 fixes the following issues:

These security issues were fixed:

  • CVE-2016-5093: get_icu_value_internal out-of-bounds read (bnc#982010).
  • CVE-2016-5094: Don't create strings with lengths outside int range (bnc#982011).
  • CVE-2016-5095: Don't create strings with lengths outside int range (bnc#982012).
  • CVE-2016-5096: int/size_t confusion in fread (bsc#982013).
  • CVE-2016-5114: fpm_log.c memory leak and buffer overflow (bnc#982162).
  • CVE-2015-8879: The odbc_bindcols function in ext/odbc/php_odbc.c in PHP mishandles driver behavior for SQL_WVARCHAR columns, which allowed remote attackers to cause a denial of service (application crash) in opportunistic circumstances by leveraging use of the odbc_fetch_array function to access a certain type of Microsoft SQL Server table (bsc#981050).
  • CVE-2015-4116: Use-after-free vulnerability in the spl_ptr_heap_insert function in ext/spl/spl_heap.c in PHP allowed remote attackers to execute arbitrary code by triggering a failed SplMinHeap::compare operation (bsc#980366).
  • CVE-2015-8874: Stack consumption vulnerability in GD in PHP allowed remote attackers to cause a denial of service via a crafted imagefilltoborder call (bsc#980375).
  • CVE-2015-8873: Stack consumption vulnerability in Zend/zend_exceptions.c in PHP allowed remote attackers to cause a denial of service (segmentation fault) via recursive method calls (bsc#980373).
  • CVE-2016-4540: The grapheme_stripos function in ext/intl/grapheme/grapheme_string.c in PHP allowed remote attackers to cause a denial of service (out-of-bounds read) or possibly have unspecified other impact via a negative offset (bsc#978829).
  • CVE-2016-4541: The grapheme_strpos function in ext/intl/grapheme/grapheme_string.c in PHP allowed remote attackers to cause a denial of service (out-of-bounds read) or possibly have unspecified other impact via a negative offset (bsc#978829.
  • CVE-2016-4542: The exif_process_IFD_TAG function in ext/exif/exif.c in PHP did not properly construct spprintf arguments, which allowed remote attackers to cause a denial of service (out-of-bounds read) or possibly have unspecified other impact via crafted header data (bsc#978830).
  • CVE-2016-4543: The exif_process_IFD_in_JPEG function in ext/exif/exif.c in PHP did not validate IFD sizes, which allowed remote attackers to cause a denial of service (out-of-bounds read) or possibly have unspecified other impact via crafted header data (bsc#978830.
  • CVE-2016-4544: The exif_process_TIFF_in_JPEG function in ext/exif/exif.c in PHP did not validate TIFF start data, which allowed remote attackers to cause a denial of service (out-of-bounds read) or possibly have unspecified other impact via crafted header data (bsc#978830.
  • CVE-2016-4537: The bcpowmod function in ext/bcmath/bcmath.c in PHP accepted a negative integer for the scale argument, which allowed remote attackers to cause a denial of service or possibly have unspecified other impact via a crafted call (bsc#978827).
  • CVE-2016-4538: The bcpowmod function in ext/bcmath/bcmath.c in PHP modified certain data structures without considering whether they are copies of the zero, one, or two global variable, which allowed remote attackers to cause a denial of service or possibly have unspecified other impact via a crafted call (bsc#978827).
  • CVE-2016-4539: The xml_parse_into_struct function in ext/xml/xml.c in PHP allowed remote attackers to cause a denial of service (buffer under-read and segmentation fault) or possibly have unspecified other impact via crafted XML data in the second argument, leading to a parser level of zero (bsc#978828).
  • CVE-2016-4342: ext/phar/phar_object.c in PHP mishandles zero-length uncompressed data, which allowed remote attackers to cause a denial of service (heap memory corruption) or possibly have unspecified other impact via a crafted (1) TAR, (2) ZIP, or (3) PHAR archive (bsc#977991).
  • CVE-2016-4346: Integer overflow in the str_pad function in…
Record
SUSE-SU-2016:1638-1
Updated
2026-11-02
OSVUBUNTU-CVE-2015-1352No score

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.

Record
UBUNTU-CVE-2015-1352
Updated
2026-11-02
OSVUSN-2501-1No score

php5 vulnerabilities

Stefan Esser discovered that PHP incorrectly handled unserializing objects. A remote attacker could use this issue to cause PHP to crash, resulting in a denial of service, or possibly execute arbitrary code. (CVE-2014-8142, CVE-2015-0231)

Brian Carpenter discovered that the PHP CGI component incorrectly handled invalid files. A local attacker could use this issue to obtain sensitive information, or possibly execute arbitrary code. This issue only affected Ubuntu 14.04 LTS and Ubuntu 14.10. (CVE-2014-9427)

It was discovered that PHP incorrectly handled certain pascal strings in the fileinfo extension. A remote attacker could possibly use this issue to cause PHP to crash, resulting in a denial of service. This issue only affected Ubuntu 14.04 LTS and Ubuntu 14.10. (CVE-2014-9652)

Alex Eubanks discovered that PHP incorrectly handled EXIF data in JPEG images. A remote attacker could use this issue to cause PHP to crash, resulting in a denial of service, or possibly execute arbitrary code. This issue only affected Ubuntu 14.04 LTS and Ubuntu 14.10. (CVE-2015-0232)

It was discovered that the PHP opcache component incorrectly handled memory. A remote attacker could possibly use this issue to cause PHP to crash, resulting in a denial of service, or possibly execute arbitrary code. This issue only affected Ubuntu 14.04 LTS and Ubuntu 14.10. (CVE-2015-1351)

It was discovered that the PHP PostgreSQL database extension incorrectly handled certain pointers. A remote attacker could possibly use this issue to cause PHP to crash, resulting in a denial of service, or possibly execute arbitrary code. This issue only affected Ubuntu 14.04 LTS and Ubuntu 14.10. (CVE-2015-1352)

Record
USN-2501-1
Updated
2026-11-02

History

History
RecordedChangedSources
affected, facts
aliasesEUVD
first indexedCVE List, GitHub Advisories, NVD, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

References

Show 194 moreShow less
This page doesn't list everything

Left out here: 120 references and the rest of 1 source description. The JSON record has them.

MoveEnter Open