FreeBSD : RDoc -- command injection vulnerability (57027417-ab7f-11eb-9596-080027f515ea)

high Nessus Plugin ID 149249

Language:

Synopsis

The remote FreeBSD host is missing a security-related update.

Description

Alexandr Savca reports :

RDoc 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 rdoc command.

Solution

Update the affected package.

See Also

http://www.nessus.org/u?eeaba14f

http://www.nessus.org/u?00c5f7be

Plugin Details

Severity: High

ID: 149249

File Name: freebsd_pkg_57027417ab7f11eb9596080027f515ea.nasl

Version: 1.4

Type: local

Published: 5/4/2021

Updated: 8/30/2021

Supported Sensors: Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 6.7

CVSS v2

Risk Factor: Medium

Base Score: 4.4

Temporal Score: 3.3

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

CVSS Score Source: CVE-2021-31799

CVSS v3

Risk Factor: High

Base Score: 7

Temporal Score: 6.1

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

Temporal Vector: CVSS:3.0/E:U/RL:O/RC:C

Vulnerability Information

CPE: p-cpe:/a:freebsd:freebsd:rubygem-rdoc, cpe:/o:freebsd:freebsd

Required KB Items: Host/local_checks_enabled, Host/FreeBSD/release, Host/FreeBSD/pkg_info

Exploit Ease: No known exploits are available

Patch Publication Date: 5/2/2021

Vulnerability Publication Date: 5/2/2021

Reference Information

CVE: CVE-2021-31799