Vulnerabilities > CVE-2012-4426 - Use of Externally-Controlled Format String vulnerability in Mcrypt
Attack vector
UNKNOWN Attack complexity
UNKNOWN Privileges required
UNKNOWN Confidentiality impact
UNKNOWN Integrity impact
UNKNOWN Availability impact
UNKNOWN Summary
Multiple format string vulnerabilities in mcrypt 2.6.8 and earlier might allow user-assisted remote attackers to cause a denial of service (crash) or possibly execute arbitrary code via vectors involving (1) errors.c or (2) mcrypt.c.
Vulnerable Configurations
Part | Description | Count |
---|---|---|
Application | 5 |
Common Weakness Enumeration (CWE)
Common Attack Pattern Enumeration and Classification (CAPEC)
- Format String Injection An attacker includes formatting characters in a string input field on the target application. Most applications assume that users will provide static text and may respond unpredictably to the presence of formatting character. For example, in certain functions of the C programming languages such as printf, the formatting character %s will print the contents of a memory location expecting this location to identify a string and the formatting character %n prints the number of DWORD written in the memory. An attacker can use this to read or write to memory locations or files, or simply to manipulate the value of the resulting text in unexpected ways. Reading or writing memory may result in program crashes and writing memory could result in the execution of arbitrary code if the attacker can write to the program stack.
- String Format Overflow in syslog() This attack targets the format string vulnerabilities in the syslog() function. An attacker would typically inject malicious input in the format string parameter of the syslog function. This is a common problem, and many public vulnerabilities and associated exploits have been posted.
Nessus
NASL family | Gentoo Local Security Checks |
NASL id | GENTOO_GLSA-201405-19.NASL |
description | The remote host is affected by the vulnerability described in GLSA-201405-19 (MCrypt: User-assisted execution of arbitrary code) 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). Impact : 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. Workaround : There is no known workaround at this time. |
last seen | 2020-06-01 |
modified | 2020-06-02 |
plugin id | 74061 |
published | 2014-05-19 |
reporter | This script is Copyright (C) 2014-2018 and is owned by Tenable, Inc. or an Affiliate thereof. |
source | https://www.tenable.com/plugins/nessus/74061 |
title | GLSA-201405-19 : MCrypt: User-assisted execution of arbitrary code |
code |
|
References
- http://www.openwall.com/lists/oss-security/2012/09/06/8
- http://www.openwall.com/lists/oss-security/2012/09/06/8
- http://www.openwall.com/lists/oss-security/2012/09/06/9
- http://www.openwall.com/lists/oss-security/2012/09/06/9
- http://www.openwall.com/lists/oss-security/2012/09/10/5
- http://www.openwall.com/lists/oss-security/2012/09/10/5
- http://www.openwall.com/lists/oss-security/2012/09/13/22
- http://www.openwall.com/lists/oss-security/2012/09/13/22
- http://www.securityfocus.com/bid/55557
- http://www.securityfocus.com/bid/55557