CVE-2012-4409

medium
Published 2012-11-21 ยท Modified 2026-04-29
CVSS v3
โ€”
CVSS v4 NEW
โ€”
not yet in upstream
VIR risk
7.8

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.

Predictions

Exploit likelihood
20%
Patch ETA
โ€”

Heuristic predictions, AS-IS, for prioritization only.

Mitigations

No mitigations published for this CVE yet.

The vendor-content worker queues fetches as references arrive (check back in a few minutes). Or โ€” if you've already worked around this in production โ€” publish your fix to the community-verified tier.

โœš Propose a mitigation on Community โ†’ Mitigations published via the community go through AI scoring + 2 human reviewers + 7-day silent objection window before landing here with source_tier=community-verified.

Exploits

Public proof-of-concept code below. AS-IS, for defenders and authorised testing only.

Exploit-DB

EDB-22938 dos linux verified
_ishikawa ยท 2012-11-26

mcrypt 2.6.8 - Stack Buffer Overflow (PoC)

Source code queued for fetch โ€” refresh in a moment.
EDB-22928 local linux verified
Tosh ยท 2012-11-26

mcrypt 2.5.8 - Local Stack Overflow

Source code queued for fetch โ€” refresh in a moment.

OS impact

debian Debian Fixed 5 releases
VersionStatusFixed in
trixie Fixed 2.6.8-1.1
sid Fixed 2.6.8-1.1
forky Fixed 2.6.8-1.1
bullseye Fixed 2.6.8-1.1
bookworm Fixed 2.6.8-1.1

Application impact

VendorProductVersionsFixed
mcryptmcrypt{"endIncluding":"2.6.8"}
mcryptmcrypt2.6.4
mcryptmcrypt2.6.5
mcryptmcrypt2.6.6
mcryptmcrypt2.6.7

References

CWEs

CWE-119

Community-verified mitigations for this CVE will appear above when contributors publish them.

Verify integrity in audit chain (admin only). AS-IS.