CVE-2012-4527: Buffer Overflow

Published Oct 18, 2012
·
Updated

Created attachment 629285 [details] patch to fix the buffer overflow

Description of problem: A buffer overflow in mcrypt version 2.6.8 and earlier due to long filenames. If a user were tricked into attempting to encrypt/decrypt specially crafted long filename(s), 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 are currently no upstream patches for this flaw.

Version-Release number of selected component (if applicable): mcrypt-2.6.8-9.el6 (possibly others too).

How reproducible: Run mcrypt with ~128 byte long file names.

Other sources

Stack-based buffer overflow in mcrypt 2.6.8 and earlier allows user-assisted remote attackers to cause a denial of service (crash) and possibly execute arbitrary code via a long file name. NOTE: it is not clear whether this is a vulnerability.

MITRE

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

Oct 18, 2012
Data Sourced
via Red Hat·10:00 AM
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-4527?

CVE-2012-4527 is categorized as a high severity vulnerability due to the potential for buffer overflow exploits.

2

How do I fix CVE-2012-4527?

To fix CVE-2012-4527, update Mcrypt to a version higher than 2.6.8 or apply the relevant patches provided.

3

What software is affected by CVE-2012-4527?

CVE-2012-4527 affects versions of Mcrypt up to and including 2.6.8, as well as specific versions 2.6.4, 2.6.5, 2.6.6, and 2.6.7.

4

Can CVE-2012-4527 lead to data breaches?

Yes, if exploited, CVE-2012-4527 can potentially lead to data breaches through unauthorized access or data manipulation.

5

Is CVE-2012-4527 a widely known vulnerability?

Yes, CVE-2012-4527 is a known vulnerability within the Mcrypt library and has been discussed in various security advisories.

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