Illustration: Rails Patches Critical Flaw Enabling Arbitrary Server File Writes
Ruby on Rails · Disclosed

Rails Patches Critical Flaw Enabling Arbitrary Server File Writes

· 1 min read

A flaw in Active Storage, the Ruby on Rails component that handles file uploads, allows an unauthenticated attacker to write arbitrary files on the server by uploading a crafted file when the app processes uploads with ImageMagick. The Rails project disclosed the flaw in an advisory and fixed it in versions 8.1.4.1 and 8.0.5.2. Affected apps should update.

WhatsApp LinkedIn X
HighVulnerabilityDisclosedPatched
In this article
  1. What happened
  2. Why it matters
  3. What to do
  4. For the technical team
  5. Timeline
  6. Sources

What happened

The Rails project fixed a critical flaw in Active Storage, the component that handles file uploads. An unauthenticated attacker could write arbitrary files on the server by uploading a crafted file, in apps that process uploads with ImageMagick. The fix shipped in versions 8.1.4.1 and 8.0.5.2.

Incidents like this, every morning

The ones that need action first, in a 3-minute read.

Free · 1 email a day, in the morning · no spam, unsubscribe in 1 click

Why it matters

Arbitrary file writes on the server can compromise the entire application. Any company running a Rails app that processes uploads with ImageMagick is exposed, and the attacker needs no login.

What to do

Update Rails to 8.1.4.1 or 8.0.5.2 now. Identify which applications use Active Storage with ImageMagick and prioritize their update.

For the technical team

Affected
Ruby on Rails (Active Storage) · Ruby on Rails applications that process uploads with ImageMagick (via Active Storage).
Exploitation
No exploitation reported in the sources. Flaw disclosed in an advisory by the Rails project, covered by The Hacker News.
Fix
Update to Rails 8.1.4.1 or 8.0.5.2.
Vector
Flaw in Active Storage, the Ruby on Rails file upload component. An unauthenticated attacker uploads a crafted file; arbitrary file writes occur if the app processes uploads with ImageMagick.
More details
The Rails project advisory is the disclosure origin. No CVE cited in the sources.

Timeline

  1. Rails project advisory discloses the flaw and releases fixed versions 8.1.4.1 and 8.0.5.2.

Sources 1 source

Get the next one tomorrow morning

One email a day with what changed, what to fix first and how. After signing up you get the full feed.

Free · 1 email a day, in the morning · no spam, unsubscribe in 1 click

Share it with your team

Whoever handles security with you should get it too.

LinkedIn X

Your colleague gets a confirmation request. Nothing is sent unless they confirm.

See all news

Read also

Before you go: get this every day

The HIFY Radar daily edition lands every morning with the incidents that need action. Free.

Free · 1 email a day, in the morning · no spam, unsubscribe in 1 click