Web applications that process user-uploaded images with ImageMagick can expose a broad attack surface when upload controls rely on file extensions or weak type checks. Research describing Rails applications using CarrierWave and MiniMagick showed that attackers may influence both the input and output formats passed to ImageMagick, enabling abuse of vulnerable coders and delegates beyond expected image types. The reports warned that ImageMagick has a long history of flaws including denial of service, memory corruption, and possible code execution, and demonstrated that output formats such as INFO and EPS3 can leak absolute server paths and ImageMagick version details into generated files.
The findings align with OWASP guidance on unrestricted file upload, which says unsafe upload handling can lead to code execution, information disclosure, client-side attacks, malware hosting, and service disruption. One proof of concept showed that a crafted JPEG of only about 5 KB, with manipulated dimensions of 64250 x 64250, could drive ImageMagick to allocate roughly 33 GB of pixel cache and destabilize a host. Recommended defenses included strict allow-listing of formats such as JPEG, GIF, and PNG; validating magic bytes against extensions before processing; enforcing policy.xml resource limits and execution timeouts; restricting upload size; using non-executable and isolated storage; sandboxing image processing; limiting concurrency; and keeping ImageMagick updated.

See affected versions and whether adversaries are exploiting it.
3 events from the most recent confirmed update back to the earliest known activity.
OWASP published guidance describing unrestricted file upload as a high-severity web application vulnerability, outlining attack paths such as code execution, XSS, denial of service, information disclosure, and abuse of server-side libraries including ImageMagick. The document also recommended layered mitigations including strict allow lists, filename sanitization, isolated storage, size limits, and secure response handling.
MBSD published a follow-up analysis focused on denial-of-service attacks against Passenger, CarrierWave, MiniMagick, and ImageMagick stacks, including JPEG pixel flood, GIF flooding, and PNG compression cases. It showed that small crafted files could trigger extreme CPU, memory, disk I/O, and processing-time consumption, and recommended resource limits, timeouts, upload-size restrictions, and cgroup isolation.
MBSD published an analysis of web applications using CarrierWave with ImageMagick, showing that default behavior can let attackers influence both input and output formats through file content and filename extension. The article highlighted exposure to numerous ImageMagick vulnerabilities and demonstrated that certain output formats such as INFO and EPS3 can leak server-side paths and version information.
Vulnerabilities, threat actors, malware, products, organizations, and breaches Mallory has linked to this story.
See whether adversaries are exploiting this yet, and where the affected versions run in your environment.
3 references tracked. Mallory keeps watching after this page renders.
owasp.org
Open sourcembsd.jp
Open sourcembsd.jp
Open sourceMap indicators from this story to your assets and identify affected systems in minutes.
Every observed campaign, victim, and pivot linked to actors named in this story.
Malware, exploits, and IOCs connected to the activity described here.
YARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Get matching new stories delivered to your team as they break — not the next morning.
Ask questions about this story and take action on the answers.