Skip to content

Patch CVE-2026-66066 in Active Storage variant processing - #102

Merged
kcdragon merged 1 commit into
mainfrom
active-storage-cve-fix
Jul 29, 2026
Merged

Patch CVE-2026-66066 in Active Storage variant processing#102
kcdragon merged 1 commit into
mainfrom
active-storage-cve-fix

Conversation

@kcdragon

Copy link
Copy Markdown
Collaborator

Addresses CVE-2026-66066, a critical Active Storage flaw where libvips' unsafe "unfuzzed" format loaders/savers allowed arbitrary file read and RCE via crafted image uploads (we accept an org logo upload). Upgrades rails/activestorage from 8.1.3 to 8.1.3.1 (via the 8-1-stable branch), which ships the fix. Adds a defense-in-depth initializer calling Vips.block_untrusted(true) so untrusted loaders stay blocked even if variant processing is introduced later. Full test suite passes (263 runs, 0 failures), including the logo-upload flow.

🤖 Generated with Claude Code

Upgrade rails/activestorage 8.1.3 -> 8.1.3.1 (8-1-stable), which disables
libvips' unsafe "unfuzzed" format loaders/savers that allowed arbitrary file
read and RCE via crafted image uploads. Add a defense-in-depth initializer
calling Vips.block_untrusted(true) so untrusted loaders stay blocked even if
variant processing is introduced later.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@kcdragon
kcdragon merged commit 06551dd into main Jul 29, 2026
5 checks passed
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