CVSS2
Attack Vector
LOCAL
Attack Complexity
MEDIUM
Authentication
NONE
Confidentiality Impact
PARTIAL
Integrity Impact
PARTIAL
Availability Impact
PARTIAL
AV:L/AC:M/Au:N/C:P/I:P/A:P
CVSS3
Attack Vector
LOCAL
Attack Complexity
HIGH
Privileges Required
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality Impact
HIGH
Integrity Impact
HIGH
Availability Impact
HIGH
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS
Percentile
28.6%
Issue Overview:
RDoc before version 6.3.1 used to call Kernel#open to open a local file. If a Ruby project has a file whose name starts with “|” and ends with “tags”, the command following the pipe character is executed. A malicious Ruby project could exploit it to run an arbitrary command execution against a user who attempts to run the rdoc command. (CVE-2021-31799)
Affected Packages:
ruby20
Issue Correction:
Run yum update ruby20 to update your system.
New Packages:
i686:
rubygem20-io-console-0.4.2-2.40.amzn1.i686
rubygem20-bigdecimal-1.2.0-2.40.amzn1.i686
ruby20-2.0.0.648-2.40.amzn1.i686
rubygem20-psych-2.0.0-2.40.amzn1.i686
ruby20-debuginfo-2.0.0.648-2.40.amzn1.i686
ruby20-libs-2.0.0.648-2.40.amzn1.i686
ruby20-devel-2.0.0.648-2.40.amzn1.i686
noarch:
rubygems20-devel-2.0.14.1-2.40.amzn1.noarch
rubygems20-2.0.14.1-2.40.amzn1.noarch
ruby20-irb-2.0.0.648-2.40.amzn1.noarch
ruby20-doc-2.0.0.648-2.40.amzn1.noarch
src:
ruby20-2.0.0.648-2.40.amzn1.src
x86_64:
ruby20-libs-2.0.0.648-2.40.amzn1.x86_64
rubygem20-psych-2.0.0-2.40.amzn1.x86_64
ruby20-2.0.0.648-2.40.amzn1.x86_64
ruby20-debuginfo-2.0.0.648-2.40.amzn1.x86_64
rubygem20-io-console-0.4.2-2.40.amzn1.x86_64
ruby20-devel-2.0.0.648-2.40.amzn1.x86_64
rubygem20-bigdecimal-1.2.0-2.40.amzn1.x86_64
Red Hat: CVE-2021-31799
Mitre: CVE-2021-31799
OS | Version | Architecture | Package | Version | Filename |
---|---|---|---|---|---|
Amazon Linux | 1 | i686 | rubygem20-io-console | < 0.4.2-2.40.amzn1 | rubygem20-io-console-0.4.2-2.40.amzn1.i686.rpm |
Amazon Linux | 1 | i686 | rubygem20-bigdecimal | < 1.2.0-2.40.amzn1 | rubygem20-bigdecimal-1.2.0-2.40.amzn1.i686.rpm |
Amazon Linux | 1 | i686 | ruby20 | < 2.0.0.648-2.40.amzn1 | ruby20-2.0.0.648-2.40.amzn1.i686.rpm |
Amazon Linux | 1 | i686 | rubygem20-psych | < 2.0.0-2.40.amzn1 | rubygem20-psych-2.0.0-2.40.amzn1.i686.rpm |
Amazon Linux | 1 | i686 | ruby20-debuginfo | < 2.0.0.648-2.40.amzn1 | ruby20-debuginfo-2.0.0.648-2.40.amzn1.i686.rpm |
Amazon Linux | 1 | i686 | ruby20-libs | < 2.0.0.648-2.40.amzn1 | ruby20-libs-2.0.0.648-2.40.amzn1.i686.rpm |
Amazon Linux | 1 | i686 | ruby20-devel | < 2.0.0.648-2.40.amzn1 | ruby20-devel-2.0.0.648-2.40.amzn1.i686.rpm |
Amazon Linux | 1 | noarch | rubygems20-devel | < 2.0.14.1-2.40.amzn1 | rubygems20-devel-2.0.14.1-2.40.amzn1.noarch.rpm |
Amazon Linux | 1 | noarch | rubygems20 | < 2.0.14.1-2.40.amzn1 | rubygems20-2.0.14.1-2.40.amzn1.noarch.rpm |
Amazon Linux | 1 | noarch | ruby20-irb | < 2.0.0.648-2.40.amzn1 | ruby20-irb-2.0.0.648-2.40.amzn1.noarch.rpm |
CVSS2
Attack Vector
LOCAL
Attack Complexity
MEDIUM
Authentication
NONE
Confidentiality Impact
PARTIAL
Integrity Impact
PARTIAL
Availability Impact
PARTIAL
AV:L/AC:M/Au:N/C:P/I:P/A:P
CVSS3
Attack Vector
LOCAL
Attack Complexity
HIGH
Privileges Required
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality Impact
HIGH
Integrity Impact
HIGH
Availability Impact
HIGH
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS
Percentile
28.6%