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.
Severity
Not rated by the source.
Dates
Published
2012-11-21 23:55 UTC
Modified
2026-11-18 11:47 UTC
Affected packages and fixes
mcrypt
Debian packages (deb) · Debian 12
Affected
introduced 0, fixed 2.6.8-1.1 (ecosystem)
Fixed versions
2.6.8-1.1
Fix
Fixed version 2.6.8-1.1
sudo apt-get update && sudo apt-get upgrade
This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.
mcrypt
Debian packages (deb) · Debian 13
Affected
introduced 0, fixed 2.6.8-1.1 (ecosystem)
Fixed versions
2.6.8-1.1
Fix
Fixed version 2.6.8-1.1
sudo apt-get update && sudo apt-get upgrade
This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.
mcrypt
Debian packages (deb) · Debian 14
Affected
introduced 0, fixed 2.6.8-1.1 (ecosystem)
Fixed versions
2.6.8-1.1
Fix
Fixed version 2.6.8-1.1
sudo apt-get update && sudo apt-get upgrade
This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.
Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.