{"id":"CVE-2012-4409","aliases":["DEBIAN-CVE-2012-4409","EUVD-2012-4346","GHSA-x2pj-g5q5-wh2x"],"status":"published","title":"Stack-based buffer overflow in the check_file_head function in extra.c in mcrypt 2.6.8 and...","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.","severity":{"version":"2.0","score":6.8,"vector":"AV:N/AC:M/Au:N/C:P/I:P/A:P","level":"medium","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-08","score":0.15084,"percentile":0.96753,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":true,"fix_available":true},"cwes":["CWE-119"],"published":"2012-11-21T23:00:00Z","modified":"2026-10-23T17:47:30Z","exploits":[{"source":"exploitdb","id":"EDB-22928","title":"mcrypt 2.5.8 - Local Stack Overflow","type":"local","platform":"linux","date":"2012-11-26","verified":true,"url":"https://www.exploit-db.com/exploits/22928"},{"source":"exploitdb","id":"EDB-22938","title":"mcrypt 2.6.8 - Stack Buffer Overflow (PoC)","type":"dos","platform":"linux","date":"2012-11-26","verified":true,"url":"https://www.exploit-db.com/exploits/22938"}],"fixes":[{"ecosystem":"Debian:12","package":"mcrypt","fixed_in":["2.6.8-1.1"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"mcrypt","fixed_in":["2.6.8-1.1"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"mcrypt","fixed_in":["2.6.8-1.1"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Debian:12","package":"mcrypt","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.6.8-1.1"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"mcrypt","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.6.8-1.1"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"mcrypt","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.6.8-1.1"}]}]}],"products":[{"vendor":"mcrypt","product":"mcrypt"}],"references":[{"url":"http://lists.fedoraproject.org/pipermail/package-announce/2012-September/086519.html","tags":["vendor-advisory","x_refsource_FEDORA","x_transferred","web"]},{"url":"http://lists.fedoraproject.org/pipermail/package-announce/2012-September/088281.html","tags":["vendor-advisory","x_refsource_FEDORA","x_transferred","web"]},{"url":"http://packetstormsecurity.org/files/116268/mcrypt-2.6.8-Buffer-Overflow-Proof-Of-Concept.html","tags":["x_refsource_MISC","x_transferred","Exploit","evidence"]},{"url":"http://lists.fedoraproject.org/pipermail/package-announce/2012-September/087542.html","tags":["vendor-advisory","x_refsource_FEDORA","x_transferred","web"]},{"url":"http://www.openwall.com/lists/oss-security/2012/09/06/4","tags":["mailing-list","x_refsource_MLIST","x_transferred","web"]},{"url":"http://secunia.com/advisories/51010","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred","advisory"]},{"url":"http://www.securitytracker.com/id?1027532","tags":["vdb-entry","x_refsource_SECTRACK","x_transferred","web"]},{"url":"http://secunia.com/advisories/50507","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred","Vendor Advisory","advisory"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=855029","tags":["x_refsource_CONFIRM","x_transferred","report"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2012-4409"},{"url":"https://github.com/advisories/GHSA-x2pj-g5q5-wh2x"},{"url":"https://security-tracker.debian.org/tracker/CVE-2012-4409","tags":["advisory"]}],"sources":{"cve":[{"id":"CVE-2012-4409","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.","status":"published","published":"2012-11-21T23:00:00Z","modified":"2024-08-06T20:35:09.525Z","updated_at":"2026-11-02T14:34:51.269982Z"}],"euvd":[{"id":"EUVD-2012-4346","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.","status":"published","published":"2012-11-21T23:00:00Z","modified":"2024-08-06T20:35:09Z","updated_at":"2026-11-03T01:56:07.912368Z"}],"ghsa":[{"id":"GHSA-x2pj-g5q5-wh2x","title":"Stack-based buffer overflow in the check_file_head function in extra.c in mcrypt 2.6.8 and...","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.","status":"published","published":"2022-05-17T05:12:26Z","modified":"2023-01-28T05:03:42Z","cwes":["CWE-119"],"updated_at":"2026-11-02T14:44:01.600354Z"}],"nvd":[{"id":"CVE-2012-4409","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.","status":"published","published":"2012-11-21T23:55:01.757Z","modified":"2026-06-16T23:44:57.773Z","cvss":[{"version":"2.0","score":6.8,"vector":"AV:N/AC:M/Au:N/C:P/I:P/A:P","level":"medium","assessor":"primary"}],"cwes":["CWE-119"],"updated_at":"2026-11-02T14:02:16.536025Z"}],"osv":[{"id":"CVE-2012-4409","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.","status":"published","published":"2012-11-21T23:55:01Z","modified":"2026-04-10T03:42:29.86919Z","updated_at":"2026-11-02T15:43:58.537032Z"},{"id":"DEBIAN-CVE-2012-4409","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.","status":"published","published":"2012-11-21T23:55:01.757Z","modified":"2026-10-23T17:47:30.989885863Z","updated_at":"2026-11-02T15:45:25.218101Z"}]}}
