Ruby

Critical Rails Active Storage flaw enables arbitrary file writes through crafted ImageMagick uploads

A critical flaw in Ruby on Rails Active Storage can let an unauthenticated attacker write arbitrary files on a server by uploading a crafted file to an application that processes uploads with ImageMagick. The Rails project disclosed the vulnerability and fixed it in versions 8.1.4.1 and 8.0.5.2. The flaw may also allow sensitive files to be read, potentially enabling lateral movement.

AI-written summary, checked against the cited sources. How summaries work

Image: Dark Reading

Why it matters

Operators of Rails applications that process uploads with ImageMagick should update to Rails 8.1.4.1 or 8.0.5.2 to address the arbitrary-file-write flaw.

What we know

Confirmed by several sources

  • The flaw affects Rails Active Storage applications processing uploads with ImageMagick and may permit arbitrary server-file writes. — Dark Reading, The Hacker News

Reported by one source

  • The Rails project disclosed the flaw and fixed it in versions 8.1.4.1 and 8.0.5.2. — The Hacker News
  • The vulnerability may allow reading sensitive files and could enable lateral movement. — Dark Reading

Coverage 2 publishers

  1. The Hacker NewsFirst report

    Critical Rails Flaw Lets Attackers Write Server Files via Crafted ImageMagick Uploads

    A critical flaw in Ruby on Rails could allow an unauthenticated attacker to write arbitrary files on an app's server by uploading a crafted file if the app processes uploads using ImageMagick. The Rails project disclosed the flaw in an…

  2. Dark Reading

    Critical Rails Bug Threatens to Derail Vulnerable Servers

    An attacker could write arbitrary files and read sensitive files via images uploaded to the Rails Active Storage ImageMagick integration, possibly positioning a threat actor for lateral movement.

Earliest report first. Articles stay on their publishers’ sites; each link opens the original.