CVE-2016-5769
Multiple integer overflows in mcrypt.c in the mcrypt extension in PHP before 5.5.37, 5.6.x before...
Multiple integer overflows in mcrypt.c in the mcrypt extension in PHP before 5.5.37, 5.6.x before 5.6.23, and 7.x before 7.0.8 allow remote attackers to cause a denial of service (heap-based buffer overflow and application crash) or possibly have unspecified other impact via a crafted length value, related to the (1) mcrypt_generic and (2) mdecrypt_generic functions.
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
Multiple integer overflows in mcrypt.c in the mcrypt extension in PHP before 5.5.37, 5.6.x before 5.6.23, and 7.x before 7.0.8 allow remote attackers to cause a denial of service (heap-based buffer overflow and application crash) or possibly have unspecified other impact via a crafted length value, related to the (1) mcrypt_generic and (2) mdecrypt_generic functions.
- Record
CVE-2016-5769- 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 - 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
Multiple integer overflows in mcrypt.c in the mcrypt extension in PHP before 5.5.37, 5.6.x before 5.6.23, and 7.x before 7.0.8 allow remote attackers to cause a denial of service (heap-based buffer overflow and application crash) or possibly have unspecified other impact via a crafted length value, related to the (1) mcrypt_generic and (2) mdecrypt_generic functions.
- Record
CVE-2016-5769- Updated
- 2026-11-02
EUVDEUVD-2016-6704 No score
Multiple integer overflows in mcrypt.c in the mcrypt extension in PHP before 5.5.37, 5.6.x before 5.6.23, and 7.x before 7.0.8 allow remote attackers to cause a denial of service (heap-based buffer overflow and application crash) or possibly have unspecified other impact via a crafted length value, related to the (1) mcrypt_generic and (2) mdecrypt_generic functions.
- Record
EUVD-2016-6704- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-5jqx-3p4m-wv4h
9.8
Multiple integer overflows in mcrypt.c in the mcrypt extension in PHP before 5.5.37, 5.6.x before...
Multiple integer overflows in mcrypt.c in the mcrypt extension in PHP before 5.5.37, 5.6.x before 5.6.23, and 7.x before 7.0.8 allow remote attackers to cause a denial of service (heap-based buffer overflow and application crash) or possibly have unspecified other impact via a crafted length value, related to the (1) mcrypt_generic and (2) mdecrypt_generic functions.
- Record
GHSA-5jqx-3p4m-wv4h- 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
Multiple integer overflows in mcrypt.c in the mcrypt extension in PHP before 5.5.37, 5.6.x before 5.6.23, and 7.x before 7.0.8 allow remote attackers to cause a denial of service (heap-based buffer overflow and application crash) or possibly have unspecified other impact via a crafted length value, related to the (1) mcrypt_generic and (2) mdecrypt_generic functions.
- Record
CVE-2016-5769- 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
OSVUBUNTU-CVE-2016-5769
9.8
Multiple integer overflows in mcrypt.c in the mcrypt extension in PHP before 5.5.37, 5.6.x before 5.6.23, and 7.x before 7.0.8 allow remote attackers to cause a denial of service (heap-based buffer overflow and application crash) or possibly have unspecified other impact via a crafted length value, related to the (1) mcrypt_generic and (2) mdecrypt_generic functions.
- Record
UBUNTU-CVE-2016-5769- 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
Show 5 moreShow less
OSVMGASA-2016-0238 No score
Updated php packages fix security vulnerability
php-mbstring _php_mb_regex_ereg_replace_exec() - double free (CVE-2016-5768).
php-mcrypt heap Overflow due to integer overflows (CVE-2016-5769).
php-SPL int/size_t confusion in SplFileObject::fread (CVE-2016-5770).
php-SPL Use After Free Vulnerability in PHP's GC algorithm and unserialize (CVE-2016-5771).
php-WDDX Double Free Courruption in wddx_deserialize (CVE-2016-5772).
php-zip ZipArchive class Use After Free Vulnerability in PHP's GC algorithm and unserialize (CVE-2016-5773).
The php package has been updated to version 5.6.23, fixing these issues and several other bugs. See the upstream ChangeLog for details.
- Record
MGASA-2016-0238- Updated
- 2026-11-02
OSVSUSE-SU-2016:1842-1 No score
Security update for php5
This update for php5 fixes the following issues:
- It is possible to launch a web server with 'php -S localhost:8080' It used to be possible to set an arbitrary $HTTP_PROXY environment variable for request handlers -- like CGI scripts -- by including a specially crafted HTTP header in the request (CVE-2016-5385). As a result, these server components would potentially direct all their outgoing HTTP traffic through a malicious proxy server. This patch fixes the issue: the updated php server ignores such HTTP headers and never sets $HTTP_PROXY for sub-processes. (bnc#988486)
- There was multiple cases where a remote attacker could trigger a double free and, given specific PHP code using callbacks, trigger code execution vectors. (bnc#986246,bnc#986244,CVE-2016-5768,CVE-2016-5772)
- It was possible to inject header or content information (XSS) when a user was using internet explorer as the browser. (bnc#986004, CVE-2015-8935)
- In several cases it was possible for a integer overflow to trigger an excessive memory allocation (bnc#986392, bnc#986388, bnc#986386, bnc#986393, CVE-2016-5770, CVE-2016-5769, CVE-2016-5766, CVE-2016-5767)
- It was possible for an attacker to abuse the garbage collector to free a target array. At this point an attacker could craft a fake zval object and exploit the PHP process by taking over the EIP/RIP. (bnc#986391, CVE-2016-5771)
- Record
SUSE-SU-2016:1842-1- Updated
- 2026-11-02
OSVSUSE-SU-2016:2013-1 No score
Security update for php53
php53 was updated to fix five security issues.
These security issues were fixed:
- CVE-2016-5769: mcrypt: Heap Overflow due to integer overflows (bsc#986388).
- CVE-2015-8935: XSS in header() with Internet Explorer (bsc#986004).
- CVE-2016-5772: Double Free Courruption in wddx_deserialize (bsc#986244).
- CVE-2016-5766: Integer Overflow in _gd2GetHeader() resulting in heap overflow (bsc#986386).
- CVE-2016-5767: Integer Overflow in gdImagePaletteToTrueColor() resulting in heap overflow (bsc#986393).
- Record
SUSE-SU-2016:2013-1- Updated
- 2026-11-02
OSVSUSE-SU-2016:2080-1 No score
Security update for php5
php5 was updated to fix the following security issues:
- CVE-2016-6297: Stack-based buffer overflow vulnerability in php_stream_zip_opener (bsc#991426).
- CVE-2016-6291: Out-of-bounds access in exif_process_IFD_in_MAKERNOTE (bsc#991427).
- CVE-2016-6289: Integer overflow leads to buffer overflow in virtual_file_ex (bsc#991428).
- CVE-2016-6290: Use after free in unserialize() with Unexpected Session Deserialization (bsc#991429).
- CVE-2016-5399: Improper error handling in bzread() (bsc#991430).
- CVE-2016-6288: Buffer over-read in php_url_parse_ex (bsc#991433).
- CVE-2016-6296: Heap buffer overflow vulnerability in simplestring_addn in simplestring.c (bsc#991437).
- CVE-2016-5769: Mcrypt: Heap Overflow due to integer overflows (bsc#986388).
- CVE-2015-8935: XSS in header() with Internet Explorer (bsc#986004).
- CVE-2016-5772: Double free corruption in wddx_deserialize (bsc#986244).
- CVE-2016-5766: Integer Overflow in _gd2GetHeader() resulting in heap overflow (bsc#986386).
- CVE-2016-5767: Integer Overflow in gdImagePaletteToTrueColor() resulting in heap overflow (bsc#986393).
- Record
SUSE-SU-2016:2080-1- Updated
- 2026-11-02
OSVUSN-3045-1 No score
php5, php7.0 vulnerabilities
It was discovered that PHP incorrectly handled certain SplMinHeap::compare operations. 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 12.04 LTS and Ubuntu 14.04 LTS. (CVE-2015-4116)
It was discovered that PHP incorrectly handled recursive method calls. A remote attacker could use this issue to cause PHP to crash, resulting in a denial of service. This issue only affected Ubuntu 12.04 LTS and Ubuntu 14.04 LTS. (CVE-2015-8873)
It was discovered that PHP incorrectly validated certain Exception objects when unserializing data. 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 12.04 LTS and Ubuntu 14.04 LTS. (CVE-2015-8876)
It was discovered that PHP header() function performed insufficient filtering for Internet Explorer. A remote attacker could possibly use this issue to perform a XSS attack. This issue only affected Ubuntu 12.04 LTS and Ubuntu 14.04 LTS. (CVE-2015-8935)
It was discovered that PHP incorrectly handled certain locale operations. An attacker could use this issue to cause PHP to crash, resulting in a denial of service. This issue only affected Ubuntu 12.04 LTS and Ubuntu 14.04 LTS. (CVE-2016-5093)
It was discovered that the PHP php_html_entities() function incorrectly handled certain string lengths. 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 12.04 LTS and Ubuntu 14.04 LTS. (CVE-2016-5094, CVE-2016-5095)
It was discovered that the PHP fread() function incorrectly handled certain lengths. An 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 12.04 LTS and Ubuntu 14.04 LTS. (CVE-2016-5096)
It was discovered that the PHP FastCGI Process Manager (FPM) SAPI incorrectly handled memory in the access logging feature. An attacker could use this issue to cause PHP to crash, resulting in a denial of service, or possibly expose sensitive information. This issue only affected Ubuntu 12.04 LTS and Ubuntu 14.04 LTS. (CVE-2016-5114)
It was discovered that PHP would not protect applications from contents of the HTTP_PROXY environment variable when based on the contents of the Proxy header from HTTP requests. A remote attacker could possibly use this issue in combination with scripts that honour the HTTP_PROXY variable to redirect outgoing HTTP requests. (CVE-2016-5385)
Hans Jerry Illikainen discovered that the PHP bzread() function incorrectly performed error handling. A remote attacker could use this issue to cause PHP to crash, resulting in a denial of service, or possibly execute arbitrary code. (CVE-2016-5399)
It was discovered that certain PHP multibyte string functions incorrectly handled memory. 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. (CVE-2016-5768)
It was discovered that the PHP Mcrypt extension incorrectly handled memory. 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 12.04 LTS and Ubuntu 14.04 LTS. (CVE-2016-5769)
It was discovered that the PHP garbage collector incorrectly handled certain objects when unserializing malicious data. 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 was only addressed in Ubuntu Ubuntu 14.04 LTS. (CVE-2016-5771, CVE-2016-5773)
It was discovered that PHP incorrectly handled memory when unserializing malicious xml data. A remote attacker could use this issue to cause PHP to crash, resulting in a…
- Record
USN-3045-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
php5Debian:7 From an advisory covering 19 CVEs |
before 5.4.45-0+deb7u5, plus listed versions 5.4.11-15.4.15-15.4.34-0+deb7u15.4.35-0+deb7u15.4.35-0+deb7u2 Show 34 moreShow less5.4.36-0+deb7u15.4.36-0+deb7u35.4.38-0+deb7u15.4.39-0+deb7u15.4.39-0+deb7u25.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.41-0+deb7u15.4.44-0+deb7u15.4.45-0+deb7u15.4.45-0+deb7u25.4.45-0+deb7u35.4.45-0+deb7u45.4.6-15.4.6-25.4.8-15.4.9-15.4.9-25.4.9-35.4.9-4 |
5.4.45-0+deb7u5 |
php5Debian:8 From an advisory covering 6 CVEs |
before 5.6.23+dfsg-0+deb8u1, plus listed versions 5.6.11+dfsg-15.6.12+dfsg-0+deb8u15.6.12+dfsg-15.6.13+dfsg-0+deb8u15.6.13+dfsg-1 Show 25 moreShow less5.6.13+dfsg-25.6.14+dfsg-0+deb8u15.6.14+dfsg-15.6.15+dfsg-15.6.16+dfsg-15.6.16+dfsg-25.6.16+dfsg-35.6.16+dfsg-45.6.17+dfsg-0+deb8u15.6.17+dfsg-15.6.17+dfsg-35.6.18+dfsg-15.6.19+dfsg-0+deb8u15.6.19+dfsg-15.6.19+dfsg-25.6.20+dfsg-0+deb8u15.6.20+dfsg-15.6.21+dfsg-15.6.21+dfsg-25.6.22+dfsg-0+deb8u15.6.22+dfsg-15.6.22+dfsg-25.6.7+dfsg-15.6.9+dfsg-0+deb8u15.6.9+dfsg-1 |
5.6.23+dfsg-0+deb8u1 |
phpMageia:5 From an advisory covering 6 CVEs |
before 5.6.23-1.mga5 | 5.6.23-1.mga5 |
php5SUSE:Linux Enterprise Module for Web and Scripting 12 From an advisory covering 9 CVEs |
before 5.5.14-68.1 | 5.5.14-68.1 |
php5SUSE:Linux Enterprise Software Development Kit 12 SP1 From an advisory covering 9 CVEs |
before 5.5.14-68.1 | 5.5.14-68.1 |
php53SUSE:Linux Enterprise Software Development Kit 11 SP4 From an advisory covering 5 CVEs |
before 5.3.17-74.1 | 5.3.17-74.1 |
php53SUSE:Linux Enterprise Server 11 SP4 From an advisory covering 5 CVEs |
before 5.3.17-74.1 | 5.3.17-74.1 |
php53SUSE:Linux Enterprise Server for SAP Applications 11 SP4 From an advisory covering 5 CVEs |
before 5.3.17-74.1 | 5.3.17-74.1 |
php5SUSE:Linux Enterprise Server 11 SP2-LTSS From an advisory covering 12 CVEs |
before 5.2.14-0.7.30.89.1 | 5.2.14-0.7.30.89.1 |
php5Ubuntu:14.04:LTS |
before 5.5.9+dfsg-1ubuntu4.19, 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 18 moreShow less5.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.55.5.9+dfsg-1ubuntu4.65.5.9+dfsg-1ubuntu4.75.5.9+dfsg-1ubuntu4.95.5.9+dfsg-1ubuntu4.115.5.9+dfsg-1ubuntu4.125.5.9+dfsg-1ubuntu4.135.5.9+dfsg-1ubuntu4.145.5.9+dfsg-1ubuntu4.165.5.9+dfsg-1ubuntu4.17 |
5.5.9+dfsg-1ubuntu4.19 |
php7.0Ubuntu:16.04:LTS |
before 7.0.8-0ubuntu0.16.04.1, plus listed versions 7.0.1-57.0.1-67.0.2-17.0.2-37.0.2-4 Show 9 moreShow less7.0.2-57.0.3-27.0.3-37.0.3-9ubuntu17.0.4-5ubuntu17.0.4-5ubuntu27.0.4-7ubuntu17.0.4-7ubuntu27.0.4-7ubuntu2.1 |
7.0.8-0ubuntu0.16.04.1 |
php5Ubuntu:14.04:LTS From an advisory covering 25 CVEs |
before 5.5.9+dfsg-1ubuntu4.19, 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 18 moreShow less5.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.55.5.9+dfsg-1ubuntu4.65.5.9+dfsg-1ubuntu4.75.5.9+dfsg-1ubuntu4.95.5.9+dfsg-1ubuntu4.115.5.9+dfsg-1ubuntu4.125.5.9+dfsg-1ubuntu4.135.5.9+dfsg-1ubuntu4.145.5.9+dfsg-1ubuntu4.165.5.9+dfsg-1ubuntu4.17 |
5.5.9+dfsg-1ubuntu4.19 |
php7.0Ubuntu:16.04:LTS From an advisory covering 25 CVEs |
before 7.0.8-0ubuntu0.16.04.2, plus listed versions 7.0.1-57.0.1-67.0.2-17.0.2-37.0.2-4 Show 10 moreShow less7.0.2-57.0.3-27.0.3-37.0.3-9ubuntu17.0.4-5ubuntu17.0.4-5ubuntu27.0.4-7ubuntu17.0.4-7ubuntu27.0.4-7ubuntu2.17.0.8-0ubuntu0.16.04.1 |
7.0.8-0ubuntu0.16.04.2 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, facts | ||
| 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-5769 is a critical vulnerability (CVSS 9.8) in Php, published June 24, 2016. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 8.36%, the 95th percentile. Fixed in php5 5.5.9+dfsg-1ubuntu4.19.
References
lists.apple.com/archives/security-announce/2016/Sep/msg00006.html
lists.opensuse.org/opensuse-security-announce/2016-07/msg00004.html
lists.opensuse.org/opensuse-updates/2016-08/msg00003.html
github.com/php/php-src/commit/6c5211a0cef0cc2854eaa387e0eb036e012904d0?w=1
php.net/ChangeLog-5.php
openwall.com/lists/oss-security/2016/06/23/4
Show 74 moreShow less
debian.org/security/2016/dsa-3618
php.net/ChangeLog-7.php
bugs.php.net/bug.php?id=72455
securityfocus.com/bid/91399
h20566.www2.hpe.com/portal/site/hpsc/public/kb/docDisplay?docId=emr_na-c05240731
support.apple.com/HT207170
lists.opensuse.org/opensuse-security-announce/2016-08/msg00025.html
nvd.nist.gov/vuln/detail/CVE-2016-5769
github.com/advisories/GHSA-5jqx-3p4m-wv4h
advisories.mageia.org/MGASA-2016-0238.html
bugs.mageia.org/show_bug.cgi?id=18765
suse.com/support/update/announcement/2016/suse-su-20161842-1
bugzilla.suse.com/986004
bugzilla.suse.com/986244
bugzilla.suse.com/986246
bugzilla.suse.com/986386
bugzilla.suse.com/986388
bugzilla.suse.com/986391
bugzilla.suse.com/986392
bugzilla.suse.com/986393
bugzilla.suse.com/988486
suse.com/security/cve/CVE-2015-8935
suse.com/security/cve/CVE-2016-5385
suse.com/security/cve/CVE-2016-5766
suse.com/security/cve/CVE-2016-5767
suse.com/security/cve/CVE-2016-5768
suse.com/security/cve/CVE-2016-5769
suse.com/security/cve/CVE-2016-5770
suse.com/security/cve/CVE-2016-5771
suse.com/security/cve/CVE-2016-5772
suse.com/support/update/announcement/2016/suse-su-20162013-1
suse.com/support/update/announcement/2016/suse-su-20162080-1
bugzilla.suse.com/991426
bugzilla.suse.com/991427
bugzilla.suse.com/991428
bugzilla.suse.com/991429
bugzilla.suse.com/991430
bugzilla.suse.com/991433
bugzilla.suse.com/991437
suse.com/security/cve/CVE-2016-5399
suse.com/security/cve/CVE-2016-6288
suse.com/security/cve/CVE-2016-6289
suse.com/security/cve/CVE-2016-6290
suse.com/security/cve/CVE-2016-6291
suse.com/security/cve/CVE-2016-6296
suse.com/security/cve/CVE-2016-6297
ubuntu.com/security/CVE-2016-5769
marc.info?l=oss-security&m=146668499803695&w=2
ubuntu.com/security/notices/USN-3045-1
cve.org/CVERecord?id=CVE-2016-5769
ubuntu.com/security/CVE-2015-4116
ubuntu.com/security/CVE-2015-8873
ubuntu.com/security/CVE-2015-8876
ubuntu.com/security/CVE-2015-8935
ubuntu.com/security/CVE-2016-5093
ubuntu.com/security/CVE-2016-5094
ubuntu.com/security/CVE-2016-5095
ubuntu.com/security/CVE-2016-5096
ubuntu.com/security/CVE-2016-5114
ubuntu.com/security/CVE-2016-5385
ubuntu.com/security/CVE-2016-5399
ubuntu.com/security/CVE-2016-5768
ubuntu.com/security/CVE-2016-5771
ubuntu.com/security/CVE-2016-5772
ubuntu.com/security/CVE-2016-5773
ubuntu.com/security/CVE-2016-6288
ubuntu.com/security/CVE-2016-6289
ubuntu.com/security/CVE-2016-6290
ubuntu.com/security/CVE-2016-6291
ubuntu.com/security/CVE-2016-6292
ubuntu.com/security/CVE-2016-6294
ubuntu.com/security/CVE-2016-6295
ubuntu.com/security/CVE-2016-6296
ubuntu.com/security/CVE-2016-6297
Left out here: the rest of 1 source description. The JSON record has them.