GitHub Advisoryadvisory · RubyGems
GHSA-3h57-hmj3-gj3p Rack has possible DoS Vulnerability in Multipart MIME parsing
HIGH
Official page ↗
- Aliases
- CVE-2023-27530
- Ecosystem
- RubyGems
- Packages
- rack
- Severity
- High
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- Weaknesses
- CWE-400, CWE-770
- Reviewed
- 2023-03-08
Affected packages
• RubyGems rack: < 2.0.9.3 → fixed in 2.0.9.3
• RubyGems rack: >= 2.1.0, < 2.1.4.3 → fixed in 2.1.4.3
• RubyGems rack: >= 2.2.0, < 2.2.6.3 → fixed in 2.2.6.3
• RubyGems rack: >= 3.0.0, < 3.0.4.2 → fixed in 3.0.4.2
Description
There is a possible DoS vulnerability in the Multipart MIME parsing code in Rack. This vulnerability has been assigned the CVE identifier CVE-2023-27530.
Versions Affected: All. Not affected: None Fixed Versions: 3.0.4.2, 2.2.6.3, 2.1.4.3, 2.0.9.3
Impact
The Multipart MIME parsing code in Rack limits the number of file parts, but does not limit the total number of parts that can be uploaded. Carefully crafted requests can abuse this and cause multipart parsing to take longer than expected.
All users running an affected release should either upgrade or use one of the workarounds immediately.
Workarounds
A proxy can be configured to limit the POST body size which will mitigate this issue.
Related
Alias · CVE (1)
- CVE-2023-27530 A DoS vulnerability exists in Rack <v3.0.4.2, <v2.2.6.3, <v2.1.4.3 and <v2.0.9.3 within in the Multipart MIME parsing code in which could… vulnerability
References
- https://nvd.nist.gov/vuln/detail/CVE-2023-27530 advisory
- https://discuss.rubyonrails.org/t/cve-2023-27530-possible-dos-vulnerability-in-multipart-mime-parsing/82388 web
- https://github.com/rack/rack package
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/rack/CVE-2023-27530.yml web
- https://lists.debian.org/debian-lts-announce/2023/04/msg00017.html web
- https://security.netapp.com/advisory/ntap-20231208-0015 web
- https://www.debian.org/security/2023/dsa-5530 web