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.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Fuente: CNA
Ciclo de vida de la vulnerabilidad
| Fecha | Fase | Evento | Detalle |
|---|---|---|---|
| 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 |
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.
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.
Condiciones y alcance
Desglose de métricas
Estado del parche por paquete
| Paquete / producto | Estado | Corregida en | Desde divulgación | Última versión |
|---|---|---|---|---|
— |
Corregida | 8.0.5.2, 8.1.4.1 | — | — |
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-f3w6-w445-fwh9https://github.com/rails/rails/commit/468aa9a93fc98f5476b6821770f4ccfcb7f7d328https://github.com/rails/rails/commit/ea8c40121ce53a3d0255cd4eb6d13bfe3bc01776https://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.
