CVE-2012-4409: mcrypt - Buffer Overflow
- Cve: CVE-2012-4409
- Name: mcrypt - Buffer Overflow
- Description: 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.
- Impact: Remote attackers can execute arbitrary code on the affected system by crafting specific encrypted files.
- Remediation: Update to the latest version of mcrypt or apply available patches to fix the buffer overflow.
- Vulnerability type: buffer_overflow
- Vulnerability impact: remote_code_execution
- Requirement type: user_interaction
- Requirements: Attacker needs to provide a crafted encrypted file
- Labels source: projectdiscovery
- Severity: medium
- Cvss score: 6.8
- Cvss vector: CVSS:2.0/AV:N/AC:M/Au:N/C:P/I:P/A:P
- Epss score: 0.15084
- Epss percentile: 0.96816
- Assignee: [email protected]
- Published at: 2012-11-21T23:55:01Z
- Age in days: 5116
- Modified at: 2026-06-16T23:44:57Z
- Public exploits total: 1
- References total: 9
- Products total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2012-4409
- Nvd status: modified
- Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits capped, oss, projects total, projects, rejected by nvd
- Not known: hackerone
Cwe
| Id | Name |
|---|---|
| CWE-119 | Improper Restriction of Operations within the Bounds of a Memory Buffer |
Public exploits
| Url | Source | Added date |
|---|---|---|
| http://packetstormsecurity.org/files/116268/mcrypt-2.6.8-Buffer-Overflow-Proof-Of-Concept.html | nvd | 2012-11-21 |
References
Same in every row:
- Source: nvd
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| mcrypt:mcrypt | <= 2.6.8, = 2.6.7, = 2.6.6, = 2.6.5, = 2.6.4 | no | nvd | /v1/products/mcrypt/mcrypt |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Exploitation seen: yes
- Public exploit: yes
- Public exploit count: 1
- Public exploit first date: 2012-11-21
- Remote: yes
- Checked, none or zero: known exploited, known exploited by, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports, exposed hosts