Rails ImageMagick Flaw Enables Credential Theft via Images
A critical vulnerability in Rails Active Storage allows attackers to manipulate files through specially crafted images sent to ImageMagick for processing. The weakness stems from ImageMagick’s use of file content rather than extensions to identify file types, enabling attackers to disguise malicious payloads as legitimate images. Active Storage versions 8.0 prior to 8.0.5.2 and 8.1 prior to 8.1.4.1 are vulnerable, particularly when applications accept untrusted uploads without strict ImageMagick security policies.
Once exploited, the flaw grants access to sensitive credentials—encryption keys, database passwords, API tokens—that can be read by the application process. Attackers can leverage these credentials for lateral movement into connected infrastructure or remote code execution. Threat researchers have already reproduced the attack in lab environments and anticipate public exploits surfacing within days.
Patches are available immediately. Organizations must apply them, rotate all potentially exposed credentials, and implement the hardening guidance provided by the Rails team. Temporary mitigations using ImageMagick system policy rules are available while patches are deployed.
Read the full article
Continue reading at Dark Reading →This is an AI-generated summary. Read the original for the full story.