CVE-2026-126186
Ruby on Rails remote code execution in Active Storage video previews
A low-privilege attacker can read files or, in some setups, run code by uploading media with a crafted extension.
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Fuente: CNA
Ciclo de vida de la vulnerabilidad
| Fecha | Fase | Evento | Detalle |
|---|---|---|---|
| Remediación | Parche 8.0.5.2 | activestorage · -6 d desde divulgación | |
| Remediación | Parche 8.1.4.1 | activestorage · -6 d desde divulgación | |
| Divulgación | Publicada | CVE-2026-126186 divulgada · CVSS 8.8 (CNA) | |
| Monitoreo | Detectada | Ingresó al índice | |
| Divulgación | Evaluación SSVC | CISA-ADP · explotación ninguna | |
| Divulgación | Modificada | Última actualización del registro | |
| Monitoreo | Verificada | Última verificación contra las fuentes |
Active Storage in Ruby on Rails is affected when it accepts uploads from untrusted users and then analyzes video or audio, generates video previews, or processes images with ImageMagick. An attacker with low-privilege access over the network, without user interaction, can choose a filename extension that makes FFmpeg or ImageMagick use an unintended decoder, which could read files the application can access or, in some setups, lead to code execution, and the AviSynth route additionally requires a non-default FFmpeg build with AviSynth support.
Affects Rails 8.1 and Active Storage apps that accept uploads from untrusted users and process video, audio, or images with ImageMagick or FFmpeg previews. Fixed in 8.1.4.1 and 8.0.5.2.
Descripción original del registro (GitHub_M)
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.
Condiciones y alcance
Desglose de métricas
Rangos afectados
Estado del parche por paquete
| Paquete / producto | Estado | Corregida en | Desde divulgación | Última versión |
|---|---|---|---|---|
rubygemsactivestorage |
Corregida | 8.0.5.2, 8.1.4.1 | -6 d · -6 d | 8.1.4.1 no afectada |
8.0.5.28.1.4.1Arsenal público
Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.
https://github.com/rails/rails/security/advisories/GHSA-v924-7rp8-4mxhhttps://github.com/rails/rails/commit/72136ff39153bc8d63ecbc899993848eb3d6573ehttps://github.com/rails/rails/commit/8106938fb0a595f11006dd1497cd409e27d7d636https://github.com/rails/rails/releases/tag/v8.0.5.2https://github.com/rails/rails/releases/tag/v8.1.4.1Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.
