llamaCVEVulnerability Intelligence
/
Ruby on Rails

CVE-2026-126082

Remote code execution risk via file write in Active Storage

An unauthenticated attacker can upload a crafted file to write arbitrary files and read files the app can access.

Default setupsParche disponibleRechazadainsecure default
Descargar PNG JSON
CVSS 3.1
9.8
Crítica
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H Fuente: CNA
ExplotaciónSin evidenciaNo figura en CISA KEV
Exploits públicos0Ninguno conocido
Parche2 versiones8.0.5.2 · 8.1.4.1
Exposición8 dDesde la divulgación, 10 nov 2026, 4:08 p. m.
Detección18 minDesde la divulgación hasta su ingreso al índice
Timeline

Ciclo de vida de la vulnerabilidad

Hoy
Divulgación
Publicada
Modificada
Explotación
Remediación
Monitoreo
Detectada
Fuente: OSV
Verificada
10 nov 26
12 nov 26
17 nov 26
19 nov 26
10 nov 26
13 nov 26
15 nov 26
17 nov 26
19 nov 26
FechaFaseEventoDetalle
Divulgación Publicada CVE-2026-126082 divulgada · CVSS 9.8 (CNA)
Monitoreo Detectada Ingresó al índice
Divulgación Modificada Última actualización del registro
Monitoreo Fuente: OSV Registro visto por primera vez en OSV
Monitoreo Verificada Última verificación contra las fuentes
Resumen
Resumen generado por IA · CC-BY 4.0 · 10 nov 2026

Rails applications that use Active Storage with ImageMagick to process uploaded images can let an unauthenticated attacker write arbitrary files on the server, and with Disk storage read files the app can access, such as secret keys and credentials, which may lead to remote code execution or lateral movement. The attacker reaches it remotely, without logging in, by uploading a crafted file to an app that accepts uploads from untrusted users.

Affects Rails Active Storage before 8.0.5.2 and 8.1 before 8.1.4.1 when ImageMagick (mini_magick) processes uploads from untrusted users under a policy that does not deny the coders involved. Fixed in 8.1.4.1 and 8.0.5.2.

¿Qué significa?Active Storage's image analysis can be abused through a crafted upload to write arbitrary files on the server. With Disk storage, it can also read arbitrary files the app process can access, such as secret_key_base or credentials. The advisory says this may lead to remote code execution or lateral movement.
¿Quién está afectado?Affected activestorage versions are before 8.0.5.2, and 8.1 before 8.1.4.1. The setup also needs ImageMagick used for image processing (config.active_storage.variant_processor = :mini_magick, the default for load_defaults 6.1 or earlier), a security policy that does not deny the coders involved (Debian and Ubuntu packaged policies do not), and uploads from untrusted users. Reading files additionally needs the Disk service. Check the Rails version in Gemfile.lock, the variant_processor setting, and the ImageMagick policy file.
¿Qué hacer?Upgrade to Rails 8.1.4.1 or 8.0.5.2. As a workaround, copy the shipped policy rules into ImageMagick's system policy (e.g. /etc/ImageMagick-7/policy.xml); at minimum deny the MSL coder, the Ghostscript coders, and the gs delegate.
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, 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.

Contexto

Condiciones y alcance

Condiciones necesarias para que el fallo sea explotable
01
Application uses ImageMagick for Active Storage image processing via the mini_magick variant processor (default for load_defaults 6.1 or earlier)“Uses ImageMagick for Active Storage image processing. This is config.active_storage.variant_processor = :mini_magick , which is the default for applications on load_defaults 6.1 or earlier.”
02
ImageMagick runs under a security policy that does not already deny the involved coders (Debian and Ubuntu packaged policies do not)“Runs ImageMagick under a security policy that does not already deny the coders involved. The policies that Debian and Ubuntu package do not.”
03
Application accepts file uploads from untrusted users“Allows file uploads from untrusted users.”
04
Reading arbitrary files additionally requires attachments stored with the Disk service“when attachments are stored with the Disk service, to read arbitrary files readable by the application process”
05
Affected activestorage versions: before 8.0.5.2, and 8.1 before 8.1.4.1“activestorage >= 8.1, < 8.1.4.1”
¿Quién debe revisar?Rails teams using Active Storage with mini_magick/ImageMagick (e.g. Debian/Ubuntu policies) that accept uploads from untrusted users, on activestorage before 8.0.5.2 or 8.1.4.1.
MitigaciónCopy the shipped policy rules into ImageMagick's system policy (e.g. /etc/ImageMagick-7/policy.xml); at minimum deny the MSL coder, the Ghostscript coders, and the gs delegate.
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:N
NingunoBajosAltos
InteracciónUI:N
NingunaRequerida
AlcanceS:U
CambiadoSin cambio
ConfidencialidadC:H
AltoBajoNinguno
IntegridadI:H
AltoBajoNinguno
DisponibilidadA:H
AltoBajoNinguno
Remediación

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde divulgaciónÚltima versión
—
Corregida 8.0.5.2, 8.1.4.1 — —
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-f3w6-w445-fwh9
Otrahttps://github.com/rails/rails/commit/468aa9a93fc98f5476b6821770f4ccfcb7f7d328
Otrahttps://github.com/rails/rails/commit/ea8c40121ce53a3d0255cd4eb6d13bfe3bc01776
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.