ALAS2-2021-1641


Amazon Linux 2 (EOS) Security Advisory: ALAS2-2021-1641
Advisory Released Date: 2021-05-24
Advisory Updated Date: 2023-02-17
Severity: Medium

Issue Overview:

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. (CVE-2020-10663)

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-25613)

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-2021-31799)


Affected Packages:

ruby


Note:

This advisory is applicable to Amazon Linux 2 (AL2) Core repository. Visit this FAQ section for the difference between AL2 Core and AL2 Extras advisories.


Issue Correction:
Run yum update ruby or yum update --advisory ALAS2-2021-1641 to update your system.

New Packages:
aarch64:
    ruby-2.0.0.648-36.amzn2.0.2.aarch64
    ruby-devel-2.0.0.648-36.amzn2.0.2.aarch64
    ruby-libs-2.0.0.648-36.amzn2.0.2.aarch64
    rubygem-bigdecimal-1.2.0-36.amzn2.0.2.aarch64
    rubygem-io-console-0.4.2-36.amzn2.0.2.aarch64
    rubygem-json-1.7.7-36.amzn2.0.2.aarch64
    rubygem-psych-2.0.0-36.amzn2.0.2.aarch64
    ruby-tcltk-2.0.0.648-36.amzn2.0.2.aarch64
    ruby-debuginfo-2.0.0.648-36.amzn2.0.2.aarch64

i686:
    ruby-2.0.0.648-36.amzn2.0.2.i686
    ruby-devel-2.0.0.648-36.amzn2.0.2.i686
    ruby-libs-2.0.0.648-36.amzn2.0.2.i686
    rubygem-bigdecimal-1.2.0-36.amzn2.0.2.i686
    rubygem-io-console-0.4.2-36.amzn2.0.2.i686
    rubygem-json-1.7.7-36.amzn2.0.2.i686
    rubygem-psych-2.0.0-36.amzn2.0.2.i686
    ruby-tcltk-2.0.0.648-36.amzn2.0.2.i686
    ruby-debuginfo-2.0.0.648-36.amzn2.0.2.i686

noarch:
    rubygems-2.0.14.1-36.amzn2.0.2.noarch
    rubygems-devel-2.0.14.1-36.amzn2.0.2.noarch
    rubygem-rake-0.9.6-36.amzn2.0.2.noarch
    ruby-irb-2.0.0.648-36.amzn2.0.2.noarch
    rubygem-rdoc-4.0.0-36.amzn2.0.2.noarch
    ruby-doc-2.0.0.648-36.amzn2.0.2.noarch
    rubygem-minitest-4.3.2-36.amzn2.0.2.noarch

src:
    ruby-2.0.0.648-36.amzn2.0.2.src

x86_64:
    ruby-2.0.0.648-36.amzn2.0.2.x86_64
    ruby-devel-2.0.0.648-36.amzn2.0.2.x86_64
    ruby-libs-2.0.0.648-36.amzn2.0.2.x86_64
    rubygem-bigdecimal-1.2.0-36.amzn2.0.2.x86_64
    rubygem-io-console-0.4.2-36.amzn2.0.2.x86_64
    rubygem-json-1.7.7-36.amzn2.0.2.x86_64
    rubygem-psych-2.0.0-36.amzn2.0.2.x86_64
    ruby-tcltk-2.0.0.648-36.amzn2.0.2.x86_64
    ruby-debuginfo-2.0.0.648-36.amzn2.0.2.x86_64