Skip to content
A detailed explainer is available in Japanese. Read the Japanese explainer
Critical 9.8

Active Storageに任意ファイル読み書きの脆弱性、修正版あり

CVE-2026-126082 First seen on SecPulse

Summary

ImageMagickで添付画像を処理するRailsアプリで、未認証の利用者がアップロードしたファイルから、サーバー上のファイルの書き込みや読み取りを許す脆弱性が公表されました。8.1.4.1か8.0.5.2へ更新し、Disk保存なら秘密情報も入れ替えます。

AI summary

Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.

ImageMagickで添付画像を処理するRailsアプリで、未認証の利用者がアップロードしたファイルから、サーバー上のファイルの書き込みや読み取りを許す脆弱性が公表されました。8.1.4.1か8.0.5.2へ更新し、Disk保存なら秘密情報も入れ替えます。

Original description The description as published by the source.

Active Storage makes it simple to upload and reference files in cloud services and attach those files to Active Record objects. Prior to 8.1.4.1 and 8.0.5.2, a Rails application that processes attachments with ImageMagick may allow an unauthenticated attacker to write arbitrary files on the server and, when attachments are stored with the Disk service, to read arbitrary files readable by the application process. Those files typically include secret_key_base and credentials for external systems, which may in turn allow escalation to remote code execution or lateral movement to those systems. ImageMagick selects a coder from the content of the file it is given, and some coders act on files named inside the image rather than on the image itself. Active Storage constrained none of ImageMagick's coders, and the ImageMagick analyzer runs when a file is attached, so an attacker who can upload a crafted file may be able to invoke one. Attaching the upload is sufficient; no variant, preview, or analyze call is required. One specific attack chain has been reported, but other attack chains may exist. An application is affected when it uses ImageMagick for Active Storage image processing through config.active_storage.variant_processor = :mini_magick, runs ImageMagick under a security policy that does not already deny the involved coders, and allows uploads from untrusted users. This issue is fixed in versions 8.1.4.1 and 8.0.5.2.

Source: CVE.org (CVE Program・cvelistV5) NVD

References

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details