{"id":"CVE-2016-5399","details":"The bzread function in ext/bz2/bz2.c in PHP before 5.5.38, 5.6.x before 5.6.24, and 7.x before 7.0.9 allows remote attackers to cause a denial of service (out-of-bounds write) or execute arbitrary code via a crafted bz2 archive.","modified":"2026-04-11T04:02:17.771309Z","published":"2017-04-21T20:59:00.837Z","related":["SUSE-SU-2016:2080-1","SUSE-SU-2016:2210-1","SUSE-SU-2016:2328-1","SUSE-SU-2016:2408-1","SUSE-SU-2016:2460-1","SUSE-SU-2016:2460-2"],"references":[{"type":"ADVISORY","url":"http://php.net/ChangeLog-5.php"},{"type":"ADVISORY","url":"http://www.securityfocus.com/archive/1/538966/100/0/threaded"},{"type":"ADVISORY","url":"http://php.net/ChangeLog-7.php"},{"type":"ADVISORY","url":"http://www.securitytracker.com/id/1036430"},{"type":"ADVISORY","url":"https://security.netapp.com/advisory/ntap-20180112-0001/"},{"type":"ADVISORY","url":"http://rhn.redhat.com/errata/RHSA-2016-2750.html"},{"type":"ADVISORY","url":"http://www.debian.org/security/2016/dsa-3631"},{"type":"ADVISORY","url":"http://www.securityfocus.com/bid/92051"},{"type":"ADVISORY","url":"http://rhn.redhat.com/errata/RHSA-2016-2598.html"},{"type":"REPORT","url":"https://bugzilla.redhat.com/show_bug.cgi?id=1358395"},{"type":"EVIDENCE","url":"http://packetstormsecurity.com/files/137998/PHP-7.0.8-5.6.23-5.5.37-bzread-OOB-Write.html"},{"type":"EVIDENCE","url":"https://bugs.php.net/bug.php?id=72613"},{"type":"EVIDENCE","url":"http://www.openwall.com/lists/oss-security/2016/07/21/1"},{"type":"EVIDENCE","url":"https://www.exploit-db.com/exploits/40155/"},{"type":"EVIDENCE","url":"http://seclists.org/fulldisclosure/2016/Jul/72"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/php/php-src","events":[{"introduced":"0"},{"last_affected":"d5747a70cf612e653b0e56dfa50efb29bbba273d"},{"introduced":"fc1df8e7a6886e29a6ed5bef3f674ac61164e847"},{"fixed":"38980c9ea4156ce52a53f9f3e1007ea3d787fa11"},{"introduced":"60fffd296abce5fc071f3c173c25a2696cf683c6"},{"fixed":"9d582eba7448f1495fae62b13d95d2844ce6b28a"}],"database_specific":{"versions":[{"introduced":"0"},{"last_affected":"5.5.37"},{"introduced":"5.6.0"},{"fixed":"5.6.24"},{"introduced":"7.0.0"},{"fixed":"7.0.9"}]}}],"versions":["POST_64BIT_BRANCH_MERGE","POST_AST_MERGE","POST_PHP7_NSAPI_REMOVAL","POST_PHP7_REMOVALS","POST_PHPNG_MERGE","PRE_64BIT_BRANCH_MERGE","PRE_AST_MERGE","PRE_PHP7_EREG_MYSQL_REMOVALS","PRE_PHP7_NSAPI_REMOVAL","PRE_PHP7_REMOVALS","php-5.5.37","php-5.6.24RC1","php-7.0.9RC1"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2016-5399.json","vanir_signatures_modified":"2026-04-11T04:02:17Z","vanir_signatures":[{"signature_type":"Line","signature_version":"v1","digest":{"threshold":0.9,"line_hashes":["198011536025072107975883186380452148843","331728417024842654446570071457159069395","205456331668105326830182380336029223146","164282985402725457749299583506046134408","320137256578601229186691392718001358014"]},"target":{"file":"ext/standard/basic_functions.c"},"deprecated":false,"source":"https://github.com/php/php-src/commit/9d582eba7448f1495fae62b13d95d2844ce6b28a","id":"CVE-2016-5399-b7259250"}]}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"}]}