Summary
Package updates are available for Amazon Linux 2 that fix the following vulnerabilities: CVE-2021-41819: CGI::Cookie.parse in Ruby through 2.6.8 mishandles security prefixes in cookie names. This also affects the CGI gem through 0.3.0 for Ruby. CVE-2019-16255: Ruby through 2.4.7, 2.5.x through 2.5.6, and 2.6.x through 2.6.4 allows code injection if the first argument (aka the "command" argument) to Shell#[] or Shell#test in lib/shell.rb is untrusted data. An attacker can exploit this to call an arbitrary Ruby method. CVE-2019-16254: Ruby through 2.4.7, 2.5.x through 2.5.6, and 2.6.x through 2.6.4 allows HTTP Response Splitting. If a program using WEBrick inserts untrusted input into the response header, an attacker can exploit it to insert a newline character to split a header, and inject malicious content to deceive clients. NOTE: this issue exists because of an incomplete fix for CVE-2017-17742, which addressed the CRLF vector, but did not address an isolated CR or an isolated LF. CVE-2019-16201: WEBrick::HTTPAuth::DigestAuth in Ruby through 2.4.7, 2.5.x through 2.5.6, and 2.6.x through 2.6.4 has a regular expression Denial of Service cause by looping/backtracking. A victim must expose a WEBrick server that uses DigestAuth to the Internet or a untrusted network. CVE-2019-15845: A flaw was discovered in Ruby in the way certain functions handled strings containing NULL bytes. Specifically, the built-in methods File.fnmatch and its alias File.fnmatch? did not properly handle path patterns containing the NULL byte. A remote attacker could exploit this flaw to make a Ruby script access unexpected files and to bypass intended file system access restrictions.
Fixed packages 16
| Release | Package | Fixed in |
|---|---|---|
| Amazon Linux · 2 | ruby | 0:2.0.0.648-36.amzn2.0.7 |
| Amazon Linux · 2 | ruby-debuginfo | 0:2.0.0.648-36.amzn2.0.7 |
| Amazon Linux · 2 | ruby-devel | 0:2.0.0.648-36.amzn2.0.7 |
| Amazon Linux · 2 | ruby-doc | 0:2.0.0.648-36.amzn2.0.7 |
| Amazon Linux · 2 | ruby-irb | 0:2.0.0.648-36.amzn2.0.7 |
| Amazon Linux · 2 | ruby-libs | 0:2.0.0.648-36.amzn2.0.7 |
| Amazon Linux · 2 | ruby-tcltk | 0:2.0.0.648-36.amzn2.0.7 |
| Amazon Linux · 2 | rubygem-bigdecimal | 0:1.2.0-36.amzn2.0.7 |
| Amazon Linux · 2 | rubygem-io-console | 0:0.4.2-36.amzn2.0.7 |
| Amazon Linux · 2 | rubygem-json | 0:1.7.7-36.amzn2.0.7 |
| Amazon Linux · 2 | rubygem-minitest | 0:4.3.2-36.amzn2.0.7 |
| Amazon Linux · 2 | rubygem-psych | 0:2.0.0-36.amzn2.0.7 |
| Amazon Linux · 2 | rubygem-rake | 0:0.9.6-36.amzn2.0.7 |
| Amazon Linux · 2 | rubygem-rdoc | 0:4.0.0-36.amzn2.0.7 |
| Amazon Linux · 2 | rubygems | 0:2.0.14.1-36.amzn2.0.7 |
| Amazon Linux · 2 | rubygems-devel | 0:2.0.14.1-36.amzn2.0.7 |
Vulnerabilities 5
-
High 7.5
Cookie Prefix Spoofing in CGI::Cookie.parse
CGI::Cookie.parse in Ruby through 2.6.8 mishandles security prefixes in cookie names. This also affects the CGI gem through 0.3.0 for Ruby.
-
Unscored —
Ruby through 2.4.7, 2.5.x through 2.5.6, and 2.6.x through 2.6.4 mishandles path checking within File.fnmatch functions.
-
Unscored —
WEBrick::HTTPAuth::DigestAuth in Ruby through 2.4.7, 2.5.x through 2.5.6, and 2.6.x through 2.6.4 has a regular express…
-
Unscored —
Ruby through 2.4.7, 2.5.x through 2.5.6, and 2.6.x through 2.6.4 allows HTTP Response Splitting. If a program using WEB…
-
Unscored —
Ruby through 2.4.7, 2.5.x through 2.5.6, and 2.6.x through 2.6.4 allows code injection if the first argument (aka the "…
References
-
web
https://alas.aws.amazon.com/cve/html/CVE-2019-15845.html
-
web
https://alas.aws.amazon.com/cve/html/CVE-2019-16201.html
-
web
https://alas.aws.amazon.com/cve/html/CVE-2019-16254.html
-
web
https://alas.aws.amazon.com/cve/html/CVE-2019-16255.html
-
web
https://alas.aws.amazon.com/cve/html/CVE-2021-41819.html