
====================================================================

                             CERT-Renater

                 Note d'Information No. 2021/VULN256
_____________________________________________________________________

DATE                : 03/05/2021

HARDWARE PLATFORM(S): /

OPERATING SYSTEM(S): Systems running RDoc versions prior to 6.3.1.

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


Posted by aycabta on 2 May 2021

There is a vulnerability about Command Injection in RDoc which is
bundled in Ruby. It is recommended that all Ruby users update RDoc to
the latest version that fixes this issue.


Details

The following vulnerability has been reported.

    CVE-2021-31799

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.

Ruby users whose version of RDoc is affected by this issue should update
to the latest version of RDoc.


Affected Versions

    All releases of RDoc from 3.11 to 6.3.0

How to Update

Run the following command to update RDoc to the latest version (6.3.1 or
later) to fix the vulnerability.

gem install rdoc


Credits

Thanks to Alexandr Savca for reporting the issue.


History

    Originally published at 2021-05-02 09:00:00 UTC


=========================================================
+ CERT-RENATER       |    tel : 01-53-94-20-44          +
+ 23/25 Rue Daviel   |    fax : 01-53-94-20-41          +
+ 75013 Paris        |    email:cert@support.renater.fr +
=========================================================




