-
-
Notifications
You must be signed in to change notification settings - Fork 219
/
CVE-2018-16470.yml
55 lines (44 loc) · 1.46 KB
/
CVE-2018-16470.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
---
gem: rack
cve: 2018-16470
ghsa: hg78-4f6x-99wq
url: https://groups.google.com/forum/#!topic/ruby-security-ann/Dz4sRl-ktKk
title: Possible DoS vulnerability in Rack
date: 2018-11-05
description: |
There is a possible DoS vulnerability in the multipart parser in Rack. This
vulnerability has been assigned the CVE identifier CVE-2018-16470.
Versions Affected: 2.0.4, 2.0.5
Not affected: <= 2.0.3
Fixed Versions: 2.0.6
Impact
------
There is a possible DoS vulnerability in the multipart parser in Rack.
Carefully crafted requests can cause the multipart parser to enter a
pathological state, causing the parser to use CPU resources disproportionate to
the request size.
Impacted code can look something like this:
```
Rack::Request.new(env).params
```
But any code that uses the multi-part parser may be vulnerable.
Rack users that have manually adjusted the buffer size in the multipart parser
may be vulnerable as well.
All users running an affected release should either upgrade or use one of the
workarounds immediately.
Releases
--------
The 2.0.6 release is available at the normal locations.
Workarounds
-----------
To work around this issue, the following code can be used:
```
require "rack/multipart/parser"
Rack::Multipart::Parser.send :remove_const, :BUFSIZE
Rack::Multipart::Parser.const_set :BUFSIZE, 16384
```
cvss_v3: 7.5
unaffected_versions:
- "<= 2.0.3"
patched_versions:
- ">= 2.0.6"