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: 6.9 [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]
CVE-ID: CVE-2012-4409
CWE-ID: CWE-121
Exploitation vector: Remote access
Exploit availability: Public exploit is available

Vulnerability details

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.


Affected software

mcrypt
Gentoo Linux
Fedora
mcrypt

How to mitigate CVE-2012-4409

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

mcrypt - addressed in versions 2.6.8-9.el5, 2.6.8-9.el6

Links to Public Exploits and PoC-codes

External References

Related Security Bulletins