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
CVE-2012-4409 is a medium-severity flaw (CVSS 6.8) affecting mcrypt. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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.
Why this priority
- EPSS top 3%: very likely to be exploited
- Public exploit reference
A fixed release or distro patch exists.
Risk facts
| CVSS score | 6.8 (Medium) |
| EPSS exploit chance | 15.1% (top 3%) |
| CISA exploited list | No |
| Weakness | CWE-119 |
| Published | 2012-11-21 |
| Last modified | 2026-06-16 |
Last updated 2026-06-16 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Public exploits and detection
Public code exists for this CVE. Treat unpatched systems as at risk, and only run PoCs in a lab.
- Exploit-DB: mcrypt 2.6.8 - Stack Buffer Overflow (PoC)
- Exploit-DB: mcrypt 2.5.8 - Local Stack Overflow
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2012-4409?
mcrypt: upgrade to newer than 2.6.8. Exact commands for each OS are on this page.
Is CVE-2012-4409 being exploited?
CVE-2012-4409 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2012-4409 affect?
CVE-2012-4409 affects mcrypt. Severity is medium (CVSS 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
How urgent is CVE-2012-4409?
Priority 53/100. EPSS top 3%: very likely to be exploited; Public exploit reference
Related CVEs
- CVE-2012-4527 MEDIUM 6.8 UPGRADE Stack-based buffer overflow in mcrypt 2.6.8 and earlier allows user-assisted remote attackers to cause a denia
- CVE-2012-4426 MEDIUM 6.8 UPGRADE Multiple format string vulnerabilities in mcrypt 2.6.8 and earlier might allow user-assisted remote attackers