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 severity
Medium
CVSS v3 Base Score
7.0
See breakdown

Affected Packages

Platform Package Release Date Advisory Status
Amazon Linux 2 - Core ruby 2021-05-20 ALAS2-2021-1641 Fixed
Amazon Linux 2 - Ruby2.6 Extra ruby 2023-08-21 ALAS2RUBY2.6-2023-005 Fixed
Amazon Linux 2 - Ruby3.0 Extra ruby 2023-08-21 ALAS2RUBY3.0-2023-006 Fixed
Amazon Linux 1 ruby20 2021-05-20 ALAS-2021-1505 Fixed
Amazon Linux 1 ruby24 2021-05-20 ALAS-2021-1506 Fixed

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