Buffer overflow in Mcrypt
CVE-2012-4409
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.
Vulnerability class: Buffer Overflow
Published · last modified .
CVSS v2 metric
CVSS v2 base score 6.8 (Medium). Vector: AV:N/AC:M/Au:N/C:P/I:P/A:P. This CVE predates CVSS v3 and has no v3 score from NVD.
EPSS exploit prediction
EPSS 0.151, 96.8th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Mcrypt — versions 2.6.4, 2.6.5, 2.6.6
Weakness classification (CWE)
Public exploits and proof-of-concept code
Also mentioned in 3 other repositories (andir/nixos-issue-db-example, mudongliang/LinuxFlaw, oneoy/cve-). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- FEDORA-2012-13599 (vendor-advisory)
- FEDORA-2012-13657 (vendor-advisory)
- packetstormsecurity.org/files/116268/mcrypt-2.6.8-Buffer-Overflow-Proof-Of-Conc… (Exploit)
- FEDORA-2012-13656 (vendor-advisory)
- [oss-security] 20120906 Re: CVE request - mcrypt buffer overflow flaw (mailing-list)
- secunia.com/advisories/51010 (third-party-advisory)
- www.securitytracker.com/id (vdb-entry)
- secunia.com/advisories/50507 (third-party-advisory, Vendor Advisory)
- bugzilla.redhat.com/show_bug.cgi