llamaCVEVulnerability Intelligence
/
Ruby on Rails

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.

Specific setups onlyParche disponiblecode execution
Descargar PNG JSON
CVSS 3.1
8.8
Alta
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H Fuente: CNA
ExplotaciónSin evidenciaSSVC: none · no figura en CISA KEV
Exploits públicos0Ninguno conocido
Parche2 versionesPrimer parche a -6 d de la divulgación
Exposición8 dDesde la divulgación, 10 nov 2026, 4:14 p. m.
Detección1 hDesde la divulgación hasta su ingreso al índice
Decisión SSVCSeguir de cerca
Monitorear y programar la remediación
Sin explotación conocida, no automatizable e impacto técnico total. Hay versiones corregidas disponibles.
Timeline

Ciclo de vida de la vulnerabilidad

Hoy
Divulgación
Publicada
Evaluación SSVC +1
Explotación
Remediación
Parche 8.0.5.2 +1
Monitoreo
Detectada
Verificada
4 nov 26
10 nov 26
12 nov 26
16 nov 26
19 nov 26
4 nov 26
8 nov 26
12 nov 26
15 nov 26
19 nov 26
FechaFaseEventoDetalle
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
Resumen
Resumen generado por IA · CC-BY 4.0 · 10 nov 2026

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.

¿Qué significa?Active Storage video previews, analysis, and image processing can be abused so that a crafted uploaded file makes the application read files the app process can read, through the preview image. In some cases an attacker-uploaded native library can also be loaded, which could lead to code execution in the FFmpeg process.
¿Quién está afectado?Rails 8.1 before 8.1.4.1 and Rails 8.0 before 8.0.5.2 are affected, in apps that accept uploads from untrusted users and that analyze video or audio attachments, generate video previews, or process images with ImageMagick. The AviSynth variant additionally needs FFmpeg built with --enable-avisynth and the AviSynthPlus runtime on the host; you can check the Rails version in Gemfile.lock and the FFmpeg build with ffmpeg -version.
¿Qué hacer?Upgrade Rails to 8.1.4.1 or 8.0.5.2, depending on your release line.
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.

Contexto

Condiciones y alcance

Condiciones necesarias para que el fallo sea explotable
01
Application accepts uploads from untrusted users.“Accepts uploads from untrusted users.”
02
Application analyzes video or audio attachments, generates video previews, or processes images with ImageMagick.“Analyzes video or audio attachments (which Active Storage does on attach by default), generates video previews, or processes images with ImageMagick.”
03
The AviSynth attack additionally requires FFmpeg built with --enable-avisynth and the AviSynthPlus runtime on the host.“The AviSynth attack additionally requires an FFmpeg built with --enable-avisynth and the AviSynthPlus runtime on the host.”
¿Quién debe revisar?Teams running Rails Active Storage 8.0 or 8.1 that accept untrusted uploads and analyze audio or video, generate video previews, or process images with ImageMagick.
No protegeUpgrading does not undo a disclosure that already occurred.
MitigaciónRemove ActiveStorage::Previewer::VideoPreviewer from config.active_storage.previewers, and ActiveStorage::Analyzer::VideoAnalyzer and ActiveStorage::Analyzer::AudioAnalyzer from config.active_storage.analyzers.
Vector CVSS 3.1

Desglose de métricas

Opción resaltada = valor del vector · izquierda = peor caso · CNA
Vector de ataqueAV:N
RedAdyacenteLocalFísica
ComplejidadAC:L
BajaAlta
PrivilegiosPR:L
NingunoBajosAltos
InteracciónUI:N
NingunaRequerida
AlcanceS:U
CambiadoSin cambio
ConfidencialidadC:H
AltoBajoNinguno
IntegridadI:H
AltoBajoNinguno
DisponibilidadA:H
AltoBajoNinguno
Versiones

Rangos afectados

Afectada Corregida Última
rails · activestorage< 8.0.5.2
rails≥ 8.1 < 8.1.4.1
activestorage≥ 8.1.0.beta1 < 8.1.4.1
8.0.5.2
8.1
8.1.0.beta1
8.1.4.1
Remediación

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde 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
Versiones corregidas8.0.5.28.1.4.1
Explotación

Arsenal público

Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.

Referencias
Fabricantehttps://github.com/rails/rails/security/advisories/GHSA-v924-7rp8-4mxh
Otrahttps://github.com/rails/rails/commit/72136ff39153bc8d63ecbc899993848eb3d6573e
Otrahttps://github.com/rails/rails/commit/8106938fb0a595f11006dd1497cd409e27d7d636
Otrahttps://github.com/rails/rails/releases/tag/v8.0.5.2
Otrahttps://github.com/rails/rails/releases/tag/v8.1.4.1

Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.