CVE-2012-4409
Stack-based buffer overflow in the check_file_head function in extra.c in mcrypt 2.6.8 and...
CVE-2012-4409 is a medium vulnerability (CVSS 6.8) in Mcrypt, published November 21, 2012. Public exploit code exists. EPSS puts the chance of exploitation in the next 30 days at 15.1%, the 96th percentile. Fixed in mcrypt 2.6.8-1.1.
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.
Exploit likelihood
What each source reports
NVD Score used
6.8
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.
- Record
CVE-2012-4409- CVSS 2.0
- 6.8 Medium
AV:N/AC:M/Au:N/C:P/I:P/A:P - Weakness
- CWE-119
- Updated
- 2026-11-02
CVE List No score
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.
- Record
CVE-2012-4409- Updated
- 2026-11-02
EUVDEUVD-2012-4346 No score
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.
- Record
EUVD-2012-4346- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-x2pj-g5q5-wh2x No score
Stack-based buffer overflow in the check_file_head function in extra.c in mcrypt 2.6.8 and...
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.
- Record
GHSA-x2pj-g5q5-wh2x- Weakness
- CWE-119
- Updated
- 2026-11-02
OSV No score
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.
- Record
CVE-2012-4409- Updated
- 2026-11-02
OSVDEBIAN-CVE-2012-4409 No score
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.
- Record
DEBIAN-CVE-2012-4409- Updated
- 2026-11-02
Affected products
Affected packages
Public exploits
Links only. Every CVE stores no exploit code.
| Source | Link | Date |
|---|---|---|
| Exploit-DB | mcrypt 2.5.8 - Local Stack Overflow | 2012-11-26 |
| Exploit-DB | mcrypt 2.6.8 - Stack Buffer Overflow (PoC) | 2012-11-26 |
History
| When | Changed | Sources |
|---|---|---|
| 2026-11-03 | aliases | EUVD |
| 2026-11-02 | created | CVE List, Exploit-DB, GitHub Advisories, NVD, OSV |
References
lists.fedoraproject.org/pipermail/package-announce/2012-September/086519.html
lists.fedoraproject.org/pipermail/package-announce/2012-September/088281.html
packetstormsecurity.org/files/116268/mcrypt-2.6.8-Buffer-Overflow-Proof-Of-Concept.html
lists.fedoraproject.org/pipermail/package-announce/2012-September/087542.html
openwall.com/lists/oss-security/2012/09/06/4
secunia.com/advisories/51010