ADVISORIES

Amazon Linux Security Advisory

ALAS2-2021-1641

Amazon Linux 2 2017.12 - ALAS2-2021-1641: medium priority package update for ruby

Details

Package updates are available for Amazon Linux 2 that fix the following vulnerabilities: CVE-2021-31799: An operating system command injection flaw was found in RDoc. Using the rdoc command to generate documentation for a malicious Ruby source code could lead to execution of arbitrary commands with the privileges of the user running rdoc.

CVE-2020-25613: An issue was discovered in Ruby through 2.5.8, 2.6.x through 2.6.6, and 2.7.x through 2.7.1. WEBrick, a simple HTTP server bundled with Ruby, had not checked the transfer-encoding header value rigorously. An attacker may potentially exploit this issue to bypass a reverse proxy (which also has a poor header check), which may lead to an HTTP Request Smuggling attack.

CVE-2020-10663: A flaw was found in rubygem-json. While parsing certain JSON documents, the json gem (including the one bundled with Ruby) can be coerced into creating arbitrary objects in the target system. This is the same issue as CVE-2013-0269.

Affected packages

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

References