Куда я попал?
SECURITM это SGRC система, ? автоматизирующая процессы в службах информационной безопасности. SECURITM помогает построить и управлять ИСПДн, КИИ, ГИС, СМИБ/СУИБ, банковскими системами защиты.
А еще SECURITM это место для обмена опытом и наработками для служб безопасности.

Ruby on Rails Active Storage Vips Arbitrary File Read and Remote Code Execution

exploit

This module exploits CVE-2026-66066 in Ruby on Rails Active Storage when the application uses the Vips variant processor and accepts untrusted image uploads. A crafted MATLAB v7.3/HDF5 image uses external storage to read text files accessible to the Rails worker through a PNG representation response. The module recovers secret_key_base from the process environment, Rails local secrets, encrypted credentials, or the legacy secrets.yml(.enc) files. It then forges a serializer-compatible variation whose ImageProcessing apply step reaches Kernel#spawn with a command payload, or Kernel#eval with a native Ruby payload when the Ruby target is selected. Neither path requires a Marshal object gadget. The Ruby target's initial code execution does not require a Unix shell or a fetch utility on the target. The file-read stage needs a genuine signed Active Storage variation key. It can use VARIATION_KEY directly, reuse a representation URL from the application, or create one through an application upload form. Supplying SECRET_KEY_BASE skips the arbitrary file-read stage and lets the module construct the standard representation route itself. The file-read stage affects Rails 6.0 and 6.1, Rails 7.0 through 7.2.3.1, Rails 8.0.0 through 8.0.5, and Rails 8.1.0 through 8.1.3. It is fixed in Rails 7.2.3.2, 8.0.5.1, and 8.1.3.1. The RCE stage combines an incomplete Vips-side fix for CVE-2025-24293 with ImageProcessing 1.x method dispatch; ImageProcessing 2.x blocks this chain.

Модуль exploit/multi/http/rails_activestorage_vips_rce
Тип exploit
Ранг Normal
Дата раскрытия 29.07.2026
Платформа Linux,Ruby,Unix
Архитектура cmd, ruby
Авторы 0xacb, s3np41k1r1t0, castilho, RyotaK, Crypto-Cat
Файл в источнике /modules/exploits/multi/http/rails_activestorage_vips_rce.rb

Связанные уязвимости CVE

Идентификаторы CVE, объявленные в источнике для этого модуля
Идентификатор Описание
CVE-2026-66066 Action Pack: Possible arbitrary file read and remote code execution in Active Storage variant processing
CVE-2025-24293 # Active Storage allowed transformation methods potentially unsafe Active Storage attempts to prevent the use of potential...

Связанные уязвимости БДУ ФСТЭК

Идентификатор Название
BDU:2026-10713 Уязвимость системной библиотеки обработки изображений libvips компонента Active Storage программной платформы Ruby on Rails, позволяющая нарушителю выполнить произвольный код и получить несанкционированный доступ к защищаемой информации

Связанные бюллетени НКЦКИ

Идентификатор Дата бюллетеня Описание
VULN:20260904-130 04.09.2026 Выполнение произвольного кода в Ruby on Rails

Связанные типы ошибок CWE

Идентификатор Описание
CWE-1188 The product initializes or sets a resource with a default that is intended to be changed by the product's installer, administrator, or maintainer, but the default is not secure.

Мы используем cookie-файлы, чтобы получить статистику, которая помогает нам улучшить сервис для вас с целью персонализации сервисов и предложений. Вы может прочитать подробнее о cookie-файлах или изменить настройки браузера. Продолжая пользоваться сайтом, вы даёте согласие на использование ваших cookie-файлов и соглашаетесь с Политикой обработки персональных данных.