llamaCVEVulnerability Intelligence
/
Ruby on Rails

CVE-2026-66066

Ruby on Rails remote code execution in Active Storage

Crafted image uploads let remote attackers without login read server files, such as secrets, and may run code.

Crítica · CVSS alto en tecnología listada, EPSS ≥ 10 %Default setupsParche disponible
Descargar PNG JSON
CVSS 4.0
9.5
Crítica
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H Fuente: CNA
ExplotaciónExploit públicoSSVC: poc · no figura en CISA KEV
Exploits públicos82 fuentes
Parche3 versionesPrimer parche a -1 d de la divulgación
Exposición111 dDesde la divulgación, 30 jul 2026, 1:32 p. m.
EPSS ≥ 10 %2 nov 2026Fecha en que la probabilidad de explotación superó el umbral
Decisión SSVCAtender
Priorizar en el próximo ciclo de cambios
Existe PoC pública, automatizable e impacto técnico total. Hay versiones corregidas disponibles.
Timeline

Ciclo de vida de la vulnerabilidad

Hoy
Divulgación
Publicada
Evaluación SSVC
Modificada
Explotación
Umbral EPSS
Remediación
Parche 7.2.3.2 +2
Monitoreo
Detectada
Verificada
29 jul 26
30 jul 26
4 ago 26
5 ago 26
2 nov 26
3 nov 26
18 nov 26
19 nov 26
29 jul 26
26 ago 26
24 sept 26
22 oct 26
19 nov 26
FechaFaseEventoDetalle
Remediación Parche 7.2.3.2 activestorage · -1 d desde divulgación
Remediación Parche 8.0.5.1 activestorage · -1 d desde divulgación
Remediación Parche 8.1.3.1 activestorage · -1 d desde divulgación
Divulgación Publicada CVE-2026-66066 divulgada · CVSS 9.5 (CNA)
Divulgación Evaluación SSVC CISA-ADP · explotación PoC pública
Divulgación Modificada Última actualización del registro
Explotación Umbral EPSS La probabilidad de explotación supera el 10 %
Monitoreo Detectada Ingresó al índice
Monitoreo Verificada Última verificación contra las fuentes
Resumen
Resumen generado por IA · CC-BY 4.0 · 18 nov 2026

Rails applications that use libvips with Active Storage and accept image uploads from untrusted users are affected: a crafted upload can trigger an unsafe libvips operation, letting an attacker read arbitrary files the Rails process can access, such as environment variables and secrets, which could lead to remote code execution. The attack works remotely over the network without logging in, and public exploit code is available.

Affects Rails apps using Active Storage with libvips (variant_processor = :vips) that accept image uploads from untrusted users, before 7.2.3.2, 8.0.5.1 or 8.1.3.1. Fixed in those releases.

¿Qué significa?Active Storage's image variant processing can be abused so an attacker reads arbitrary files the Rails process can access, such as environment variables and secrets like secret_key_base. Those secrets may then lead to remote code execution or lateral movement.
¿Quién está afectado?Affected are Rails versions before 7.2.3.2, 8.0.x before 8.0.5.1 (from 8.0.0.beta1), and 8.1.x before 8.1.3.1 (from 8.1.0.beta1), where the app uses libvips for Active Storage (config.active_storage.variant_processor = :vips) and allows image uploads from untrusted users. To check, look at the installed activestorage or rails version (for example with bundle list) and the variant_processor setting in the app configuration.
¿Qué hacer?Upgrade to Rails 7.2.3.2, 8.0.5.1 or 8.1.3.1, depending on the release line in use.
Descripción original del registro

Action Pack is a framework for handling and responding to web requests. In versions prior to 7.2.3.2, 8.0.5.1 and 8.1.3.1, Active Storage does not disable libvips operations marked unsafe for untrusted content, allowing a crafted upload to invoke such an operation. Consuming applications are affected when configured to use libvips and accept image uploads from untrusted users. An unauthenticated attacker may exploit this behavior to read arbitrary files accessible to the Rails process, including environment variables and application secrets. Exposure of credentials such as secret_key_base or external-service tokens may enable remote code execution or lateral movement. This issue has been fixed in versions 7.2.3.2, 8.0.5.1 and 8.1.3.1.

Contexto

Condiciones y alcance

Condiciones necesarias para que el fallo sea explotable
01
Application uses libvips for Active Storage image processing (variant_processor = :vips)“Uses libvips for Active Storage image processing. This is config.active_storage.variant_processor = :vips”
02
Application allows image uploads from untrusted users“Allows image uploads from untrusted users.”
03
activestorage version before 7.2.3.2, 8.0.5.1 or 8.1.3.1“activestorage >= 8.0, < 8.0.5.1”
¿Quién debe revisar?Rails teams using Active Storage with the libvips (:vips) variant processor that accept image uploads from untrusted users, on activestorage before 7.2.3.2, 8.0.5.1 or 8.1.3.1.
No protegeUpgrading does not undo an exfiltrated secret; secret_key_base and other secrets must be changed.
Vector CVSS 4.0

Desglose de métricas

Opción resaltada = valor del vector · izquierda = peor caso · CNA
Vector de ataqueAV:N
RedAdyacenteLocalFísica
ComplejidadAC:L
BajaAlta
Requisitos de ataqueAT:P
NingunoPresentes
PrivilegiosPR:N
NingunoBajosAltos
InteracciónUI:N
NingunaPasivaActiva
Confid. (sistema)VC:H
AltoBajoNinguno
Integridad (sistema)VI:H
AltoBajoNinguno
Disponib. (sistema)VA:H
AltoBajoNinguno
Confid. (posterior)SC:H
AltoBajoNinguno
Integridad (posterior)SI:H
AltoBajoNinguno
Disponib. (posterior)SA:H
AltoBajoNinguno
Versiones

Rangos afectados

Afectada Corregida Última
rails · activestorage< 7.2.3.2
rails · activestorage≥ 8.0.0.beta1 < 8.0.5.1
rails · activestorage≥ 8.1.0.beta1 < 8.1.3.1
7.2.3.2
8.0.0.beta1
8.0.5.1
8.1.0.beta1
8.1.3.1
8.1.4.1
Remediación

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde divulgaciónÚltima versión
rubygemsactivestorage
Corregida 7.2.3.2, 8.0.5.1, 8.1.3.1 -1 d · -1 d · -1 d 8.1.4.1 no afectada
Versiones corregidas7.2.3.28.0.5.18.1.3.1
Explotación

Arsenal público

Exploit-DB
—
0
Metasploit
modules/exploits/multi/http/rails_activestorage_vips_rce.rb
1
Nuclei
—
0
PoC en GitHub
0xBlackash/CVE-2026-66066 · 0xsha/KindaRails2Shell · HackSpeak/CVE-2026-66066 · Zer0SumGam3/CVE-2026-66066-POC · ivanesk315/CVE-2026-66066 · rails/rails-forensics-CVE-2026-66066 …
7
Ver los 7 repositorios de GitHub
0xBlackash/CVE-2026-66066
0xsha/KindaRails2Shell
HackSpeak/CVE-2026-66066
Zer0SumGam3/CVE-2026-66066-POC
ivanesk315/CVE-2026-66066
rails/rails-forensics-CVE-2026-66066
shinthink/CVE-2026-66066

Los repositorios públicos incluyen exploits, escáneres, laboratorios y reglas de detección. No ejecute código de terceros sin revisarlo en un entorno aislado.

Referencias
Fabricantehttps://github.com/rails/rails/security/advisories/GHSA-xr9x-r78c-5hrm
Análisishttps://thehackernews.com/2026/07/critical-rails-flaw-could-let.html
Exploithttps://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/multi/http/rails_activestorage_vips_rce.rb
Exploithttps://github.com/0xBlackash/CVE-2026-66066
Exploithttps://github.com/0xsha/KindaRails2Shell
Exploithttps://github.com/HackSpeak/CVE-2026-66066
Exploithttps://github.com/Zer0SumGam3/CVE-2026-66066-POC
Exploithttps://github.com/ivanesk315/CVE-2026-66066
Exploithttps://github.com/rails/rails-forensics-CVE-2026-66066
Exploithttps://github.com/shinthink/CVE-2026-66066
Otrahttps://github.com/rails/rails/commit/1c01bb587206ee6eb0e1179c2cef96a6a47acb1e
Otrahttps://github.com/rails/rails/commit/349e7a5d5b4b715af1e416db824f3c078a7d59e5
Ver 5 referencias más
Otrahttps://github.com/rails/rails/commit/d79b7f4aa17dec8ce4960fef05733c8c0c7ef49a
Otrahttps://github.com/rails/rails/releases/tag/v7.2.3.2
Otrahttps://github.com/rails/rails/releases/tag/v8.0.5.1
Otrahttps://github.com/rails/rails/releases/tag/v8.1.3.1
Otrahttps://github.com/rubysec/ruby-advisory-db/blob/master/gems/activestorage/CVE-2026-66066.yml

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