USN-9149-1: MiniMagick vulnerability
It was discovered that MiniMagick passed the file names and URLs given to Image.open directly to Kernel#open. If an application opened an image from an untrusted file name or URL, an attacker could possibly use this issue to execute arbitrary commands.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
ubuntu/ruby-mini-magickto a version that resolves this vulnerability.Fixed in Ubuntu Pro
Event History
Frequently Asked Questions
Which applications are exposed to this issue?
Applications using MiniMagick are exposed if they pass an untrusted file name or URL to Image.open. Applications that only open trusted, internally controlled image paths or URLs are not described as affected by this issue.
What does an attacker need to exploit it?
An attacker needs to influence a file name or URL that the application supplies to Image.open. Successful exploitation could allow arbitrary command execution because MiniMagick passes that value directly to Kernel#open.
What can be done if the update cannot be applied immediately?
Do not pass untrusted file names or URLs to Image.open. Restrict image inputs to trusted, application-controlled paths or URLs until the affected package can be updated.