rack vulnerabilities
Rack provides a minimal, modular and adaptable interface for developing web applications in Ruby. By wrapping HTTP requests and responses in the simplest way possible, it unifies and distills the API for web servers, web frameworks, and software in between (the so-called middleware) into a single method call.
- Registry
- RubyGems
- Latest
- 3.2.8
- License
- MIT
54 known advisories
The latest version, 3.2.8, is not affected by any of them. Projects on older versions may be.
bundle update --conservative rack # Gemfile: '>= 3.2.8'Is your project on an affected rack?
Look after several Rails or Ruby apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Security advisories for rack
Rack: Multipart parsing allows DoS via unbounded scan buffer growth
- Affected
- <2.2.25 · >=3.0.0 <3.1.23 · >=3.2.0 <3.2.8
- Fixed in
- 2.2.25, 3.1.23, 3.2.8
Rack: Multipart boundary ambiguity guard in Rack::Multipart::Parser can be bypassed with a quoted boundary value, allowing WAF bypass
- Affected
- <2.2.25 · >=3.0.0 <3.1.23 · >=3.2.0 <3.2.8
- Fixed in
- 2.2.25, 3.1.23, 3.2.8
Rack: Rack::Request#host_with_port (and #base_url / #url) return the raw invalid Host header — incomplete fix of CVE-2026-34835
- Affected
- >=3.0.0 <3.1.23 · >=3.2.0 <3.2.8
- Fixed in
- 3.1.23, 3.2.8
Rack: Rack::Static header_rules bypass via dot-segment normalization mismatch
- Affected
- <2.2.25 · >=3.0.0 <3.1.23 · >=3.2.0 <3.2.8
- Fixed in
- 2.2.25, 3.1.23, 3.2.8
Rack::Request accepts invalid Host characters, enabling host allowlist bypass
- Affected
- >=3.0.0.beta1 <3.1.21 · >=3.2.0 <3.2.6
- Fixed in
- 3.1.21, 3.2.6
Rack has Content-Length mismatch in Rack::Files error responses
- Affected
- <2.2.23 · >=3.0.0.beta1 <3.1.21 · >=3.2.0 <3.2.6
- Fixed in
- 2.2.23, 3.1.21, 3.2.6
Rack::Sendfile header-based X-Accel-Mapping regex injection enables unauthorized X-Accel-Redirect
- Affected
- <2.2.23 · >=3.0.0.beta1 <3.1.21 · >=3.2.0 <3.2.6
- Fixed in
- 2.2.23, 3.1.21, 3.2.6
Rack's multipart parsing without Content-Length header allows unbounded chunked file uploads
- Affected
- <2.2.23 · >=3.0.0.beta1 <3.1.21 · >=3.2.0 <3.2.6
- Fixed in
- 2.2.23, 3.1.21, 3.2.6
Rack has a root directory disclosure via unescaped regex interpolation in Rack::Directory
- Affected
- <2.2.23 · >=3.0.0.beta1 <3.1.21 · >=3.2.0 <3.2.6
- Fixed in
- 2.2.23, 3.1.21, 3.2.6
Rack has quadratic complexity in Rack::Utils.select_best_encoding via wildcard Accept-Encoding header
- Affected
- <2.2.23 · >=3.0.0.beta1 <3.1.21 · >=3.2.0 <3.2.6
- Fixed in
- 2.2.23, 3.1.21, 3.2.6
Rack: Forwarded Header semicolon injection enables Host and Scheme spoofing
- Affected
- >=3.0.0.beta1 <3.1.21 · >=3.2.0 <3.2.6
- Fixed in
- 3.1.21, 3.2.6
Rack's improper unfolding of folded multipart headers preserves CRLF in parsed parameter values
- Affected
- >=3.2.0 <3.2.6
- Fixed in
- 3.2.6
Rack's greedy multipart boundary parsing can cause parser differentials and WAF bypass.
- Affected
- <2.2.23 · >=3.0.0.beta1 <3.1.21 · >=3.2.0 <3.2.6
- Fixed in
- 2.2.23, 3.1.21, 3.2.6
Rack's multipart header parsing allows Denial of Service via escape-heavy quoted parameters
- Affected
- >=3.0.0.beta1 <3.1.21 · >=3.2.0 <3.2.6
- Fixed in
- 3.1.21, 3.2.6
Rack's multipart byte range processing allows denial of service via excessive overlapping ranges
- Affected
- <2.2.23 · >=3.0.0.beta1 <3.1.21 · >=3.2.0 <3.2.6
- Fixed in
- 2.2.23, 3.1.21, 3.2.6
Rack:: Static header_rules bypass via URL-encoded paths
- Affected
- <2.2.23 · >=3.0.0.beta1 <3.1.21 · >=3.2.0 <3.2.6
- Fixed in
- 2.2.23, 3.1.21, 3.2.6
Rack::Static prefix matching can expose unintended files under the static root
- Affected
- <2.2.23 · >=3.0.0.beta1 <3.1.21 · >=3.2.0 <3.2.6
- Fixed in
- 2.2.23, 3.1.21, 3.2.6
Stored XSS in Rack::Directory via javascript: filenames rendered into anchor href
- Affected
- <2.2.22 · >=3.0.0.beta1 <3.1.20 · >=3.2.0 <3.2.5
- Fixed in
- 2.2.22, 3.1.20, 3.2.5
Rack has a Directory Traversal via Rack:Directory
- Affected
- <2.2.22 · >=3.0.0.beta1 <3.1.20 · >=3.2.0 <3.2.5
- Fixed in
- 2.2.22, 3.1.20, 3.2.5
Rack is vulnerable to a memory-exhaustion DoS through unbounded URL-encoded body parsing
- Affected
- <2.2.20 · >=3.0 <3.1.18 · >=3.2 <3.2.3
- Fixed in
- 2.2.20, 3.1.18, 3.2.3
Rack has a Possible Information Disclosure Vulnerability
- Affected
- <2.2.20 · >=3.0 <3.1.18 · >=3.2 <3.2.3
- Fixed in
- 2.2.20, 3.1.18, 3.2.3
Rack's multipart parser buffers unbounded per-part headers, enabling DoS (memory exhaustion)
- Affected
- <2.2.19 · >=3.1 <3.1.17 · >=3.2 <3.2.2
- Fixed in
- 2.2.19, 3.1.17, 3.2.2
Rack: Multipart parser buffers large non‑file fields entirely in memory, enabling DoS (memory exhaustion)
- Affected
- <2.2.19 · >=3.1 <3.1.17 · >=3.2 <3.2.2
- Fixed in
- 2.2.19, 3.1.17, 3.2.2
Rack's unbounded multipart preamble buffering enables DoS (memory exhaustion)
- Affected
- <2.2.19 · >=3.1 <3.1.17 · >=3.2 <3.2.2
- Fixed in
- 2.2.19, 3.1.17, 3.2.2
Rack has an unsafe default in Rack::QueryParser allows params_limit bypass via semicolon-separated parameters
- Affected
- <2.2.18
- Fixed in
- 2.2.18
ReDoS Vulnerability in Rack::Multipart handle_mime_head
- Affected
- >=3.1.0 <3.1.16
- Fixed in
- 3.1.16
Rack has an Unbounded-Parameter DoS in Rack::QueryParser
- Affected
- <2.2.14 · >=3.0 <3.0.16 · >=3.1 <3.1.14
- Fixed in
- 2.2.14, 3.0.16, 3.1.14
Rack session gets restored after deletion
- Affected
- <2.2.14
- Fixed in
- 2.2.14
Local File Inclusion in Rack::Static
- Affected
- <2.2.13 · >=3.0 <3.0.14 · >=3.1 <3.1.12
- Fixed in
- 2.2.13, 3.0.14, 3.1.12
Escape Sequence Injection vulnerability in Rack lead to Possible Log Injection
- Affected
- <2.2.12 · >=3.0 <3.0.13 · >=3.1 <3.1.11
- Fixed in
- 2.2.12, 3.0.13, 3.1.11
Possible Log Injection in Rack::CommonLogger
- Affected
- <2.2.11 · >=3.0 <3.0.12 · >=3.1 <3.1.10
- Fixed in
- 2.2.11, 3.0.12, 3.1.10
Rack ReDoS Vulnerability in HTTP Accept Headers Parsing
- Affected
- >=3.1.0 <3.1.5
- Fixed in
- 3.1.5
Rack vulnerable to ReDoS in content type parsing (2nd degree polynomial)
- Affected
- >=3.0.0 <3.0.9.1 · >=0.4 <2.2.8.1
- Fixed in
- 2.2.8.1, 3.0.9.1
Rack has possible DoS Vulnerability with Range Header
- Affected
- >=3.0.0 <3.0.9.1 · >=1.3.0 <2.2.8.1
- Fixed in
- 2.2.8.1, 3.0.9.1
Rack Header Parsing leads to Possible Denial of Service Vulnerability
- Affected
- >=3.0.0 <3.0.9.1 · >=2.2.0 <2.2.8.1 · >=2.1.0 <2.1.4.4 · <2.0.9.4
- Fixed in
- 2.0.9.4, 2.1.4.4, 2.2.8.1, 3.0.9.1
Possible Denial of Service Vulnerability in Rack's header parsing
- Affected
- >=2.0.0 <2.2.6.4 · >=3.0.0 <3.0.6.1
- Fixed in
- 2.2.6.4, 3.0.6.1
Rack has possible DoS Vulnerability in Multipart MIME parsing
- Affected
- <2.0.9.3 · >=2.1.0 <2.1.4.3 · >=2.2.0 <2.2.6.3 · >=3.0.0 <3.0.4.2
- Fixed in
- 2.0.9.3, 2.1.4.3, 2.2.6.3, 3.0.4.2
Denial of Service Vulnerability in Rack Content-Disposition parsing
- Affected
- >=2.0.0 <2.0.9.2 · >=2.1.0 <2.1.4.2 · >=2.2.0 <2.2.6.1 · >=3.0.0.0 <3.0.4.1
- Fixed in
- 2.0.9.2, 2.1.4.2, 2.2.6.1, 3.0.4.1
Denial of service via header parsing in Rack
- Affected
- >=1.5.0 <2.0.9.2 · >=2.1.0.0 <2.1.4.2 · >=2.2.0.0 <2.2.6.2 · >=3.0.0.0 <3.0.4.1
- Fixed in
- 2.0.9.2, 2.1.4.2, 2.2.6.2, 3.0.4.1
Denial of service via multipart parsing in Rack
- Affected
- >=2.0.0 <2.0.9.2 · >=2.1.0.0 <2.1.4.2 · >=2.2.0.0 <2.2.6.1 · >=3.0.0.0 <3.0.4.1
- Fixed in
- 2.0.9.2, 2.1.4.2, 2.2.6.1, 3.0.4.1
Denial of Service Vulnerability in Rack Multipart Parsing
- Affected
- >=1.2 <2.0.9.1 · >=2.1 <2.1.4.1 · >=2.2 <2.2.3.1
- Fixed in
- 2.0.9.1, 2.1.4.1, 2.2.3.1
Possible shell escape sequence injection vulnerability in Rack
- Affected
- <2.0.9.1 · >=2.1 <2.1.4.1 · >=2.2 <2.2.3.1
- Fixed in
- 2.0.9.1, 2.1.4.1, 2.2.3.1
Rack Gem Subject to Denial of Service via Hash Collisions
- Affected
- <1.1.3 · >=1.2.0 <1.2.5 · >=1.3.0 <1.3.6
- Fixed in
- 1.1.3, 1.2.5, 1.3.6
Rack arbitrary code execution via timing attack
- Affected
- >=1.5.0 <1.5.2 · >=1.4.0 <1.4.5 · >=1.3.0 <1.3.10 · >=1.2.0 <1.2.8 · >=1.1.0 <1.1.6
- Fixed in
- 1.1.6, 1.2.8, 1.3.10, 1.4.5, 1.5.2
Rack vulnerable to Denial of Service
- Affected
- >=1.1.0 <1.1.5 · >=1.2.0 <1.2.7 · >=1.3.0 <1.3.9 · >=1.4.0 <1.4.4
- Fixed in
- 1.1.5, 1.2.7, 1.3.9, 1.4.4
Directory traversal in Rack::Directory app bundled with Rack
- Affected
- <2.1.3
- Fixed in
- 2.1.3
Rack allows Percent-encoded cookies to overwrite existing prefixed cookie names
- Affected
- <2.1.4 · >=2.2.0 <2.2.3
- Fixed in
- 2.1.4, 2.2.3
Possible Information Leak / Session Hijack Vulnerability in Rack
- Affected
- <1.6.12 · >=2.0.0 <2.0.8
- Fixed in
- 1.6.12, 2.0.8
Rack vulnerable to Cross-site Scripting
- Affected
- >=2.0.0 <2.0.6 · <1.6.11
- Fixed in
- 1.6.11, 2.0.6
Rack vulnerable to Denial of Service
- Affected
- >=2.0.4 <2.0.6
- Fixed in
- 2.0.6
Rack rubygems receiving excessively long lines triggers out-of-memory error
- Affected
- >=1.3.0 <1.3.8 · >=1.4.0 <1.4.3
- Fixed in
- 1.3.8, 1.4.3
Rack Vulnerable to Path Traversal
- Affected
- >=1.5.0 <1.5.2 · >=1.4.0 <1.4.5
- Fixed in
- 1.4.5, 1.5.2
Rack vulnerable to REDoS
- Affected
- <1.1.4 · >=1.2.0 <1.2.6 · >=1.3.0 <1.3.7 · >=1.4.0 <1.4.2
- Fixed in
- 1.1.4, 1.2.6, 1.3.7, 1.4.2
Rack vulnerable to Denial of Service via large parameter depth request
- Affected
- >=1.5.0 <1.5.4 · >=1.6.0 <1.6.2 · >=1.4.0 <1.4.6
- Fixed in
- 1.4.6, 1.5.4, 1.6.2
Is your rack version vulnerable?
- rack 3.2No known advisories in 3.2.8
- rack 3.1No known advisories in 3.1.23
- rack 3.020 advisories in 3.0.18
- rack 2.2No known advisories in 2.2.25
- rack 2.128 advisories in 2.1.4.4
- rack 2.030 advisories in 2.0.9.4
- rack 1.634 advisories in 1.6.13
- rack 1.536 advisories in 1.5.5
- rack 1.435 advisories in 1.4.7
- rack 1.335 advisories in 1.3.10
- rack 1.234 advisories in 1.2.8
- rack 1.133 advisories in 1.1.6
Which of your client projects still run an old rack?
NPMscan reads the Gemfile.lock in every GitHub repo you pick and checks each installed version against these advisories, including the packages your packages pull in. Each finding comes with the command that fixes it.
Other RubyGems packages
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily. Package details from the RubyGems registry.