Skip to content

Bump rails/activestorage to 8.1.3.1 for CVE-2026-66066 - #23

Merged
zanebliss merged 2 commits into
mainfrom
zb/rails-security-advisory-99d42e
Jul 29, 2026
Merged

Bump rails/activestorage to 8.1.3.1 for CVE-2026-66066#23
zanebliss merged 2 commits into
mainfrom
zb/rails-security-advisory-99d42e

Conversation

@zanebliss

Copy link
Copy Markdown
Contributor

GHSA-xr9x-r78c-5hrm: Active Storage's libvips variant processor didn't disable libvips' "unfuzzed" operations, which aren't safe against untrusted input. Since Rails 7.0 defaults to variant_processor = :vips and this app depends on ruby-vips, an attacker who can upload an image and trigger variant generation could get arbitrary file read on the server, including the process environment (secret_key_base, credentials, etc), and potentially escalate to RCE.

~> 8.1.2 in the Gemfile already allowed the patched release, so this is just a bundle update rails activestorage to pull in 8.1.3.1. No app code changes needed. Production also needs libvips >= 8.13 and any exposed secrets rotated per the advisory.

GHSA-xr9x-r78c-5hrm: Active Storage's libvips variant processor didn't
disable libvips' "unfuzzed" operations, which aren't safe against untrusted
input. Since Rails 7.0 defaults to `variant_processor = :vips` and this app
depends on `ruby-vips`, an attacker who can upload an image and trigger
variant generation could get arbitrary file read on the server, including
the process environment (`secret_key_base`, credentials, etc), and
potentially escalate to RCE.

`~> 8.1.2` in the Gemfile already allowed the patched release, so this is
just a `bundle update rails activestorage` to pull in 8.1.3.1. No app code
changes needed.

Co-Authored-By: Claude <noreply@anthropic.com>
@zanebliss
zanebliss force-pushed the zb/rails-security-advisory-99d42e branch from 9eb65db to 42a52b1 Compare July 29, 2026 16:02
bin/brakeman passes --ensure-latest, which fails CI whenever the locked
brakeman version falls behind the latest release. 8.0.5 is out, so let's
bump to keep CI green.
@zanebliss
zanebliss marked this pull request as ready for review July 29, 2026 16:07
@zanebliss
zanebliss merged commit e127372 into main Jul 29, 2026
3 of 4 checks passed
@zanebliss
zanebliss deleted the zb/rails-security-advisory-99d42e branch July 29, 2026 16:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant