Skip to main content
RubyGems (Ruby)

rack Known Vulnerabilities & Fixes

rack has 39 known security vulnerabilities in RubyGems (Ruby). Upgrade to version 3.2.8 or later to resolve all known issues. Data sourced from OSV, enriched with EPSS exploit probability and CISA KEV.

39 Vulnerabilities

Low Immediate Risk

No actively exploited vulnerabilities detected. Monitor and update in your next maintenance window.

Recommended safe version: 3.2.8

Upgrading to 3.2.8 or later resolves all 39 known vulnerabilities in rack. Run: gem install rack -v 3.2.8

Is rack in your project?

Check if you're affected and upgrade to 3.2.8 to stay secure.

39
Total
1
Critical
19
High
19
Medium
0
Low

Security Summary

  • 100 affected version ranges have been identified across these 39 advisories.
  • 100% of known issues have a published fixed version.
  • Highest exploit-probability (EPSS) score for rack: 3.7%.
  • Remediation: gem update rack

Vulnerabilities

39 unique vulnerabilities — sorted by exploitation risk (KEV → EPSS → CVSS). Click a CVE/GHSA ID for full details. First disclosed Nov 15, 2018, most recently Nov 10, 2026 (2917 days apart).

CVE / GHSASeverity
CVE-2019-16782
Possible Information Leak / Session Hijack Vulnerability in Rack
Affected
0.1.0, 0.2.0, 0.3.0, 0.4.0 (+71 more)
Fixed in
1.6.12, 2.0.8
MEDIUM
CVE-2020-8161
Directory traversal in Rack::Directory app bundled with Rack
Affected
0.1.0, 0.2.0, 0.3.0, 0.4.0 (+84 more)
Fixed in
2.1.3
HIGH
CVE-2020-8184
Rack allows Percent-encoded cookies to overwrite existing prefixed cookie names
Affected
0.1.0, 0.2.0, 0.3.0, 0.4.0 (+88 more)
Fixed in
2.1.4, 2.2.3
HIGH
CVE-2024-25126
Rack vulnerable to ReDoS in content type parsing (2nd degree polynomial)
Affected
3.0.0, 3.0.1, 3.0.2, 3.0.3 (+114 more)
Fixed in
3.0.9.1, 2.2.8.1
MEDIUM
CVE-2022-30122
Denial of Service Vulnerability in Rack Multipart Parsing
Affected
1.2.0, 1.2.1, 1.2.2, 1.2.3 (+70 more)
Fixed in
2.0.9.1, 2.1.4.1, 2.2.3.1
HIGH
CVE-2022-30123
Possible shell escape sequence injection vulnerability in Rack
Affected
0.1.0, 0.2.0, 0.3.0, 0.4.0 (+86 more)
Fixed in
2.0.9.1, 2.1.4.1, 2.2.3.1
CRITICAL
CVE-2018-16470
Rack vulnerable to Denial of Service
Affected
2.0.4, 2.0.5
Fixed in
2.0.6
HIGH
CVE-2025-46727
Rack has an Unbounded-Parameter DoS in Rack::QueryParser
Affected
0.1.0, 0.2.0, 0.3.0, 0.4.0 (+144 more)
Fixed in
2.2.14, 3.0.16, 3.1.14
HIGH
CVE-2023-27530
Rack has possible DoS Vulnerability in Multipart MIME parsing
Affected
0.1.0, 0.2.0, 0.3.0, 0.4.0 (+102 more)
Fixed in
2.0.9.3, 2.1.4.3, 2.2.6.3 (+1 more)
HIGH
CVE-2022-44570
Denial of service via header parsing in Rack
Affected
1.5.0, 1.5.1, 1.5.2, 1.5.3 (+50 more)
Fixed in
2.0.9.2, 2.1.4.2, 2.2.6.2 (+1 more)
HIGH
CVE-2024-39316
Rack ReDoS Vulnerability in HTTP Accept Headers Parsing
Affected
3.1.0, 3.1.1, 3.1.2, 3.1.3 (+1 more)
Fixed in
3.1.5
MEDIUM
CVE-2025-61772
Rack's multipart parser buffers unbounded per-part headers, enabling DoS (memory exhaustion)
Affected
0.1.0, 0.2.0, 0.3.0, 0.4.0 (+134 more)
Fixed in
2.2.19, 3.1.17, 3.2.2
HIGH
CVE-2025-61770
Rack's unbounded multipart preamble buffering enables DoS (memory exhaustion)
Affected
0.1.0, 0.2.0, 0.3.0, 0.4.0 (+134 more)
Fixed in
2.2.19, 3.1.17, 3.2.2
HIGH
CVE-2025-61919
Rack is vulnerable to a memory-exhaustion DoS through unbounded URL-encoded body parsing
Affected
0.1.0, 0.2.0, 0.3.0, 0.4.0 (+160 more)
Fixed in
2.2.20, 3.1.18, 3.2.3
HIGH
CVE-2025-25184
Possible Log Injection in Rack::CommonLogger
Affected
0.1.0, 0.2.0, 0.3.0, 0.4.0 (+133 more)
Fixed in
2.2.11, 3.0.12, 3.1.10
MEDIUM
CVE-2025-49007
ReDoS Vulnerability in Rack::Multipart handle_mime_head
Affected
3.1.0, 3.1.1, 3.1.10, 3.1.11 (+12 more)
Fixed in
3.1.16
MEDIUM
CVE-2025-27610
Local File Inclusion in Rack::Static
Affected
0.1.0, 0.2.0, 0.3.0, 0.4.0 (+139 more)
Fixed in
2.2.13, 3.0.14, 3.1.12
HIGH
CVE-2026-22860
Rack has a Directory Traversal via Rack:Directory
Affected
0.1.0, 0.2.0, 0.3.0, 0.4.0 (+168 more)
Fixed in
2.2.22, 3.1.20, 3.2.5
HIGH
CVE-2025-59830
Rack has an unsafe default in Rack::QueryParser allows params_limit bypass via semicolon-separated parameters
Affected
0.1.0, 0.2.0, 0.3.0, 0.4.0 (+114 more)
Fixed in
2.2.18
HIGH
CVE-2025-61771
Rack: Multipart parser buffers large non‑file fields entirely in memory, enabling DoS (memory exhaustion)
Affected
0.1.0, 0.2.0, 0.3.0, 0.4.0 (+134 more)
Fixed in
2.2.19, 3.1.17, 3.2.2
HIGH
CVE-2025-27111
Escape Sequence Injection vulnerability in Rack lead to Possible Log Injection
Affected
0.1.0, 0.2.0, 0.3.0, 0.4.0 (+136 more)
Fixed in
2.2.12, 3.0.13, 3.1.11
MEDIUM
CVE-2025-61780
Rack has a Possible Information Disclosure Vulnerability
Affected
0.1.0, 0.2.0, 0.3.0, 0.4.0 (+160 more)
Fixed in
2.2.20, 3.1.18, 3.2.3
MEDIUM
CVE-2026-34829
Rack's multipart parsing without Content-Length header allows unbounded chunked file uploads
Affected
0.1.0, 0.2.0, 0.3.0, 0.4.0 (+171 more)
Fixed in
2.2.23, 3.1.21, 3.2.6
HIGH
CVE-2026-34827
Rack's multipart header parsing allows Denial of Service via escape-heavy quoted parameters
Affected
3.0.0, 3.0.0.beta1, 3.0.0.rc1, 3.0.1 (+48 more)
Fixed in
3.1.21, 3.2.6
HIGH
CVE-2026-125111
Rack: Multipart parsing allows DoS via unbounded scan buffer growth
Affected
0.1.0, 0.2.0, 0.3.0, 0.4.0 (+175 more)
Fixed in
2.2.25, 3.1.23, 3.2.8
HIGH
CVE-2026-34785
Rack::Static prefix matching can expose unintended files under the static root
Affected
0.1.0, 0.2.0, 0.3.0, 0.4.0 (+171 more)
Fixed in
2.2.23, 3.1.21, 3.2.6
HIGH
CVE-2026-34230
Rack has quadratic complexity in Rack::Utils.select_best_encoding via wildcard Accept-Encoding header
Affected
0.1.0, 0.2.0, 0.3.0, 0.4.0 (+171 more)
Fixed in
2.2.23, 3.1.21, 3.2.6
HIGH
CVE-2026-34826
Rack's multipart byte range processing allows denial of service via excessive overlapping ranges
Affected
0.1.0, 0.2.0, 0.3.0, 0.4.0 (+171 more)
Fixed in
2.2.23, 3.1.21, 3.2.6
MEDIUM
CVE-2026-125110
Rack: Rack::Static header_rules bypass via dot-segment normalization mismatch
Affected
0.1.0, 0.2.0, 0.3.0, 0.4.0 (+175 more)
Fixed in
2.2.25, 3.1.23, 3.2.8
MEDIUM
CVE-2026-34830
Rack::Sendfile header-based X-Accel-Mapping regex injection enables unauthorized X-Accel-Redirect
Affected
0.1.0, 0.2.0, 0.3.0, 0.4.0 (+171 more)
Fixed in
2.2.23, 3.1.21, 3.2.6
MEDIUM
CVE-2026-125109
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.0.1, 3.0.10, 3.0.11 (+50 more)
Fixed in
3.1.23, 3.2.8
MEDIUM
CVE-2026-34763
Rack has a root directory disclosure via unescaped regex interpolation in Rack::Directory
Affected
0.1.0, 0.2.0, 0.3.0, 0.4.0 (+171 more)
Fixed in
2.2.23, 3.1.21, 3.2.6
MEDIUM
CVE-2026-34786
Rack:: Static header_rules bypass via URL-encoded paths
Affected
0.1.0, 0.2.0, 0.3.0, 0.4.0 (+171 more)
Fixed in
2.2.23, 3.1.21, 3.2.6
MEDIUM
CVE-2026-25500
Stored XSS in Rack::Directory via javascript: filenames rendered into anchor href
Affected
0.1.0, 0.2.0, 0.3.0, 0.4.0 (+168 more)
Fixed in
2.2.22, 3.1.20, 3.2.5
MEDIUM
CVE-2026-34835
Rack::Request accepts invalid Host characters, enabling host allowlist bypass
Affected
3.0.0, 3.0.0.beta1, 3.0.0.rc1, 3.0.1 (+48 more)
Fixed in
3.1.21, 3.2.6
MEDIUM
CVE-2026-26961
Rack's greedy multipart boundary parsing can cause parser differentials and WAF bypass.
Affected
0.1.0, 0.2.0, 0.3.0, 0.4.0 (+171 more)
Fixed in
2.2.23, 3.1.21, 3.2.6
MEDIUM
CVE-2026-34831
Rack has Content-Length mismatch in Rack::Files error responses
Affected
0.1.0, 0.2.0, 0.3.0, 0.4.0 (+171 more)
Fixed in
2.2.23, 3.1.21, 3.2.6
MEDIUM
CVE-2026-32762
Rack: Forwarded Header semicolon injection enables Host and Scheme spoofing
Affected
3.0.0, 3.0.0.beta1, 3.0.0.rc1, 3.0.1 (+48 more)
Fixed in
3.1.21, 3.2.6
MEDIUM
CVE-2026-26962
Rack's improper unfolding of folded multipart headers preserves CRLF in parsed parameter values
Affected
3.2.0, 3.2.1, 3.2.2, 3.2.3 (+2 more)
Fixed in
3.2.6
MEDIUM

About This Data

Vulnerability data for rack is sourced from the Open Source Vulnerability (OSV) database, aggregating reports from GitHub Advisory Database, NIST NVD, and ecosystem-specific sources.

CVSS (Common Vulnerability Scoring System) scores reflect exploitability and impact. EPSS (Exploit Prediction Scoring System) scores indicate the probability of exploitation within the next 30 days. Vulnerabilities marked with are listed in the CISA Known Exploited Vulnerabilities (KEV) catalog.

Related RubyGems (Ruby) Packages

Other packages in this ecosystem, ranked by shared vulnerabilities where available.

Check Your Dependencies

Scan your project to check if you're using a vulnerable version of rack.

Data from OSV DatabaseUpdated daily200K+ vulnerabilities indexed