### [CVE-2016-5399](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2016-5399) ![](https://img.shields.io/static/v1?label=Product&message=n%2Fa&color=blue) ![](https://img.shields.io/static/v1?label=Version&message=%3D%20n%2Fa%20&color=brighgreen) ![](https://img.shields.io/static/v1?label=Vulnerability&message=n%2Fa&color=brighgreen) ### Description 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. ### POC #### Reference - http://packetstormsecurity.com/files/137998/PHP-7.0.8-5.6.23-5.5.37-bzread-OOB-Write.html - http://seclists.org/fulldisclosure/2016/Jul/72 - http://www.openwall.com/lists/oss-security/2016/07/21/1 - https://www.exploit-db.com/exploits/40155/ #### Github - https://github.com/syadg123/pigat - https://github.com/teamssix/pigat