CVE-2012-4409Mcrypt
Medium 6.8 No auth neededHigh EPSS
Follow: this CVE · Mcrypt · Mcrypt We alert you by email or Slack (account required).
- Priority
- 57
- CVSS 2.0
- 6.8
- EPSS
- 15.1% probability of exploitation in 30 days · percentile 97
- Auth required
- No
- Published
- Nov 21, 2012
- Updated
- Jun 16, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-119
- Vector
AV:N/AC:M/Au:N/C:P/I:P/A:P
What happens
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.
What to do
- Apply the vendor's security update for Mcrypt.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| mcrypt | mcrypt | ≤ 2.6.8 |
| mcrypt | mcrypt | 2.6.4 |
| mcrypt | mcrypt | 2.6.5 |
| mcrypt | mcrypt | 2.6.6 |
| mcrypt | mcrypt | 2.6.7 |
Official sources
References
Links published by the sources. Open them with care.