LiveUpdated
Rails fixes critical file-write flaw in Active Storage uploads
A flaw in Ruby on Rails, a popular web framework, could let an outsider write files onto a website's server through a crafted upload. Sites that process uploads with ImageMagick should install the fixed Rails versions.
What's new
Newest coverage
What happened
The Rails project disclosed a critical flaw in Active Storage, the part of Rails that handles file uploads, and fixed it in versions 8.1.4.1 and 8.0.5.2. The Hacker News reports that an unauthenticated attacker could write arbitrary files on a server by uploading a crafted file if the app processes uploads with ImageMagick. [1]
Dark Reading reports that an attacker could also read sensitive files, which could position a threat actor for lateral movement. Socket says that under certain configurations this could lead to remote code execution, and that the Rails release addressed 21 vulnerabilities in total. [2][3]
What is not yet known
The cited coverage does not say that the flaw is being exploited, and no CVE identifier appears in the sources reviewed. Socket describes a free certified patch for the flaw. [3][1]
Timeline
Explained
The technology and terms in this story. Learn more
Business ActionWhat this means inside your organization, and what to do about it, by company size.
Small business
No dedicated security staff; relies on providers
What to know
If your website or app was built with Ruby on Rails and accepts uploads, it may be affected. [1]
Mid-size company
A small IT or security team
Large enterprise
A security operations team
What to know
The Rails release fixed 21 vulnerabilities, including the critical Active Storage flaw, which Socket says could lead to remote code execution under some configurations. [3]
Sources
- [1]The Hacker News · Nov 4, 12:07 UTC
Critical Rails Flaw Lets Attackers Write Server Files via Crafted ImageMagick Uploadscontext - [2]Dark Reading · Nov 4, 21:48 UTC
Critical Rails Bug Threatens to Derail Vulnerable Serverscontext - [3]Socket Blog · Nov 6, 20:40 UTC
Free Certified Patch for Critical Rails Active Storage Vulnerabilitycontext