Gentoo Logo

MCrypt: User-assisted execution of arbitrary code


1.  Gentoo Linux Security Advisory

Version Information

Advisory Reference GLSA 201405-19 / mcrypt
Release Date May 18, 2014
Latest Revision May 18, 2014: 1
Impact normal
Exploitable remote
Package Vulnerable versions Unaffected versions Architecture(s)
app-crypt/mcrypt < 2.6.8-r2 >= 2.6.8-r2 All supported architectures

Related bugreports: #434112, #440778


Multiple vulnerabilities have been found in MCrypt, allowing attackers to execute arbitrary code or cause Denial of Service.

2.  Impact Information


MCrypt is a replacement of the old unix crypt(1) utility.


Multiple vulnerabilities have been discovered in MCrypt:

  • A boundary error in MCrypt could cause a stack-based buffer overflow (CVE-2012-4409).
  • MCrypt contains multiple format string errors (CVE-2012-4426).
  • MCrypt does not properly handle long file names, which could cause a stack-based buffer overflow (CVE-2012-4527).


A remote attacker could entice a user to open a specially crafted file using MCrypt, possibly resulting in execution of arbitrary code with the privileges of the process or a Denial of Service condition.

3.  Resolution Information


There is no known workaround at this time.


All MCrypt users should upgrade to the latest version:

Code Listing 3.1: Resolution

  # emerge --sync
  # emerge --ask --oneshot --verbose ">=app-crypt/mcrypt-2.6.8-r2"

4.  References


Page updated May 18, 2014

Summary: This is a Gentoo Linux Security Advisory

Security Team
Contact Address

Donate to support our development efforts.

Copyright 2001-2015 Gentoo Foundation, Inc. Questions, Comments? Contact us.