ADVISORIES

Amazon Linux Security Advisory

ALAS2-2024-2486

Amazon Linux 2 2017.12 - ALAS2-2024-2486: important priority package update for ruby

Details

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.

Affected packages

EcosystemPackageAffected versions
Amazon Linux:2ruby
All versions before 2.0.0.648-36.amzn2.0.7 (fixed in 2.0.0.648-36.amzn2.0.7)
Amazon Linux:2ruby-debuginfo
All versions before 2.0.0.648-36.amzn2.0.7 (fixed in 2.0.0.648-36.amzn2.0.7)
Amazon Linux:2ruby-devel
All versions before 2.0.0.648-36.amzn2.0.7 (fixed in 2.0.0.648-36.amzn2.0.7)
Amazon Linux:2ruby-doc
All versions before 2.0.0.648-36.amzn2.0.7 (fixed in 2.0.0.648-36.amzn2.0.7)
Amazon Linux:2ruby-irb
All versions before 2.0.0.648-36.amzn2.0.7 (fixed in 2.0.0.648-36.amzn2.0.7)
Amazon Linux:2ruby-libs
All versions before 2.0.0.648-36.amzn2.0.7 (fixed in 2.0.0.648-36.amzn2.0.7)
Amazon Linux:2ruby-tcltk
All versions before 2.0.0.648-36.amzn2.0.7 (fixed in 2.0.0.648-36.amzn2.0.7)
Amazon Linux:2rubygem-bigdecimal
All versions before 1.2.0-36.amzn2.0.7 (fixed in 1.2.0-36.amzn2.0.7)
Amazon Linux:2rubygem-io-console
All versions before 0.4.2-36.amzn2.0.7 (fixed in 0.4.2-36.amzn2.0.7)
Amazon Linux:2rubygem-json
All versions before 1.7.7-36.amzn2.0.7 (fixed in 1.7.7-36.amzn2.0.7)
Amazon Linux:2rubygem-minitest
All versions before 4.3.2-36.amzn2.0.7 (fixed in 4.3.2-36.amzn2.0.7)
Amazon Linux:2rubygem-psych
All versions before 2.0.0-36.amzn2.0.7 (fixed in 2.0.0-36.amzn2.0.7)
Amazon Linux:2rubygem-rake
All versions before 0.9.6-36.amzn2.0.7 (fixed in 0.9.6-36.amzn2.0.7)
Amazon Linux:2rubygem-rdoc
All versions before 4.0.0-36.amzn2.0.7 (fixed in 4.0.0-36.amzn2.0.7)
Amazon Linux:2rubygems
All versions before 2.0.14.1-36.amzn2.0.7 (fixed in 2.0.14.1-36.amzn2.0.7)
Amazon Linux:2rubygems-devel
All versions before 2.0.14.1-36.amzn2.0.7 (fixed in 2.0.14.1-36.amzn2.0.7)

References