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.
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
Ciclo de vida de la vulnerabilidad
| Fecha | Fase | Evento | Detalle |
|---|---|---|---|
| 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 |
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.
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.
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 | 7.2.3.2, 8.0.5.1, 8.1.3.1 | -1 d · -1 d · -1 d | 8.1.4.1 no afectada |
7.2.3.28.0.5.18.1.3.1Arsenal público
Ver los 7 repositorios de GitHub
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.
https://github.com/rails/rails/security/advisories/GHSA-xr9x-r78c-5hrmhttps://thehackernews.com/2026/07/critical-rails-flaw-could-let.htmlhttps://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/multi/http/rails_activestorage_vips_rce.rbhttps://github.com/0xBlackash/CVE-2026-66066https://github.com/0xsha/KindaRails2Shellhttps://github.com/HackSpeak/CVE-2026-66066https://github.com/Zer0SumGam3/CVE-2026-66066-POChttps://github.com/ivanesk315/CVE-2026-66066https://github.com/rails/rails-forensics-CVE-2026-66066https://github.com/shinthink/CVE-2026-66066https://github.com/rails/rails/commit/1c01bb587206ee6eb0e1179c2cef96a6a47acb1ehttps://github.com/rails/rails/commit/349e7a5d5b4b715af1e416db824f3c078a7d59e5Ver 5 referencias más
https://github.com/rails/rails/commit/d79b7f4aa17dec8ce4960fef05733c8c0c7ef49ahttps://github.com/rails/rails/releases/tag/v7.2.3.2https://github.com/rails/rails/releases/tag/v8.0.5.1https://github.com/rails/rails/releases/tag/v8.1.3.1https://github.com/rubysec/ruby-advisory-db/blob/master/gems/activestorage/CVE-2026-66066.ymlLas referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.
