PT-2021-4696 · Ruby+8 · Rdoc+8
Published
2021-05-02
·
Updated
2025-12-12
·
CVE-2021-31799
CVSS v3.1
7.0
High
| Vector | AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H |
Name of the Vulnerable Software and Affected Versions
RDoc versions 3.11 through 6.x before 6.3.1
Description
The issue is related to the RDoc documentation generator for the Ruby programming language, where it fails to properly sanitize data. This can be exploited to execute arbitrary code via | and tags in a filename. The vulnerability allows an attacker to execute arbitrary commands.
Recommendations
For RDoc versions 3.11 through 6.x before 6.3.1, update to version 6.3.1 or later to resolve the issue.
As a temporary workaround, consider restricting the use of the RDoc generator until a patch is available.
Avoid using | and tags in filenames for RDoc until the issue is resolved.
Exploit
Fix
Special Elements Injection
Command Injection
OS Command Injection
Found an issue in the description? Have something to add? Feel free to write us 👾
Related Identifiers
Affected Products
Almalinux
Astra Linux
Centos
Linuxmint
Rdoc
Red Hat
Rocky Linux
Suse
Ubuntu