CVE-2021-31799

Public on 2021-05-20
Modified on 2022-12-01
Description

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.

Severity
Medium
See what this means
CVSS v3 Base Score
7.0
See breakdown

Affected Packages

Platform Package Release Date Advisory
Amazon Linux 2 ruby 2021-05-20 16:29 ALAS2-2021-1641
Amazon Linux 2 ruby 2023-08-21 20:59 ALAS2RUBY2.6-2023-005
Amazon Linux 2 ruby 2023-08-21 20:59 ALAS2RUBY3.0-2023-006
Amazon Linux 1 ruby20 2021-05-20 21:12 ALAS-2021-1505
Amazon Linux 1 ruby24 2021-05-20 21:12 ALAS-2021-1506

CVSS Scores

Score Type Score Vector
Amazon Linux CVSSv3 7.0 CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
NVD CVSSv2 4.4 AV:L/AC:M/Au:N/C:P/I:P/A:P
NVD CVSSv3 7.0 CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H