CVE-2012-4409: Buffer Overflow

Published Sep 6, 2012
·
Updated

A buffer overflow was reported [1],[2] in mcrypt version 2.6.8 and earlier due to a boundary error in the processing of an encrypted file (via the checkfilehead() function in src/extra.c). If a user were tricked into attempting to decrypt a specially-crafted .nc encrypted flie, this flaw would cause a stack-based buffer overflow that could potentially lead to arbitrary code execution.

Note that this is caught by FORTIFYSOURCE, which renders this to being a crash-only bug on Fedora.

There is currently no upstream patches for this flaw.

[1] https://secunia.com/advisories/50507/ [2] https://bugs.gentoo.org/showbug.cgi?id=434112

Other sources

Stack-based buffer overflow in the checkfilehead 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.

Affected Software

5 affected components
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

Event History

Sep 6, 2012
Data Sourced
02:31 PM
DescriptionSeverityAffected Software
Nov 21, 2012
CVE Published
via MITRE·11:00 PM
Data Sourced
via MITRE·11:00 PM
Description

Frequently Asked Questions

1

What is the severity of CVE-2012-4409?

CVE-2012-4409 is classified as a high severity vulnerability due to its potential to cause a buffer overflow leading to application crashes or remote code execution.

2

How do I fix CVE-2012-4409?

To mitigate CVE-2012-4409, you should upgrade to mcrypt version 2.6.9 or later, where the vulnerability has been patched.

3

What versions are affected by CVE-2012-4409?

CVE-2012-4409 affects mcrypt versions 2.6.8 and earlier, specifically 2.6.4 through 2.6.8.

4

What are the potential consequences of exploiting CVE-2012-4409?

Exploitation of CVE-2012-4409 could allow an attacker to execute arbitrary code on the victim's machine, potentially leading to data compromise.

5

How does CVE-2012-4409 occur?

CVE-2012-4409 occurs due to a buffer overflow vulnerability in the check_file_head() function, which mishandles encrypted files.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203