Ruby on Rails CVEs 2024 — All Security Releases

Updated March 2026 · PackageFix · Safe version: 7.2.2.1 or 7.1.5.1

Rails had 8 CVEs across 5 security releases in 2024. The October batch (4 CVEs released simultaneously) and the December host authorization bypass are the most significant. Every supported Rails version received patches simultaneously.

All Rails 2024 CVEs

CVEYearSeverityDescriptionFix
CVE-2024-261432024HIGHXSS via Action Text contentFixed 7.1.3.1
CVE-2024-261422024HIGHReDoS via header parsingFixed 7.1.3.1
CVE-2024-281032024MEDIUMHeader injection in CORS headersFixed 7.1.3.4
CVE-2024-411282024HIGHReDoS in query parameter parsingFixed 7.2.1.1
CVE-2024-478872024HIGHDoS via large multipart formFixed 7.2.1.1
CVE-2024-478882024MEDIUMDoS via crafted Accept headerFixed 7.2.1.1
CVE-2024-478892024MEDIUMDoS via crafted Content-Type headerFixed 7.2.1.1
CVE-2024-541332024HIGHAction Pack host authorization bypassFixed 7.2.2.1

Safe versions

Fix
# Rails 7.2 (latest)
gem 'rails', '~> 7.2.2'

# Rails 7.1 LTS
gem 'rails', '~> 7.1.5'

# Update
bundle update rails

# Verify
bundle exec rails --version

CVE-2024-54133 — Host authorization bypass

Disclosed December 2024, this is the most serious of the 2024 batch for production applications. ActionDispatch::HostAuthorization middleware could be bypassed via a crafted Host header in certain configurations. Applications using host allowlisting for access control are affected. Fix: Rails 7.2.2.1 or 7.1.5.1.

The October 2024 batch

Rails released patches for four CVEs simultaneously on October 15, 2024. CVE-2024-41128 (ReDoS in query parsing) is the most severe of the four — a crafted query string can cause the Rails router to hang in a backtracking loop. CVE-2024-47887 and CVE-2024-47889 are DoS via crafted request headers.

Paste your manifest — get the exact safe version instantly.

Scan with PackageFix →

Free · No signup · No CLI

Common questions

How do I stay updated on Rails security releases?
Subscribe to the Rails security mailing list: groups.google.com/g/rubyonrails-security. Security releases are also announced on rubyonrails.org/blog. You can also watch the rails/rails GitHub repository for security advisories.
Does Rails 6.1 receive 2024 security patches?
No. Rails 6.1 reached end of life in June 2024. It does not receive security patches. If you are on Rails 6.1 or earlier, upgrade to 7.1 LTS or 7.2 immediately.
Do I need to update actionpack and actionview separately?
No. Running bundle update rails updates all Rails components together including actionpack, actionview, activerecord, and activesupport.

Related