Vulnerabilities / CVE-2016-5769

critical

CVE-2016-5769

php: Integer Overflows in mcrypt_generic() and mdecrypt_generic() resulting in heap overflows

Published Modified CWE 190
In the Trivy database since at least 24 Oct 2026, 07:11 UTCWhen it arrived before that build is not recorded.

Severity by source

NVD9.8CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Red Hat5.6CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L

Trivy's own label is CRITICAL. Rated critical by NVD. Rated lower by Red Hat (medium), Amazon (medium), Ubuntu (medium).

Description

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.

Affected packages and fixed versions

SourcePackageFixed in
amazon linux 1php55, php55-bcmath, php55-cli and 60 more5.5.38-1.116.amzn1 and 1 more
debian 7php55.4.45-0+deb7u5
debian 8php55.6.23+dfsg-0+deb8u1
ubuntu 12.04php55.3.10-1ubuntu3.24
ubuntu 14.04php55.5.9+dfsg-1ubuntu4.19
ubuntu 14.04-ESMphp55.5.9+dfsg-1ubuntu4.19
ubuntu 16.04php7.07.0.8-0ubuntu0.16.04.1
ubuntu 16.04-ESMphp7.07.0.8-0ubuntu0.16.04.1
Show all 70 entries from 8 sources
SourcePackageFixed in
amazon linux 1php555.5.38-1.116.amzn1
amazon linux 1php55-bcmath5.5.38-1.116.amzn1
amazon linux 1php55-cli5.5.38-1.116.amzn1
amazon linux 1php55-common5.5.38-1.116.amzn1
amazon linux 1php55-dba5.5.38-1.116.amzn1
amazon linux 1php55-debuginfo5.5.38-1.116.amzn1
amazon linux 1php55-devel5.5.38-1.116.amzn1
amazon linux 1php55-embedded5.5.38-1.116.amzn1
amazon linux 1php55-enchant5.5.38-1.116.amzn1
amazon linux 1php55-fpm5.5.38-1.116.amzn1
amazon linux 1php55-gd5.5.38-1.116.amzn1
amazon linux 1php55-gmp5.5.38-1.116.amzn1
amazon linux 1php55-imap5.5.38-1.116.amzn1
amazon linux 1php55-intl5.5.38-1.116.amzn1
amazon linux 1php55-ldap5.5.38-1.116.amzn1
amazon linux 1php55-mbstring5.5.38-1.116.amzn1
amazon linux 1php55-mcrypt5.5.38-1.116.amzn1
amazon linux 1php55-mssql5.5.38-1.116.amzn1
amazon linux 1php55-mysqlnd5.5.38-1.116.amzn1
amazon linux 1php55-odbc5.5.38-1.116.amzn1
amazon linux 1php55-opcache5.5.38-1.116.amzn1
amazon linux 1php55-pdo5.5.38-1.116.amzn1
amazon linux 1php55-pgsql5.5.38-1.116.amzn1
amazon linux 1php55-process5.5.38-1.116.amzn1
amazon linux 1php55-pspell5.5.38-1.116.amzn1
amazon linux 1php55-recode5.5.38-1.116.amzn1
amazon linux 1php55-snmp5.5.38-1.116.amzn1
amazon linux 1php55-soap5.5.38-1.116.amzn1
amazon linux 1php55-tidy5.5.38-1.116.amzn1
amazon linux 1php55-xml5.5.38-1.116.amzn1
amazon linux 1php55-xmlrpc5.5.38-1.116.amzn1
amazon linux 1php565.6.24-1.126.amzn1
amazon linux 1php56-bcmath5.6.24-1.126.amzn1
amazon linux 1php56-cli5.6.24-1.126.amzn1
amazon linux 1php56-common5.6.24-1.126.amzn1
amazon linux 1php56-dba5.6.24-1.126.amzn1
amazon linux 1php56-dbg5.6.24-1.126.amzn1
amazon linux 1php56-debuginfo5.6.24-1.126.amzn1
amazon linux 1php56-devel5.6.24-1.126.amzn1
amazon linux 1php56-embedded5.6.24-1.126.amzn1
amazon linux 1php56-enchant5.6.24-1.126.amzn1
amazon linux 1php56-fpm5.6.24-1.126.amzn1
amazon linux 1php56-gd5.6.24-1.126.amzn1
amazon linux 1php56-gmp5.6.24-1.126.amzn1
amazon linux 1php56-imap5.6.24-1.126.amzn1
amazon linux 1php56-intl5.6.24-1.126.amzn1
amazon linux 1php56-ldap5.6.24-1.126.amzn1
amazon linux 1php56-mbstring5.6.24-1.126.amzn1
amazon linux 1php56-mcrypt5.6.24-1.126.amzn1
amazon linux 1php56-mssql5.6.24-1.126.amzn1
amazon linux 1php56-mysqlnd5.6.24-1.126.amzn1
amazon linux 1php56-odbc5.6.24-1.126.amzn1
amazon linux 1php56-opcache5.6.24-1.126.amzn1
amazon linux 1php56-pdo5.6.24-1.126.amzn1
amazon linux 1php56-pgsql5.6.24-1.126.amzn1
amazon linux 1php56-process5.6.24-1.126.amzn1
amazon linux 1php56-pspell5.6.24-1.126.amzn1
amazon linux 1php56-recode5.6.24-1.126.amzn1
amazon linux 1php56-snmp5.6.24-1.126.amzn1
amazon linux 1php56-soap5.6.24-1.126.amzn1
amazon linux 1php56-tidy5.6.24-1.126.amzn1
amazon linux 1php56-xml5.6.24-1.126.amzn1
amazon linux 1php56-xmlrpc5.6.24-1.126.amzn1
debian 7php55.4.45-0+deb7u5
debian 8php55.6.23+dfsg-0+deb8u1
ubuntu 12.04php55.3.10-1ubuntu3.24
ubuntu 14.04php55.5.9+dfsg-1ubuntu4.19
ubuntu 14.04-ESMphp55.5.9+dfsg-1ubuntu4.19
ubuntu 16.04php7.07.0.8-0ubuntu0.16.04.1
ubuntu 16.04-ESMphp7.07.0.8-0ubuntu0.16.04.1

References

All 18 references

Vulnerability data compiled from the Trivy vulnerability database (trivy-db, Aqua Security, Apache License 2.0), which aggregates third-party advisories. CVE records are published by The MITRE Corporation under the CVE Terms of Use; CVE is a trademark of MITRE. This product uses data from the NVD API but is not endorsed or certified by the NVD. Severity, titles and advisory data from the GitHub Advisory Database (CC BY 4.0), Red Hat security data (CC BY 4.0) and the other sources linked on each entry. Entries may be summarised or re-formatted; the linked original is the authoritative record.