CVE-2016-4346
Integer overflow in the str_pad function in ext/standard/string.c in PHP before 7.0.4 allows...
Integer overflow in the str_pad function in ext/standard/string.c in PHP before 7.0.4 allows remote attackers to cause a denial of service or possibly have unspecified other impact via a long string, leading to a heap-based buffer overflow.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- None
What an attacker can affect
- Confidentiality
- High
- Integrity
- High
- Availability
- High
Exploit likelihood
What each source reports
NVD Score used
9.8
Integer overflow in the str_pad function in ext/standard/string.c in PHP before 7.0.4 allows remote attackers to cause a denial of service or possibly have unspecified other impact via a long string, leading to a heap-based buffer overflow.
- Record
CVE-2016-4346- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - CVSS 2.0
- 7.5 High
AV:N/AC:L/Au:N/C:P/I:P/A:P - Weakness
- CWE-190
- Updated
- 2026-11-02
CVE List No score
Integer overflow in the str_pad function in ext/standard/string.c in PHP before 7.0.4 allows remote attackers to cause a denial of service or possibly have unspecified other impact via a long string, leading to a heap-based buffer overflow.
- Record
CVE-2016-4346- Updated
- 2026-11-02
EUVDEUVD-2016-5346 No score
Integer overflow in the str_pad function in ext/standard/string.c in PHP before 7.0.4 allows remote attackers to cause a denial of service or possibly have unspecified other impact via a long string, leading to a heap-based buffer overflow.
- Record
EUVD-2016-5346- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-g567-h7p8-q9q9
9.8
Integer overflow in the str_pad function in ext/standard/string.c in PHP before 7.0.4 allows...
Integer overflow in the str_pad function in ext/standard/string.c in PHP before 7.0.4 allows remote attackers to cause a denial of service or possibly have unspecified other impact via a long string, leading to a heap-based buffer overflow.
- Record
GHSA-g567-h7p8-q9q9- CVSS 3.0
- 9.8 Critical
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Weakness
- CWE-190
- Updated
- 2026-11-02
OSV
9.8
Integer overflow in the str_pad function in ext/standard/string.c in PHP before 7.0.4 allows remote attackers to cause a denial of service or possibly have unspecified other impact via a long string, leading to a heap-based buffer overflow.
- Record
CVE-2016-4346- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVUBUNTU-CVE-2016-4346
9.8
Integer overflow in the str_pad function in ext/standard/string.c in PHP before 7.0.4 allows remote attackers to cause a denial of service or possibly have unspecified other impact via a long string, leading to a heap-based buffer overflow.
- Record
UBUNTU-CVE-2016-4346- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - CVSS 3.0
- 9.8 Critical
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVSUSE-SU-2016:1504-1 No score
Security update for php5
This update for php5 fixes the following issues:
Security issues fixed:
- CVE-2016-4346: heap overflow in ext/standard/string.c (bsc#977994)
- CVE-2016-4342: heap corruption in tar/zip/phar parser (bsc#977991)
- CVE-2016-4537, CVE-2016-4538: bcpowmod accepts negative scale causing heap buffer overflow corrupting one definition (bsc#978827)
- CVE-2016-4539: Malformed input causes segmentation fault in xml_parse_into_struct() function (bsc#978828)
- CVE-2016-4540, CVE-2016-4541: Out-of-bounds memory read in zif_grapheme_stripos when given negative offset (bsc#978829)
- CVE-2016-4542, CVE-2016-4543, CVE-2016-4544: Out-of-bounds heap memory read in exif_read_data() caused by malformed input (bsc#978830)
- CVE-2015-4116: Use-after-free vulnerability in the spl_ptr_heap_insert function (bsc#980366)
- CVE-2015-8873: Stack consumption vulnerability in Zend/zend_exceptions.c (bsc#980373)
- CVE-2015-8874: Stack consumption vulnerability in GD (bsc#980375)
- Record
SUSE-SU-2016:1504-1- Updated
- 2026-11-02
OSVSUSE-SU-2016:1581-1 No score
Security update for php53
This update for php53 fixes the following issues:
- CVE-2016-5093: A get_icu_value_internal out-of-bounds read could crash the php interpreter (bsc#982010)
- CVE-2016-5094,CVE-2016-5095: Don't allow creating strings with lengths outside int range, avoids overflows (bsc#982011,bsc#982012)
- CVE-2016-5096: A int/size_t confusion in fread could corrupt memory (bsc#982013)
- CVE-2016-5114: A fpm_log.c memory leak and buffer overflow could leak information out of the php process or overwrite a buffer by 1 byte (bsc#982162)
- CVE-2016-4346: A heap overflow was fixed in ext/standard/string.c (bsc#977994)
- CVE-2016-4342: A heap corruption was fixed in tar/zip/phar parser (bsc#977991)
- CVE-2016-4537, CVE-2016-4538: bcpowmod accepted negative scale causing heap buffer overflow corrupting one definition (bsc#978827)
- CVE-2016-4539: Malformed input causes segmentation fault in xml_parse_into_struct() function (bsc#978828)
- CVE-2016-4540, CVE-2016-4541: Out-of-bounds memory read in zif_grapheme_stripos when given negative offset (bsc#978829)
- CVE-2016-4542, CVE-2016-4543, CVE-2016-4544: Out-of-bounds heap memory read in exif_read_data() caused by malformed input (bsc#978830)
- CVE-2015-4116: Use-after-free vulnerability in the spl_ptr_heap_insert function (bsc#980366)
- CVE-2015-8873: Stack consumption vulnerability in Zend/zend_exceptions.c (bsc#980373)
- CVE-2015-8874: Stack consumption vulnerability in GD (bsc#980375)
- CVE-2015-8879: odbc_bindcols function in ext/odbc/php_odbc.c mishandles driver behavior for SQL_WVARCHAR (bsc#981050)
Also fixed previously on SUSE Linux Enterprise 11 SP4, but not yet shipped to SUSE Linux Enterprise Server 11 SP3 LTSS:
- CVE-2015-8838: mysqlnd was vulnerable to BACKRONYM (bnc#973792).
- CVE-2015-8835: SoapClient s_call method suffered from a type confusion issue that could have lead to crashes [bsc#973351]
- CVE-2016-2554: A NULL pointer dereference in phar_get_fp_offset could lead to crashes. [bsc#968284]
- CVE-2015-7803: A Stack overflow vulnerability when decompressing tar phar archives could potentially lead to code execution. [bsc#949961]
- CVE-2016-3141: A use-after-free / double-free in the WDDX deserialization could lead to crashes or potential code execution. [bsc#969821]
- CVE-2016-3142: An Out-of-bounds read in phar_parse_zipfile() could lead to crashes. [bsc#971912]
- CVE-2014-9767: A directory traversal when extracting zip files was fixed that could lead to overwritten files. [bsc#971612]
- CVE-2016-3185: A type confusion vulnerability in make_http_soap_request() could lead to crashes or potentially code execution. [bsc#971611]
- CVE-2016-4073: A remote attacker could have caused denial of service, or possibly execute arbitrary code, due to incorrect handling of string length calculations in mb_strcut() (bsc#977003)
- CVE-2015-8867: The PHP function openssl_random_pseudo_bytes() did not return cryptographically secure random bytes (bsc#977005)
- CVE-2016-4070: The libxml_disable_entity_loader() setting was shared between threads, which could have resulted in XML external entity injection and entity expansion issues (bsc#976997)
- CVE-2015-8866: A remote attacker could have caused denial of service due to incorrect handling of large strings in php_raw_url_encode() (bsc#976996)
- Record
SUSE-SU-2016:1581-1- Updated
- 2026-11-02
OSVSUSE-SU-2016:1638-1 No 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
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
php5SUSE:Linux Enterprise Module for Web and Scripting 12 |
before 5.5.14-59.2 | 5.5.14-59.2 |
php5SUSE:Linux Enterprise Software Development Kit 12 |
before 5.5.14-59.2 | 5.5.14-59.2 |
php5SUSE:Linux Enterprise Software Development Kit 12 SP1 |
before 5.5.14-59.2 | 5.5.14-59.2 |
php53SUSE:Linux Enterprise Software Development Kit 11 SP4 |
before 5.3.17-71.1 | 5.3.17-71.1 |
php53SUSE:OpenStack Cloud 5 |
before 5.3.17-71.1 | 5.3.17-71.1 |
php53SUSE:Manager 2.1 |
before 5.3.17-71.1 | 5.3.17-71.1 |
php53SUSE:Manager Proxy 2.1 |
before 5.3.17-71.1 | 5.3.17-71.1 |
php53SUSE:Linux Enterprise Server 11 SP3-LTSS |
before 5.3.17-71.1 | 5.3.17-71.1 |
php53SUSE:Linux Enterprise Server 11 SP3-TERADATA |
before 5.3.17-71.1 | 5.3.17-71.1 |
php53SUSE:Linux Enterprise Server 11 SP4 |
before 5.3.17-71.1 | 5.3.17-71.1 |
php53SUSE:Linux Enterprise Server for SAP Applications 11 SP4 |
before 5.3.17-71.1 | 5.3.17-71.1 |
php53SUSE:Linux Enterprise Server 11 SP2-LTSS |
before 5.3.17-47.1 | 5.3.17-47.1 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected | ||
| aliases | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2016-4346 is a critical vulnerability (CVSS 9.8) in Php, published May 22, 2016. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 5.67%, the 92nd percentile. Fixed in php5 5.5.14-59.2.
References
lists.opensuse.org/opensuse-updates/2016-06/msg00027.html
bugs.php.net/bug.php?id=71637
openwall.com/lists/oss-security/2016/04/28/2
php.net/ChangeLog-7.php
lists.opensuse.org/opensuse-updates/2016-05/msg00086.html
nvd.nist.gov/vuln/detail/CVE-2016-4346
Show 165 moreShow less
github.com/advisories/GHSA-g567-h7p8-q9q9
suse.com/support/update/announcement/2016/suse-su-20161504-1
bugzilla.suse.com/977991
bugzilla.suse.com/977994
bugzilla.suse.com/978827
bugzilla.suse.com/978828
bugzilla.suse.com/978829
bugzilla.suse.com/978830
bugzilla.suse.com/980366
bugzilla.suse.com/980373
bugzilla.suse.com/980375
suse.com/security/cve/CVE-2015-4116
suse.com/security/cve/CVE-2015-8873
suse.com/security/cve/CVE-2015-8874
suse.com/security/cve/CVE-2016-4342
suse.com/security/cve/CVE-2016-4346
suse.com/security/cve/CVE-2016-4537
suse.com/security/cve/CVE-2016-4538
suse.com/security/cve/CVE-2016-4539
suse.com/security/cve/CVE-2016-4540
suse.com/security/cve/CVE-2016-4541
suse.com/security/cve/CVE-2016-4542
suse.com/security/cve/CVE-2016-4543
suse.com/security/cve/CVE-2016-4544
suse.com/support/update/announcement/2016/suse-su-20161581-1
bugzilla.suse.com/949961
bugzilla.suse.com/968284
bugzilla.suse.com/969821
bugzilla.suse.com/971611
bugzilla.suse.com/971612
bugzilla.suse.com/971912
bugzilla.suse.com/973351
bugzilla.suse.com/973792
bugzilla.suse.com/976996
bugzilla.suse.com/976997
bugzilla.suse.com/977003
bugzilla.suse.com/977005
bugzilla.suse.com/981050
bugzilla.suse.com/982010
bugzilla.suse.com/982011
bugzilla.suse.com/982012
bugzilla.suse.com/982013
bugzilla.suse.com/982162
suse.com/security/cve/CVE-2014-9767
suse.com/security/cve/CVE-2015-7803
suse.com/security/cve/CVE-2015-8835
suse.com/security/cve/CVE-2015-8838
suse.com/security/cve/CVE-2015-8866
suse.com/security/cve/CVE-2015-8867
suse.com/security/cve/CVE-2015-8879
suse.com/security/cve/CVE-2016-2554
suse.com/security/cve/CVE-2016-3141
suse.com/security/cve/CVE-2016-3142
suse.com/security/cve/CVE-2016-3185
suse.com/security/cve/CVE-2016-4070
suse.com/security/cve/CVE-2016-4073
suse.com/security/cve/CVE-2016-5093
suse.com/security/cve/CVE-2016-5094
suse.com/security/cve/CVE-2016-5095
suse.com/security/cve/CVE-2016-5096
suse.com/security/cve/CVE-2016-5114
suse.com/support/update/announcement/2016/suse-su-20161638-1
bugzilla.suse.com/884986
bugzilla.suse.com/884987
bugzilla.suse.com/884989
bugzilla.suse.com/884990
bugzilla.suse.com/884991
bugzilla.suse.com/884992
bugzilla.suse.com/885961
bugzilla.suse.com/886059
bugzilla.suse.com/886060
bugzilla.suse.com/893849
bugzilla.suse.com/893853
bugzilla.suse.com/902357
bugzilla.suse.com/902360
bugzilla.suse.com/902368
bugzilla.suse.com/910659
bugzilla.suse.com/914690
bugzilla.suse.com/917150
bugzilla.suse.com/918768
bugzilla.suse.com/919080
bugzilla.suse.com/921950
bugzilla.suse.com/922451
bugzilla.suse.com/922452
bugzilla.suse.com/923945
bugzilla.suse.com/924972
bugzilla.suse.com/925109
bugzilla.suse.com/928506
bugzilla.suse.com/928511
bugzilla.suse.com/931421
bugzilla.suse.com/931769
bugzilla.suse.com/931772
bugzilla.suse.com/931776
bugzilla.suse.com/933227
bugzilla.suse.com/935074
bugzilla.suse.com/935224
bugzilla.suse.com/935226
bugzilla.suse.com/935227
bugzilla.suse.com/935229
bugzilla.suse.com/935232
bugzilla.suse.com/935234
bugzilla.suse.com/935274
bugzilla.suse.com/935275
bugzilla.suse.com/938719
bugzilla.suse.com/938721
bugzilla.suse.com/942291
bugzilla.suse.com/942296
bugzilla.suse.com/945412
bugzilla.suse.com/945428
suse.com/security/cve/CVE-2004-1019
suse.com/security/cve/CVE-2006-7243
suse.com/security/cve/CVE-2014-0207
suse.com/security/cve/CVE-2014-3478
suse.com/security/cve/CVE-2014-3479
suse.com/security/cve/CVE-2014-3480
suse.com/security/cve/CVE-2014-3487
suse.com/security/cve/CVE-2014-3515
suse.com/security/cve/CVE-2014-3597
suse.com/security/cve/CVE-2014-3668
suse.com/security/cve/CVE-2014-3669
suse.com/security/cve/CVE-2014-3670
suse.com/security/cve/CVE-2014-4049
suse.com/security/cve/CVE-2014-4670
suse.com/security/cve/CVE-2014-4698
suse.com/security/cve/CVE-2014-4721
suse.com/security/cve/CVE-2014-5459
suse.com/security/cve/CVE-2014-8142
suse.com/security/cve/CVE-2014-9652
suse.com/security/cve/CVE-2014-9705
suse.com/security/cve/CVE-2014-9709
suse.com/security/cve/CVE-2015-0231
suse.com/security/cve/CVE-2015-0232
suse.com/security/cve/CVE-2015-0273
suse.com/security/cve/CVE-2015-1352
suse.com/security/cve/CVE-2015-2301
suse.com/security/cve/CVE-2015-2305
suse.com/security/cve/CVE-2015-2783
suse.com/security/cve/CVE-2015-2787
suse.com/security/cve/CVE-2015-3152
suse.com/security/cve/CVE-2015-3329
suse.com/security/cve/CVE-2015-3411
suse.com/security/cve/CVE-2015-3412
suse.com/security/cve/CVE-2015-4021
suse.com/security/cve/CVE-2015-4022
suse.com/security/cve/CVE-2015-4024
suse.com/security/cve/CVE-2015-4026
suse.com/security/cve/CVE-2015-4148
suse.com/security/cve/CVE-2015-4598
suse.com/security/cve/CVE-2015-4599
suse.com/security/cve/CVE-2015-4600
suse.com/security/cve/CVE-2015-4601
suse.com/security/cve/CVE-2015-4602
suse.com/security/cve/CVE-2015-4603
suse.com/security/cve/CVE-2015-4643
suse.com/security/cve/CVE-2015-4644
suse.com/security/cve/CVE-2015-5161
suse.com/security/cve/CVE-2015-5589
suse.com/security/cve/CVE-2015-5590
suse.com/security/cve/CVE-2015-6831
suse.com/security/cve/CVE-2015-6833
suse.com/security/cve/CVE-2015-6836
suse.com/security/cve/CVE-2015-6837
suse.com/security/cve/CVE-2015-6838
ubuntu.com/security/CVE-2016-4346
cve.org/CVERecord?id=CVE-2016-4346
Left out here: the rest of 1 source description. The JSON record has them.