Visit Rails NES Home Page

Rack 1.6 Release Notes

13 versions

Changelog and Release Notes for the NES version of Rack 1.6

Nov 25, 2026
Latest: 1.6.13.34
51 Patched Vulnerabilities
VEX Statements

November 2026

1.6.13.34

Released Nov 25, 2026

Security Fixes

  • CVE-2026-132825 - Hardened Rack::MethodOverride against a heap overflow in Ruby's String#upcase. Overlong _method parameters and X-HTTP-Method-Override headers are now ignored instead of being upcased. This closes one path through Rack. The vulnerability itself is in Ruby and is not fixed by this release.

Security Fixes

  • GHSA-f7cc-57h7-qrcg - Rack::QueryParser separator pattern allocated about 50 bytes per space after &, and nested parameter name splitting about 50 bytes per bracket, allowing denial of service via memory amplification.
  • GHSA-frgv-948x-h96g - Corrected an incomplete fix for CVE-2026-26962. Rack::Multipart::Parser did not unfold folded multipart headers, preserving CRLF in parsed parameter names.
  • GHSA-r243-pfwh-7rpx - Multipart boundary was extracted by substring match rather than RFC 9110 parameter parsing, allowing parser differentials and WAF bypass.
  • GHSA-58mf-c3jj-277p - Hardening against the Rack 3 charset CPU-exhaustion issue; multipart parser no longer searches the load path for unknown part charset values.

Security Fixes

  • CVE-2026-126076 - Fix possible restoration of destroyed sessions in Rack::Session::Memcache.
  • CVE-2026-125110 - Rack::Static header_rules bypass via unnormalized dot segments in the request path.
  • CVE-2026-125109 - Rack::Request#host_with_port and #base_url return an invalid Host verbatim, enabling URL and allowlist bypass.
  • CVE-2026-125108 - Multipart boundary guard skips a leading empty or quoted boundary parameter, allowing parser differentials and WAF bypass.

October 2026

1.6.13.29

Released Oct 29, 2026

Notes

  • Added support for Ruby 4.0.

Security Fixes

  • CVE-2026-34835 - Corrected an incomplete fix for Rack::Request accepting invalid Host characters, enabling host allowlist bypass.

April 2026

Security Fixes

  • CVE-2026-34835 - Rack::Request accepts invalid Host characters, enabling host allowlist bypass.
  • CVE-2026-34831 - Content-Length mismatch in Rack::Files error responses.
  • CVE-2026-34830 - Rack::Sendfile header-based X-Accel-Mapping regex injection enables unauthorized X-Accel-Redirect.
  • CVE-2026-34829 - Multipart parsing without Content-Length header allows unbounded chunked file uploads.
  • CVE-2026-34826 - Multipart byte range processing allows denial of service via excessive overlapping ranges.
  • CVE-2026-34786 - Rack::Static header_rules bypass via URL-encoded path mismatch.
  • CVE-2026-34785 - Rack::Static prefix matching can expose unintended files under the static root.
  • CVE-2026-34763 - Root directory disclosure via unescaped regex interpolation in Rack::Directory.
  • CVE-2026-34230 - Avoid O(n^2) algorithm in Rack::Utils.select_best_encoding which could lead to denial of service.
  • CVE-2026-32762 - Forwarded header semicolon injection enables Host and Scheme spoofing.
  • CVE-2026-26962 - Improper unfolding of folded multipart headers preserves CRLF in parsed parameter.
  • CVE-2026-26961 - Raise error for multipart requests with multiple boundary parameters.

Breaking Changes

Rack::Static
  • No longer accept regular expressions in header_rules:
    It is no longer possible to pass regular expressions into header_rules config.

March 2026

Security Fixes

  • CVE-2026-25500 - XSS injection via malicious filename in Rack::Directory.
  • CVE-2026-22860 - Directory traversal via root prefix bypass in Rack::Directory.

October 2025

1.6.13.25

Released Oct 30, 2025

Notes

  • Removed an unnecessary warning caused by the last change ("unknown or unsafe x-sendfile variation"). This change has no security implications.

Security Fixes

  • CVE-2025-61919 - Unbounded read in Rack::Request form parsing can lead to memory exhaustion.
  • CVE-2025-61780 - Improper handling of headers in Rack::Sendfile may allow proxy bypass.

Breaking Changes

Rack::Sendfile
  • No longer accept X-Accel-Redirect as a value for the X-Sendfile-Type header:
    This affects applications using nginx's X-Accel-Redirect header. X-Sendfile-Type tells Rack to use the X-Accel-Redirect mechanism. X-Accel-Mapping defines how file system paths are mapped to URLs.
    Because both headers could be set by an attacker, Rack can no longer safely trust them to rewrite paths. As a result, the new Rack release no longer accepts X-Accel-Redirect as a value for the X-Sendfile-Type header.
    To re-enable this functionality safely, you must now explicitly configure Rack or Rails to use X-Accel-Redirect.
    In a Rails app:
    config.action_dispatch.x_sendfile_header = "X-Accel-Redirect"
    

    In a Rack app:
    use Rack::Sendfile, "X-Accel-Redirect"
    

    If you do this, make sure a user cannot set the X-Accel-Mapping header, by explicitly setting X-Accel-Mapping in your nginx configuration:
    proxy_set_header   x-accel-mapping     /var/www/=/files/;
    

    or
    proxy_set_header   x-accel-mapping     "";
    

    Note: In the official Rack 2 and 3 releases, it is also no longer possible to configure Rack to use Apache's X-Sendfile via X-Sendfile-Type: X-Sendfile. Our version of Rack still supports this option.

Security Fixes

  • CVE-2025-61772 - Multipart parser buffers unbounded per-part headers, enabling DoS (memory exhaustion).
  • CVE-2025-61771 - Multipart parser buffers large non‑file fields entirely in memory, enabling DoS (memory exhaustion).
  • CVE-2025-61770 - Unbounded multipart preamble buffering enables DoS (memory exhaustion).

Breaking Changes

Multipart parser
  • Reject multipart form data exceeding 16 MB:
    With the new release, multipart requests that include form data exceeding 16 MB will no longer be accepted. It remains possible to upload arbitrarily large files, but not non-file form fields.
    For example, if a form includes a file upload and a text field, and the user enters more than 16 MB of text, the request will fail. This may also affect API endpoints that use multipart requests, although such usage is relatively uncommon.
    You can increase the limit by setting the environment variable (in this example, for a limit of 100 MB):
    RACK_MULTIPART_BUFFERED_UPLOAD_BYTESIZE_LIMIT=104857600
    

June 2025

1.6.13.22

Released Jun 17, 2025

Security Fixes

  • CVE-2025-49007 - Denial of service vulnerability in the Content-Disposition parsing component of Rack.

May 2025

Security Fixes

  • CVE-2025-46727 - Unbounded parameter parsing in Rack::QueryParser can lead to memory exhaustion.
  • CVE-2025-32441 - Rack session can be restored after deletion.
  • CVE-2025-27610 - Local file inclusion in Rack::Static.

Breaking Changes

Rack::QueryParser
  • Enforce configurable limits on query and form data:
    Like the official Rack release, we now enforce two configurable limits:
    • Total size limit: 4 MB maximum across all query/form data. Increase by setting RACK_QUERY_PARSER_BYTESIZE_LIMIT to a higher byte count.
    • Parameter count limit: 4,096 parameters maximum. Increase by setting RACK_QUERY_PARSER_PARAMS_LIMIT to a higher integer.

    Note that this does not affect file uploads. Uploaded files become Tempfiles, and therefore will not exhaust memory.

March 2025

Security Fixes

February 2025

Notes

  • This is the initial release of Never-Ending Support (NES) for Rack v1.6.x.

Security Fixes

Stay in the loop

~/herodevs-spring-framework-support

Open Source Support

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