CVE-2021-31799

high
New! CVE Severity Now Using CVSS v3

The calculated severity for CVEs has been updated to use CVSS v3 by default. CVEs that do not have a CVSS v3 score will fall back CVSS v2 for calculating severity. Severity display preferences can be toggled in the settings dropdown.

Description

In RDoc 3.11 through 6.x before 6.3.1, as distributed with Ruby through 3.0.1, it is possible to execute arbitrary code via | and tags in a filename.

References

https://www.ruby-lang.org/en/news/2021/05/02/os-command-injection-in-rdoc/

https://security-tracker.debian.org/tracker/CVE-2021-31799

https://security.netapp.com/advisory/ntap-20210902-0004/

Details

Source: MITRE

Published: 2021-07-30

Updated: 2021-09-02

Type: CWE-77

Risk Information

CVSS v2

Base Score: 4.4

Vector: AV:L/AC:M/Au:N/C:P/I:P/A:P

Impact Score: 6.4

Exploitability Score: 3.4

Severity: MEDIUM

CVSS v3

Base Score: 7

Vector: CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H

Impact Score: 5.9

Exploitability Score: 1

Severity: HIGH

Tenable Plugins

View all (10 total)

IDNameProductFamilySeverity
153649EulerOS 2.0 SP8 : ruby (EulerOS-SA-2021-2486)NessusHuawei Local Security Checks
high
153513RHEL 7 : rh-ruby27-ruby (RHSA-2021:3559)NessusRed Hat Local Security Checks
high
152359CentOS 8 : ruby:2.7 (CESA-2021:3020)NessusCentOS Local Security Checks
high
152354RHEL 8 : ruby:2.7 (RHSA-2021:3020)NessusRed Hat Local Security Checks
high
152264Oracle Linux 8 : ruby:2.7 (ELSA-2021-3020)NessusOracle Linux Local Security Checks
high
151924Ubuntu 16.04 LTS / 18.04 LTS / 20.04 LTS / 20.10 / 21.04 : Ruby vulnerabilities (USN-5020-1)NessusUbuntu Local Security Checks
high
151778FreeBSD : Ruby -- multiple vulnerabilities (7ed5779c-e4c7-11eb-91d7-08002728f74c)NessusFreeBSD Local Security Checks
high
149866Amazon Linux AMI : ruby24 (ALAS-2021-1506)NessusAmazon Linux Local Security Checks
high
149862Amazon Linux AMI : ruby20 (ALAS-2021-1505)NessusAmazon Linux Local Security Checks
high
149249FreeBSD : RDoc -- command injection vulnerability (57027417-ab7f-11eb-9596-080027f515ea)NessusFreeBSD Local Security Checks
high