脆弱性の一覧へ戻る
編集部の見出し:Rails Active Storage:拡張子でデコーダーが選ばれ、ファイル読み取りや RCE の恐れ
NVD の情報
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, ActiveStorage::Blob#open writes a blob to a tempfile whose name carries the extension of the uploaded filename, and hands that path to ffprobe (VideoAnalyzer, AudioAnalyzer), ffmpeg (VideoPreviewer) and ImageMagick (ImageAnalyzer, the :mini_magick variant processor). These tools select a decoder from the file extension when the content does not identify its own format, so an attacker who chooses the filename and declares the content type of an upload chooses which decoder processes it. An FFmpeg built with AviSynth support treats a file with the .avs extension as an AviSynth script and evaluates it, which could disclose files readable by the application process through the preview image, or load a native library the attacker has also uploaded, possibly leading to remote code execution in the FFmpeg process. ImageMagick selects its coders and delegates from the extension in the same way. An application is affected if it accepts uploads from untrusted users and analyzes video or audio attachments, generates video previews, or processes images with ImageMagick. The AviSynth attack additionally requires an FFmpeg built with --enable-avisynth and the AviSynthPlus runtime on the host. Upstream FFmpeg and the common Linux distribution and Homebrew packages do not enable it; the GPL builds distributed for Windows and Linux from ffmpeg.org do. Other decoders that FFmpeg or ImageMagick select from the extension may be reachable without AviSynth. This issue is fixed in versions 8.1.4.1 and 8.0.5.2.
- 公開日
- 2026-11-10
- 最終更新(NVD)
- 2026-11-12
- NVD の状態
- Awaiting Analysis
- 脆弱性の種類
- CWE-646
深刻度(CVSS)
- 8.8 HighCVSS 3.1/副/評価:security-advisories@github.com
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
悪用の状況
CISA KEV には掲載されていません(掲載されていないことは、悪用されていないことの証明ではありません)。
EPSS:今後30日に悪用される推定確率 0.51%(全体の上位 55.6%、評価日 2026-11-18)
解消方法
- activestorage のバージョンアップ8.1.4.1 / 8.0.5.2 以降根拠:公告(編集部の転記)
- 回避策(設定変更など)根拠:公告(編集部の転記)
「NVD の条件から推定」は、NVD が影響ありとする版の上限から読み取ったもので、修正版とは限りません。「解消方法の情報なし」は、修正が無いという意味ではありません。必ずベンダーの公告で確認してください。
編集部の記載(レポート掲載時)
レポートの編集部がベンダー公告などから転記した内容です。検証済みの値ではないため、必ず出典で確認してください。
2026-11-11 のレポートRails Active Storage:拡張子でデコーダーが選ばれ、ファイル読み取りや RCE の恐れ
公告に記載の修正版
- activestorage 8.1.4.1 / 8.0.5.2公告
公告に記載の回避策
- config.active_storage.previewers から VideoPreviewer を、analyzers から VideoAnalyzer・AudioAnalyzer を外す公告
参照(NVD)
- https://github.com/rails/rails/commit/72136ff39153bc8d63ecbc899993848eb3d6573e
- https://github.com/rails/rails/commit/8106938fb0a595f11006dd1497cd409e27d7d636
- https://github.com/rails/rails/releases/tag/v8.0.5.2
- https://github.com/rails/rails/releases/tag/v8.1.4.1
- https://github.com/rails/rails/security/advisories/GHSA-v924-7rp8-4mxh
NVD から取得:2026-11-19T00:40:26.487Z/EPSS 評価日:2026-11-18
This product uses the NVD API but is not endorsed or certified by the NVD.
悪用の確認情報は CISA Known Exploited Vulnerabilities Catalog(NVD 経由で取得)によります。EPSS は FIRST(www.first.org/epss)によります。