Command Injection Affecting rdoc package, versions >=3.11, <6.3.0
Threat Intelligence
EPSS
0.07% (30th
percentile)
Do your applications use this vulnerable package?
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applications- Snyk ID SNYK-RUBY-RDOC-1279617
- published 5 May 2021
- disclosed 5 May 2021
- credit Alexandr Savca
Introduced: 5 May 2021
CVE-2021-31799 Open this link in a new tabHow to fix?
Upgrade rdoc
to version 6.3.0 or higher.
Overview
Affected versions of this package are vulnerable to Command Injection. It used to call Kernel#open
to open a local file. If a Ruby project hasa file whose name starts with |
and ends with tags
, the command followingthe pipe character is executed. A malicious Ruby project could exploit it torun an arbitrary command execution against a user who attempts to run rdoc
command.
References
CVSS Scores
version 3.1