{"id":"CVE-2012-4409","published":"2012-11-21T23:00:00Z","modified":"2024-08-06T20:35:09Z","title":"Stack-based buffer overflow in the check_file_head function in extra.c in mcrypt 2.6.8 and earlier allows…","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.15084,"percentile":0.96812,"provenance":"source"},"cwes":[],"references":[{"url":"http://lists.fedoraproject.org/pipermail/package-announce/2012-September/086519.html","tags":["vendor-advisory","x_refsource_FEDORA"]},{"url":"http://lists.fedoraproject.org/pipermail/package-announce/2012-September/088281.html","tags":["vendor-advisory","x_refsource_FEDORA"]},{"url":"http://packetstormsecurity.org/files/116268/mcrypt-2.6.8-Buffer-Overflow-Proof-Of-Concept.html","tags":["x_refsource_MISC"]},{"url":"http://lists.fedoraproject.org/pipermail/package-announce/2012-September/087542.html","tags":["vendor-advisory","x_refsource_FEDORA"]},{"url":"http://www.openwall.com/lists/oss-security/2012/09/06/4","tags":["mailing-list","x_refsource_MLIST"]},{"url":"http://secunia.com/advisories/51010","tags":["third-party-advisory","x_refsource_SECUNIA"]},{"url":"http://www.securitytracker.com/id?1027532","tags":["vdb-entry","x_refsource_SECTRACK"]},{"url":"http://secunia.com/advisories/50507","tags":["third-party-advisory","x_refsource_SECUNIA"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=855029","tags":["x_refsource_CONFIRM"]}],"priority":{"score":24.4,"factors":[{"name":"EPSS percentile","points":19.36},{"name":"Public exploit code","points":5.0}]},"exploitSources":{"exploitdb":{"count":2,"earliest":"2012-11-26"},"first":{"date":"2012-11-26","source":"Exploit-DB","url":"https://www.exploit-db.com/exploits/22928"},"provenance":"source"},"summary":{"text":"A stack-based buffer overflow in the check_file_head function in extra.c of mcrypt (version 2.6.8 and earlier) is the flaw, affecting the mcrypt software's file-decryption handling. An attacker can execute arbitrary code by getting a user to process a specially crafted encrypted file whose header contains oversized salt data, which is not properly handled during decryption, so user interaction is required and the attack is delivered remotely.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T06:49:28Z"},"euvd":{"id":"EUVD-2012-4346","exploited":false,"provenance":"source"},"exploits":[{"id":22928,"url":"https://www.exploit-db.com/exploits/22928","title":"mcrypt 2.5.8 - Local Stack Overflow","date":"2012-11-26","verified":true,"provenance":"source"},{"id":22938,"url":"https://www.exploit-db.com/exploits/22938","title":"mcrypt 2.6.8 - Stack Buffer Overflow (PoC)","date":"2012-11-26","verified":true,"provenance":"source"}],"exploitRefs":["http://packetstormsecurity.org/files/116268/mcrypt-2.6.8-Buffer-Overflow-Proof-Of-Concept.html"]}