Visit Rails NES Home Page

Rails 5.2.x Release Notes

15 versions

Changelog and Release Notes for the NES version of Rails 5.2

Nov 6, 2026
Latest: 5.2.8.46
65 Patched Vulnerabilities
VEX Statements

November 2026

Notes

  • Bumped Rack version requirement to version 2.2.25.10.

Security Fixes

Action Pack
  • CVE-2026-126077 - Fix possible sensitive session information leak. Rails 5.2 has no Active Storage proxy mode, but the cookie jar rewrite affected any response that skips the session.
  • CVE-2026-126076 - Fix possible restoration of destroyed sessions in CacheStore. The Dalli-based MemCacheStore has the same pattern; use Dalli >= 4.0.
  • CVE-2026-126072 - Fix possible DoS vulnerability in Action Controller Live streaming.
Action View
Active Storage
  • CVE-2026-126188 - Fix possible local file disclosure in video previews and analysis.
  • CVE-2026-126186 - Fix possible arbitrary file read and remote code execution in Active Storage video previews, analysis and image processing.
  • CVE-2026-126085 - Fix possible circumvention of file size limits in direct uploads to Google Cloud Storage.
  • CVE-2026-122006 - Fix possible arbitrary file write and read in Active Storage image analysis. Ships an ImageMagick security policy for every MiniMagick process.
  • CVE-2026-126074 - Fix possible DoS vulnerability in filename handling.
Active Support

Breaking Changes

Active Storage
  • Ship an ImageMagick security policy:
    Active Storage now ships an ImageMagick security policy that denies the dangerous coders.
    • mini_magick 4.9 or later is required. With an older version, Active Storage raises an error when it processes images.
    • ImageMagick 6.9.12-76 or later (or a distribution backporting the fix such as Debian 12) is needed to block @file indirection. Older versions, including those in Ubuntu 22.04 and 18.04, ignore this rule; all other rules still apply. On such systems, make sure user input never ends up in ImageMagick command-line arguments, for example in variant transformations. On versions before 6.9.7-7 (Ubuntu 18.04), your own policy also cannot re-allow a format the shipped policy denies.
    • ImageMagick can no longer read PDF or PostScript files. For PDF previews, use Active Storage's Poppler or MuPDF previewer. Do not re-allow these formats if you process files from untrusted users.
    • If you cannot use the shipped policy, set RAILS_LTS_SKIP_ACTIVE_STORAGE_IMAGEMAGICK_POLICY=1 in the process environment before the application boots (a .env file or an initializer is too late). Your application is then vulnerable, unless your global ImageMagick policy.xml denies the same formats. Use the policy that Rails ships as a template.
  • Send x-goog-content-length-range with Google Cloud Storage direct uploads:
    The fix makes browsers send an additional x-goog-content-length-range header with each direct upload. Add this header to the responseHeader list in your bucket's CORS configuration before deploying; otherwise browser direct uploads will fail after the upgrade.
  • Restrict the formats ffmpeg and ffprobe open:
    ffmpeg and ffprobe now only open the formats listed in the new setting config.active_storage.ffmpeg_allowed_formats. Previews and metadata for rarer formats (such as MXF, DV or AC3) stop working unless you add them there.

October 2026

5.2.8.44

Released Oct 29, 2026

Notes

  • Added support for Ruby 4.0.
  • Fixed a bug for Ruby 3 when calling named scopes with keyword arguments multiple times.
  • Bumped Rack version requirement to version 2.2.23.12.

April 2026

Security Fixes

Active Record
  • CVE-2022-44566 – Resolve incomplete denial-of-service (DoS) fix from earlier release.

5.2.8.40

Released Apr 14, 2026

Notes

  • No changes in Rails.
  • Bumped Rack version requirement to version 2.2.23.10.

March 2026

Security Fixes

Action View
Active Storage
  • CVE-2026-33658 - Fix possible DoS vulnerability in proxy mode via multi-range requests.
  • CVE-2026-33202 — Fix possible glob injection in DiskService.
  • CVE-2026-33195 — Fix possible path traversal in DiskService.
  • CVE-2026-33174 - Fix possible DoS vulnerability in proxy mode via Range requests.
  • CVE-2026-33173 — Fix insufficient filtering of metadata in direct uploads.
Active Support

5.2.8.38

Released Mar 4, 2026

Notes

  • No changes in Rails.
  • Bumped Rack version requirement to version 2.2.22.10.

October 2025

5.2.8.37

Released Oct 30, 2025

Notes

  • No changes in Rails.
  • Bumped Rack version requirement to version 2.2.20.11.

5.2.8.36

Released Oct 13, 2025

Notes

  • No changes in Rails.
  • Bumped Rack version requirement to version 2.2.20.10.

5.2.8.35

Released Oct 10, 2025

Notes

  • No changes in Rails.
  • Bumped Rack version requirement to version 2.2.19.10.

5.2.8.34

Released Oct 2, 2025

Notes

  • No changes in Rails.
  • Bumped Rack version requirement to version 2.2.18.10.

August 2025

Security Fixes

Active Record
Active Storage

Breaking Changes

Active Storage
  • Remove unsafe transformations from the default allowlist:
    We adapted the default allowlist (ActiveStorage.supported_image_processing_methods) and removed unsafe transformations, mirroring the official fixes in Rails 7/8. The removed transformations are apply, loader and saver. We still strongly recommend not to pass unsanitized user input in the variant processor in any case.
    We suspect that applications commonly use at least some of these methods, so the update might break image processing for your app. If you find that your app does rely on, for example, the saver transformation:
    1. First, ensure that the transformation is never used with or through unsafe user input.
    2. Then, re-enable the transformation in your application.rb. The methods will be added to the default list of allowed methods.
    config.active_storage.supported_image_processing_methods = ['saver']
    

June 2025

5.2.8.32

Released Jun 17, 2025

Notes

  • No changes in Rails.
  • Bumped Rack version requirement to version 2.2.17.10.

May 2025

5.2.8.31

Released May 15, 2025

Notes

  • No changes in Rails.
  • Bumped Rack version requirement to version 2.2.14.10.

March 2025

5.2.8.30

Released Mar 17, 2025

Notes

  • Removed the railslts-version gem.

February 2025

Notes

  • This is the initial release of Never-Ending Support (NES) for Rails v5.2.x.

Security Fixes

Action Mailer
Action Pack
  • CVE-2024-54133 – Fixed a possible Content Security Policy bypass in Action Dispatch.
  • CVE-2024-47887 – Fixed a possible ReDoS vulnerability in HTTP Token authentication in Action Controller.
  • CVE-2024-41128 – Fixed a possible ReDoS vulnerability in query parameter filtering in Action Dispatch.
  • CVE-2023-28362 – Raise an exception if illegal characters are provide to redirect_to.
  • CVE-2023-22795 – Fixed a ReDoS-based DoS vulnerability in Action Dispatch.
  • CVE-2023-22792 – Fixed a ReDoS-based DoS vulnerability in Action Dispatch.
Action View
  • CVE-2023-23913 – Fixed a DOM-based cross-site scripting (XSS) vulnerability in rails-ujs affecting contenteditable HTML elements.
Active Record
  • CVE-2022-44566 – Fixed a denial-of-service (DoS) vulnerability in ActiveRecord's PostgreSQL adapter.
  • CVE-2022-32224 – Fixed an Active Record RCE bug with serialized columns.
Active Support
  • CVE-2023-38037 – Fixed a potential information disclosure vulnerability in Active Support where locally encrypted files could be exposed.
  • CVE-2023-28120 – Fixed a possible XSS security vulnerability in SafeBuffer#bytesplice.
  • CVE-2023-22796 – Fixed a ReDoS-based DoS vulnerability in Active Support's underscore.

Stay in the loop

~/herodevs-spring-framework-support

Open Source Support

When official support ends, we're just getting started.