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