Active Storage
Monthly
Unauthenticated attackers can write arbitrary files on a Ruby on Rails host and, when Active Storage uses the Disk service, read arbitrary files such as secret_key_base, by uploading a crafted attachment that ImageMagick analyzes. Exposure requires an application that processes images through mini_magick (the default only under load_defaults 6.1 or earlier), whose host ImageMagick policy does not already deny the MSL, Ghostscript and file/URL indirection coders - the policies shipped by Debian and Ubuntu do not - and that accepts uploads from untrusted users; merely attaching the file is enough, since the analyzer runs on attach and no variant, preview or explicit analyze call is needed. The Rails team rates this act_now and shipped fixes in activestorage 8.1.4.1 and 8.0.5.2 (with patch commits for 8.1 and 8.0); no public exploit identified at time of analysis, though the advisory notes one specific attack chain has already been reported.
A code injection vulnerability exists in the Active Storage >= v5.2.0 that could allow an attacker to execute code via image_processing arguments. Rated critical severity (CVSS 9.8), this vulnerability is remotely exploitable, no authentication required, low attack complexity.
Unauthenticated attackers can write arbitrary files on a Ruby on Rails host and, when Active Storage uses the Disk service, read arbitrary files such as secret_key_base, by uploading a crafted attachment that ImageMagick analyzes. Exposure requires an application that processes images through mini_magick (the default only under load_defaults 6.1 or earlier), whose host ImageMagick policy does not already deny the MSL, Ghostscript and file/URL indirection coders - the policies shipped by Debian and Ubuntu do not - and that accepts uploads from untrusted users; merely attaching the file is enough, since the analyzer runs on attach and no variant, preview or explicit analyze call is needed. The Rails team rates this act_now and shipped fixes in activestorage 8.1.4.1 and 8.0.5.2 (with patch commits for 8.1 and 8.0); no public exploit identified at time of analysis, though the advisory notes one specific attack chain has already been reported.
A code injection vulnerability exists in the Active Storage >= v5.2.0 that could allow an attacker to execute code via image_processing arguments. Rated critical severity (CVSS 9.8), this vulnerability is remotely exploitable, no authentication required, low attack complexity.