CVE-2012-4409 Memory corruption in n/a

Medium 6.8 Published Updated

A stack-based buffer overflow in mcrypt allows remote attackers to execute arbitrary code via a crafted encrypted file, requiring user interaction to open the file.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2012-4409?

CVE-2012-4409 is a medium-severity memory corruption vulnerability in n/a, published on 21 Nov 2012. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

Stack-based buffer overflow in the check_file_head function in extra.c in mcrypt 2.6.8 and earlier allows user-assisted remote attackers to execute arbitrary code via an encrypted file with a crafted header containing long salt data that is not properly handled during decryption.

Weakness: CWE-119

Which versions are affected by CVE-2012-4409?

It affects 1 product.

Products include Mcrypt Mcrypt.

How do I fix CVE-2012-4409?

Upgrade to a fixed version.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2012-4409 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2012-4409 exists.

Public exploit code: 2 Exploit-DB entries.

Sources

Also known as DEBIAN-CVE-2012-4409, GHSA-x2pj-g5q5-wh2x.

Is CVE-2012-4409 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free