CVE-2024-25126
published 2024-02-29CVE-2024-25126: Rack is a modular Ruby web server interface. Carefully crafted content type headers can cause Rack’s media type parser to take much longer than expected…
PriorityP353high7.5CVSS 3.1
AVNACLPRNUINSUCNINAH
EPSS
35.38%
98.2th percentile
Rack is a modular Ruby web server interface. Carefully crafted content type headers can cause Rack’s media type parser to take much longer than expected, leading to a possible denial of service vulnerability (ReDos 2nd degree polynomial). This vulnerability is patched in 3.0.9.1 and 2.2.8.1.
Affected
8 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | debian_linux | — | — |
| debian | ruby-rack | < ruby-rack 2.2.6.4-1+deb12u1 (bookworm) | ruby-rack 2.2.6.4-1+deb12u1 (bookworm) |
| rack | rack | — | — |
| rack | rack | — | — |
| rack | rack | >= 0.4 < 2.2.8.1 | 2.2.8.1 |
| rack | rack | >= 0.4 < 2.2.8.1 | 2.2.8.1 |
| rack | rack | >= 3.0.0 < 3.0.9.1 | 3.0.9.1 |
| rack | rack | >= 3.0.0 < 3.0.9.1 | 3.0.9.1 |
CVSS provenance
nvdv3.17.5HIGHCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
osv7.5HIGH
vendor_ubuntu7.5HIGH
vendor_debian5.3MEDIUM
vendor_redhat5.3MEDIUM
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
OSV
ruby-rack vulnerabilities
osv·2024-09-26·CVSS 7.5
CVE-2022-30122 [HIGH] ruby-rack vulnerabilities
ruby-rack vulnerabilities
It was discovered that Rack was not properly parsing data when processing
multipart POST requests. If a user or automated system were tricked into
sending a specially crafted multipart POST request to an application using
Rack, a remote attacker could possibly use this issue to cause a denial of
service. (CVE-2022-30122)
It was discovered that Rack was not properly escaping untrusted data when
performing logging operations, which could cause shell escaped sequences
to be written to a terminal. If a user or automated system were tricked
into sending a specially crafted request to an application using Rack, a
remote attacker could possibly use this issue to execute arbitrary code in
the machine running the application. (CVE-2022-30123)
It was discovered that Rack
OSV
ruby-rack vulnerabilities
osv·2024-08-19·CVSS 7.5
CVE-2024-25126 [HIGH] ruby-rack vulnerabilities
ruby-rack vulnerabilities
It was discovered that Rack incorrectly parsed certain media types. A
remote attacker could possibly use this issue to cause Rack to consume
resources, leading to a denial of service. This issue only affected
Ubuntu 20.04 LTS and Ubuntu 22.04 LTS. (CVE-2024-25126)
It was discovered that Rack incorrectly handled certain Range headers. A
remote attacker could possibly use this issue to cause Rack to create
large responses, leading to a denial of service. (CVE-2024-26141)
It was discovered that Rack incorrectly handled certain crafted headers. A
remote attacker could possibly use this issue to cause Rack to consume
resources, leading to a denial of service. (CVE-2024-26146)
OSV
ruby-rack vulnerabilities
osv·2024-06-17·CVSS 7.5
CVE-2023-27530 [HIGH] ruby-rack vulnerabilities
ruby-rack vulnerabilities
It was discovered that Rack incorrectly handled Multipart MIME parsing. A
remote attacker could possibly use this issue to cause Rack to consume
resources, leading to a denial of service. This issue only affected Ubuntu
23.10. (CVE-2023-27530)
It was discovered that Rack incorrectly parsed certain media types. A
remote attacker could possibly use this issue to cause Rack to consume
resources, leading to a denial of service. (CVE-2024-25126)
It was discovered that Rack incorrectly handled certain Range headers. A
remote attacker could possibly use this issue to cause Rack to create large
responses, leading to a denial of service. This issue only affected Ubuntu
24.04 LTS. (CVE-2024-26141)
It was discovered that Rack incorrectly handled certain crafted headers.
OSV
CVE-2024-25126: Rack is a modular Ruby web server interface
osv·2024-02-29·CVSS 7.5
CVE-2024-25126 [HIGH] CVE-2024-25126: Rack is a modular Ruby web server interface
Rack is a modular Ruby web server interface. Carefully crafted content type headers can cause Rack’s media type parser to take much longer than expected, leading to a possible denial of service vulnerability (ReDos 2nd degree polynomial). This vulnerability is patched in 3.0.9.1 and 2.2.8.1.
GHSA
Rack vulnerable to ReDoS in content type parsing (2nd degree polynomial)
ghsa·2024-02-28
CVE-2024-25126 [MEDIUM] CWE-1333 Rack vulnerable to ReDoS in content type parsing (2nd degree polynomial)
Rack vulnerable to ReDoS in content type parsing (2nd degree polynomial)
### Summary
```ruby
module Rack
class MediaType
SPLIT_PATTERN = %r{\s*[;,]\s*}
```
The above regexp is subject to ReDos. 50K blank characters as a prefix to the header will take over 10s to split.
### PoC
A simple HTTP request with lots of blank characters in the content-type header:
```ruby
request["Content-Type"] = (" " * 50_000) + "a,"
```
### Impact
It's a very easy to craft ReDoS. Like all ReDoS the impact is debatable.
OSV
Rack vulnerable to ReDoS in content type parsing (2nd degree polynomial)
osv·2024-02-28
CVE-2024-25126 [MEDIUM] Rack vulnerable to ReDoS in content type parsing (2nd degree polynomial)
Rack vulnerable to ReDoS in content type parsing (2nd degree polynomial)
### Summary
```ruby
module Rack
class MediaType
SPLIT_PATTERN = %r{\s*[;,]\s*}
```
The above regexp is subject to ReDos. 50K blank characters as a prefix to the header will take over 10s to split.
### PoC
A simple HTTP request with lots of blank characters in the content-type header:
```ruby
request["Content-Type"] = (" " * 50_000) + "a,"
```
### Impact
It's a very easy to craft ReDoS. Like all ReDoS the impact is debatable.
Ubuntu
Rack vulnerabilities
vendor_ubuntu·2024-09-26·CVSS 7.5
CVE-2024-25126 [HIGH] Rack vulnerabilities
Title: Rack vulnerabilities
Summary: Several security issues were fixed in Rack.
It was discovered that Rack was not properly parsing data when processing
multipart POST requests. If a user or automated system were tricked into
sending a specially crafted multipart POST request to an application using
Rack, a remote attacker could possibly use this issue to cause a denial of
service. (CVE-2022-30122)
It was discovered that Rack was not properly escaping untrusted data when
performing logging operations, which could cause shell escaped sequences
to be written to a terminal. If a user or automated system were tricked
into sending a specially crafted request to an application using Rack, a
remote attacker could possibly use this issue to execute arbitrary code in
the machine running the ap
Ubuntu
Rack vulnerabilities
vendor_ubuntu·2024-08-19·CVSS 5.3
CVE-2024-25126 [MEDIUM] Rack vulnerabilities
Title: Rack vulnerabilities
Summary: Several security issues were fixed in Rack.
It was discovered that Rack incorrectly parsed certain media types. A
remote attacker could possibly use this issue to cause Rack to consume
resources, leading to a denial of service. This issue only affected
Ubuntu 20.04 LTS and Ubuntu 22.04 LTS. (CVE-2024-25126)
It was discovered that Rack incorrectly handled certain Range headers. A
remote attacker could possibly use this issue to cause Rack to create
large responses, leading to a denial of service. (CVE-2024-26141)
It was discovered that Rack incorrectly handled certain crafted headers. A
remote attacker could possibly use this issue to cause Rack to consume
resources, leading to a denial of service. (CVE-2024-26146)
Instructions: After a standard sys
Ubuntu
Rack vulnerabilities
vendor_ubuntu·2024-06-17·CVSS 7.5
CVE-2024-25126 [HIGH] Rack vulnerabilities
Title: Rack vulnerabilities
Summary: Several security issues were fixed in Rack.
It was discovered that Rack incorrectly handled Multipart MIME parsing. A
remote attacker could possibly use this issue to cause Rack to consume
resources, leading to a denial of service. This issue only affected Ubuntu
23.10. (CVE-2023-27530)
It was discovered that Rack incorrectly parsed certain media types. A
remote attacker could possibly use this issue to cause Rack to consume
resources, leading to a denial of service. (CVE-2024-25126)
It was discovered that Rack incorrectly handled certain Range headers. A
remote attacker could possibly use this issue to cause Rack to create large
responses, leading to a denial of service. This issue only affected Ubuntu
24.04 LTS. (CVE-2024-26141)
It was discovered
Red Hat
rubygem-rack: Denial of Service Vulnerability in Rack Content-Type Parsing
vendor_redhat·2024-02-22·CVSS 5.3
CVE-2024-25126 [MEDIUM] CWE-1333 rubygem-rack: Denial of Service Vulnerability in Rack Content-Type Parsing
rubygem-rack: Denial of Service Vulnerability in Rack Content-Type Parsing
Rack is a modular Ruby web server interface. Carefully crafted content type headers can cause Rack’s media type parser to take much longer than expected, leading to a possible denial of service vulnerability (ReDos 2nd degree polynomial). This vulnerability is patched in 3.0.9.1 and 2.2.8.1.
A denial of service (DoS) vulnerability was found in rubygem-rack in how it parses Content-Type. Carefully crafted content type headers can cause Rack’s media type parser to take much longer than expected, leading to a possible denial of service vulnerability.
Mitigation: No mitigation is currently available for this vulnerability. The recommendation is to perform updates as soon as they are available.
Package: openshift-log
Debian
CVE-2024-25126: ruby-rack - Rack is a modular Ruby web server interface. Carefully crafted content type head...
vendor_debian·2024·CVSS 5.3
CVE-2024-25126 [MEDIUM] CVE-2024-25126: ruby-rack - Rack is a modular Ruby web server interface. Carefully crafted content type head...
Rack is a modular Ruby web server interface. Carefully crafted content type headers can cause Rack’s media type parser to take much longer than expected, leading to a possible denial of service vulnerability (ReDos 2nd degree polynomial). This vulnerability is patched in 3.0.9.1 and 2.2.8.1.
Scope: local
bookworm: resolved (fixed in 2.2.6.4-1+deb12u1)
bullseye: resolved (fixed in 2.1.4-3+deb11u2)
forky: resolved (fixed in 2.2.7-1.1)
sid: resolved (fixed in 2.2.7-1.1)
trixie: resolved (fixed in 2.2.7-1.1)
No detection rules found.
No public exploits indexed.
https://discuss.rubyonrails.org/t/denial-of-service-vulnerability-in-rack-content-type-parsing/84941https://github.com/rack/rack/commit/6efb2ceea003c4b195815a614e00438cbd543462https://github.com/rack/rack/commit/d9c163a443b8cadf4711d84bd2c58cb9ef89cf49https://github.com/rack/rack/security/advisories/GHSA-22f2-v57c-j9cxhttps://github.com/rubysec/ruby-advisory-db/blob/master/gems/rack/CVE-2024-25126.ymlhttps://lists.debian.org/debian-lts-announce/2024/04/msg00022.htmlhttps://security.netapp.com/advisory/ntap-20240510-0005/https://discuss.rubyonrails.org/t/denial-of-service-vulnerability-in-rack-content-type-parsing/84941https://github.com/rack/rack/commit/6efb2ceea003c4b195815a614e00438cbd543462https://github.com/rack/rack/commit/d9c163a443b8cadf4711d84bd2c58cb9ef89cf49https://github.com/rack/rack/security/advisories/GHSA-22f2-v57c-j9cxhttps://github.com/rubysec/ruby-advisory-db/blob/master/gems/rack/CVE-2024-25126.ymlhttps://lists.debian.org/debian-lts-announce/2024/04/msg00022.htmlhttps://security.netapp.com/advisory/ntap-20240510-0005/
2024-02-29
Published