-----BEGIN PGP SIGNED MESSAGE-----
AUSCERT External Security Bulletin Redistribution
A command injection vulnerability in RDoc
3 May 2021
AusCERT Security Bulletin Summary
Operating System: UNIX variants (UNIX, Linux, OSX)
Impact/Access: Execute Arbitrary Code/Commands -- Remote with User Interaction
CVE Names: CVE-2021-31799
Comment: This advisory references vulnerabilities in products which run on
different platforms. It is recommended that administrators
running Ruby check for an updated version of the software for their
- --------------------------BEGIN INCLUDED TEXT--------------------
CVE-2021-31799: A command injection vulnerability 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.
The following vulnerability has been reported.
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.
o 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
Thanks to Alexandr Savca for reporting the issue.
o Originally published at 2021-05-02 09:00:00 UTC
- --------------------------END INCLUDED TEXT--------------------
You have received this e-mail bulletin as a result of your organisation's
registration with AusCERT. The mailing list you are subscribed to is
maintained within your organisation, so if you do not wish to continue
receiving these bulletins you should contact your local IT manager. If
you do not know who that is, please send an email to firstname.lastname@example.org
and we will forward your request to the appropriate person.
NOTE: Third Party Rights
This security bulletin is provided as a service to AusCERT's members. As
AusCERT did not write the document quoted above, AusCERT has had no control
over its content. The decision to follow or act on information or advice
contained in this security bulletin is the responsibility of each user or
organisation, and should be considered in accordance with your organisation's
site policies and procedures. AusCERT takes no responsibility for consequences
which may arise from following or acting on information or advice contained in
this security bulletin.
NOTE: This is only the original release of the security bulletin. It may
not be updated when updates to the original are made. If downloading at
a later date, it is recommended that the bulletin is retrieved directly
from the author's website to ensure that the information is still current.
Contact information for the authors of the original document is included
in the Security Bulletin above. If you have any questions or need further
information, please contact them directly.
Previous advisories and external security bulletins can be retrieved from:
Australian Computer Emergency Response Team
The University of Queensland
Internet Email: email@example.com
Facsimile: (07) 3365 7031
Telephone: (07) 3365 4417 (International: +61 7 3365 4417)
AusCERT personnel answer during Queensland business hours
which are GMT+10:00 (AEST).
On call after hours for member emergencies only.
-----BEGIN PGP SIGNATURE-----
-----END PGP SIGNATURE-----