{"id":"CVE-2012-4409","aliases":["EDB-22928","EDB-22938"],"kind":"cve","tier":"cold","status":"published","title":"Stack-based buffer overflow in the check_file_head function in extra.c in mcrypt 2.6.8 and earlier allows user-assisted…","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.","ai_summary":null,"severity":"medium","cvss":{"score":6.8,"version":"2.0","vector":"AV:N/AC:M/Au:N/C:P/I:P/A:P","source":"NVD"},"scores":[{"score":6.8,"version":"2.0","vector":"AV:N/AC:M/Au:N/C:P/I:P/A:P","source":"nvd"}],"cwe":["CWE-119"],"remote":true,"remote_unauth":true,"epss":{"score":0.15084,"percentile":0.97374,"date":"2026-11-29"},"kev":{"listed":false,"added":null,"due":null,"ransomware":null},"exploit":{"public":true,"exploitdb_ids":[22928,22938]},"affected":[],"affected_products":[{"vendor":"n/a","product":"n/a","versions":"","source":"nvd"}],"ai_versions":null,"mitigation":"No fix listed yet: follow the vendor advisory.","technologies":[],"references":[{"url":"http://lists.fedoraproject.org/pipermail/package-announce/2012-September/086519.html","kind":"vendor"},{"url":"http://lists.fedoraproject.org/pipermail/package-announce/2012-September/088281.html","kind":"vendor"},{"url":"http://lists.fedoraproject.org/pipermail/package-announce/2012-September/087542.html","kind":"vendor"},{"url":"http://secunia.com/advisories/50507","kind":"vendor"},{"url":"http://packetstormsecurity.org/files/116268/mcrypt-2.6.8-Buffer-Overflow-Proof-Of-Concept.html","kind":"exploit"},{"url":"https://www.exploit-db.com/exploits/22938","kind":"exploit"},{"url":"https://www.exploit-db.com/exploits/22928","kind":"exploit"},{"url":"http://www.openwall.com/lists/oss-security/2012/09/06/4","kind":"other"},{"url":"http://secunia.com/advisories/51010","kind":"other"},{"url":"http://www.securitytracker.com/id?1027532","kind":"other"},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=855029","kind":"other"}],"workarounds":null,"vendors":["mcrypt"],"products":["mcrypt"],"cpes":["cpe:2.3:a:mcrypt:mcrypt:*:*:*:*:*:*:*:*","cpe:2.3:a:mcrypt:mcrypt:2.6.4:*:*:*:*:*:*:*","cpe:2.3:a:mcrypt:mcrypt:2.6.5:*:*:*:*:*:*:*","cpe:2.3:a:mcrypt:mcrypt:2.6.6:*:*:*:*:*:*:*","cpe:2.3:a:mcrypt:mcrypt:2.6.7:*:*:*:*:*:*:*"],"published_at":"2012-11-21T23:00:00.000Z","modified_at":"2026-06-16T23:44:57.773Z","promoted_at":null,"attribution":[{"source":"CVE Program","text":"CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation.","url":"https://www.cve.org/Legal/TermsOfUse"},{"source":"NVD","text":"This product uses data from the NVD API but is not endorsed or certified by the NVD.","url":"https://nvd.nist.gov/vuln/detail/CVE-2012-4409"},{"source":"Exploit-DB","text":"Exploit metadata (ID and link only) from the Exploit Database","url":"https://www.exploit-db.com/exploits/22938"}],"links":{"html":"https://flawdb.com/CVE-2012-4409","markdown":"https://flawdb.com/CVE-2012-4409.md","json":"https://flawdb.com/api/v1/entries/CVE-2012-4409"}}