### [CVE-2012-4409](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2012-4409) ![](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 Stack-based buffer overflow in the check_file_head function in extra.c in mcrypt 2.6.8 and earlier allows user-assisted remote attackers to execute arbitrary code via an encrypted file with a crafted header containing long salt data that is not properly handled during decryption. ### POC #### Reference - http://packetstormsecurity.org/files/116268/mcrypt-2.6.8-Buffer-Overflow-Proof-Of-Concept.html - http://www.openwall.com/lists/oss-security/2012/09/06/4 #### Github - https://github.com/andir/nixos-issue-db-example - https://github.com/mudongliang/LinuxFlaw - https://github.com/oneoy/cve-