CVE-2012-4409

Mcrypt < 2.6.8 - Memory Corruption

Title source: rule

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.

Exploits (2)

exploitdb WORKING POC VERIFIED
by Tosh · perllocallinux
https://www.exploit-db.com/exploits/22928
exploitdb WORKING POC VERIFIED
by _ishikawa · pythondoslinux
https://www.exploit-db.com/exploits/22938

Scores

EPSS 0.5874
EPSS Percentile 98.2%

Details

CWE
CWE-119
Status published
Products (5)
mcrypt/mcrypt 2.6.4
mcrypt/mcrypt 2.6.5
mcrypt/mcrypt 2.6.6
mcrypt/mcrypt 2.6.7
mcrypt/mcrypt < 2.6.8
Published Nov 21, 2012
Tracked Since Feb 18, 2026