We shipped a free Certified Patch for the critical Rails Active Storage vulnerab...
Feross @feross@infosec.exchange
We shipped a free Certified Patch for the critical Rails Active Storage vulnerability. It closes the 9.8 without a Rails upgrade, and anyone can use it, customer or not:
socket patch add GHSA-f3w6-w445-fwh9
Active Storage analyzes uploads as soon as they're attached. If it runs ImageMagick and ImageMagick's policy doesn't block certain coders, a crafted upload lets an unauthenticated attacker write arbitrary files to the server. On the Disk service, that can expose secret_key_base, credentials, and database secrets.
You're exposed only if all three are true: variant_processor is :mini_magick, your ImageMagick policy doesn't block the dangerous coders, and you accept untrusted uploads.
The official fix is Rails 8.1.4.1 or 8.0.5.2. Upgrading Rails in production takes testing, and a 9.8 shouldn't sit open while you do it.
That gap is why we built Certified Patches. You get the smallest change that closes one advisory, applied in place with no version bump. Patches are human-reviewed and plain text. You can read every line before it ships.
This patch covers only this advisory, not the other 20 fixes in the Rails release. Patch today. Then plan the upgrade.