Stack-based buffer overflow in mcrypt - CVE-2012-4409

 

Stack-based buffer overflow in mcrypt - CVE-2012-4409

Published: November 22, 2012 / Updated: August 11, 2020


Vulnerability identifier: #VU43310
CSH Severity: Medium
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P/U:Green
CVE-ID: CVE-2012-4409
CWE-ID: CWE-121
Exploitation vector: Remote access
Exploit availability: Public exploit is available
Vendor: imipak
Affected software:
mcrypt

Detailed vulnerability description

The vulnerability allows a remote attacker to execute arbitrary code on the target system.

The vulnerability exists due to a boundary error within the check_file_head function in extra.c when processing an encrypted file with a crafted header containing long salt data that is not properly handled during decryption. A remote unauthenticated attacker can trigger stack-based buffer overflow and execute arbitrary code on the target system.

Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.


How to mitigate CVE-2012-4409

Cybersecurity Help is currently unaware of any official solution to address this vulnerability.

Sources