CWE
74 77 78
Advisory Published
CVE Published
Advisory Published
Updated

CVE-2021-31799: Command Injection

First published: Sun May 02 2021(Updated: )

An operating system command injection flaw was found in RDoc. Using the rdoc command to generate documentation for a malicious Ruby source code could lead to execution of arbitrary commands with the privileges of the user running rdoc.

Credit: cve@mitre.org cve@mitre.org cve@mitre.org

Affected SoftwareAffected VersionHow to fix
rubygems/rdoc>=6.3.0<6.3.1
6.3.1
rubygems/rdoc>=6.2.0<6.2.1.1
6.2.1.1
rubygems/rdoc>=3.11<6.1.2.1
6.1.2.1
Debian Debian Linux=9.0
Debian Debian Linux=10.0
All of
Ruby-lang Rdoc>=3.11<6.3.1
Ruby-lang Ruby<=3.0.1
Oracle Jd Edwards Enterpriseone Tools<9.2.6.1
=9.0
=10.0
All of
>=3.11<6.3.1
<=3.0.1
<9.2.6.1
Ruby-lang Rdoc>=3.11<6.3.1
Ruby-lang Ruby<=3.0.1
redhat/rubygem-rdoc<6.3.1
6.3.1
redhat/ruby<3.0.2
3.0.2
redhat/ruby<2.7.4
2.7.4
redhat/ruby<2.6.8
2.6.8
redhat/rh-ruby27-ruby<0:2.7.4-130.el7
0:2.7.4-130.el7
redhat/rh-ruby30-ruby<0:3.0.2-148.el7
0:3.0.2-148.el7
redhat/rh-ruby26-ruby<0:2.6.9-120.el7
0:2.6.9-120.el7
debian/ruby2.5
2.5.5-3+deb10u4
2.5.5-3+deb10u6
debian/ruby2.7
2.7.4-1+deb11u1

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Reference Links

Frequently Asked Questions

  • What is CVE-2021-31799?

    CVE-2021-31799 is an operating system command injection vulnerability found in RDoc.

  • How does CVE-2021-31799 impact Ruby?

    CVE-2021-31799 allows an attacker to execute arbitrary commands with the privileges of the user running rdoc in Ruby through version 3.0.1.

  • What is the severity of CVE-2021-31799?

    CVE-2021-31799 has a severity rating of 7, indicating a high severity vulnerability.

  • How do I fix CVE-2021-31799?

    To fix CVE-2021-31799, update RDoc to version 6.3.1 or higher.

  • Where can I find more information about CVE-2021-31799?

    You can find more information about CVE-2021-31799 in the references provided: [Link 1](https://www.ruby-lang.org/en/news/2021/05/02/os-command-injection-in-rdoc/), [Link 2](https://github.com/ruby/rdoc/commit/a7f5d6ab88632b3b482fe10611382ff73d14eed7), [Link 3](https://www.ruby-lang.org/en/news/2021/07/07/ruby-3-0-2-released/).

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2024 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203