Ruby 3.0.2 has been released.
This release includes security fixes. Please check the topics below for details.
# Via asdf
Or via Docker
CVE-2021-31799: A command injection vulnerability in RDoc
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.
Run the following command to update RDoc to the latest version (
6.3.1 or later) to fix the vulnerability.
gem install rdoc
If you are using bundler, please add g
em "rdoc", ">= 6.3.1" to your