CVE-2021-31799

Published on: 07/29/2021 12:00:00 AM UTC

Last Modified on: 10/18/2021 12:56:00 PM UTC

CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H

Certain versions of Debian Linux from Debian contain the following vulnerability:

In RDoc 3.11 through 6.x before 6.3.1, as distributed with Ruby through 3.0.1, it is possible to execute arbitrary code via | and tags in a filename.

  • CVE-2021-31799 has been assigned by URL Logo [email protected] to track the vulnerability - currently rated as HIGH severity.

CVSS3 Score: 7 - HIGH

Attack
Vector
Attack
Complexity
Privileges
Required
User
Interaction
LOCAL HIGH LOW NONE
Scope Confidentiality
Impact
Integrity
Impact
Availability
Impact
UNCHANGED HIGH HIGH HIGH

CVSS2 Score: 4.4 - MEDIUM

Access
Vector
Access
Complexity
Authentication
LOCAL MEDIUM NONE
Confidentiality
Impact
Integrity
Impact
Availability
Impact
PARTIAL PARTIAL PARTIAL

CVE References

Description Tags Link
CVE-2021-31799: A command injection vulnerability in RDoc www.ruby-lang.org
text/html
URL Logo MISC www.ruby-lang.org/en/news/2021/05/02/os-command-injection-in-rdoc/
August 2021 Ruby Vulnerabilities in NetApp Products | NetApp Product Security security.netapp.com
text/html
URL Logo CONFIRM security.netapp.com/advisory/ntap-20210902-0004/
CVE-2021-31799 security-tracker.debian.org
text/html
URL Logo MISC security-tracker.debian.org/tracker/CVE-2021-31799
[SECURITY] [DLA 2780-1] ruby2.3 security update lists.debian.org
text/html
URL Logo MLIST [debian-lts-announce] 20211013 [SECURITY] [DLA 2780-1] ruby2.3 security update

Related QID Numbers

  • 159326 Oracle Enterprise Linux Security Update for ruby:2.7 (ELSA-2021-3020)
  • 178838 Debian Security Update for ruby2.3 (DLA 2780-1)
  • 198440 Ubuntu Security Notification for Ruby vulnerabilities (USN-5020-1)
  • 239536 Red Hat Update for ruby:2.7 (RHSA-2021:3020)
  • 239644 Red Hat Update for rh-ruby27-ruby (RHSA-2021:3559)
  • 239651 Red Hat Update for rh-ruby27-ruby (RHSA-2021:3559)
  • 239736 Red Hat Update for rh-ruby30-ruby (RHSA-2021:3982)
  • 281749 Fedora Security Update for ruby (FEDORA-2021-36cdab1f8d)
  • 352363 Amazon Linux Security Advisory for ruby24: ALAS-2021-1506
  • 352364 Amazon Linux Security Advisory for ruby20: ALAS-2021-1505
  • 670728 EulerOS Security Update for ruby (EulerOS-SA-2021-2486)
  • 670835 EulerOS Security Update for ruby (EulerOS-SA-2021-2721)
  • 670875 EulerOS Security Update for ruby (EulerOS-SA-2021-2696)
  • 671024 EulerOS Security Update for ruby (EulerOS-SA-2021-2673)
  • 690153 Free Berkeley Software Distribution (FreeBSD) Security Update for rdoc (57027417-ab7f-11eb-9596-080027f515ea)
  • 751413 SUSE Enterprise Linux Security Update for ruby2.5 (SUSE-SU-2021:3838-1)
  • 751423 SUSE Enterprise Linux Security Update for ruby2.1 (SUSE-SU-2021:3837-1)
  • 751432 OpenSUSE Security Update for ruby2.5 (openSUSE-SU-2021:3838-1)
  • 751459 OpenSUSE Security Update for ruby2.5 (openSUSE-SU-2021:1535-1)
  • 940383 AlmaLinux Security Update for ruby:2.7 (ALSA-2021:3020)

Exploit/POC from Github

PoC for exploiting CVE-2021-31799 : In RDoc 3.11 through 6.x before 6.3.1, as distributed with Ruby through 3.0.1, it…

Known Affected Configurations (CPE V2.3)

Type Vendor Product Version Update Edition Language
Operating
System
DebianDebian Linux10.0AllAllAll
Operating
System
DebianDebian Linux9.0AllAllAll
ApplicationRuby-langRdocAllAllAllAll
ApplicationRuby-langRdocAllAllAllAll
ApplicationRuby-langRubyAllAllAllAll
  • cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*:
  • cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*:
  • cpe:2.3:a:ruby-lang:rdoc:*:*:*:*:*:*:*:*:
  • cpe:2.3:a:ruby-lang:rdoc:*:*:*:*:*:ruby:*:*:
  • cpe:2.3:a:ruby-lang:ruby:*:*:*:*:*:*:*:*:

Social Mentions

Source Title Posted (UTC)
Twitter Icon @tekkie CVE-2021-31799: A command injection vulnerability in RDoc ruby-lang.org/en/news/2021/0… 2021-05-02 14:33:09
Twitter Icon @rubylangorg CVE-2021-31799: A command injection vulnerability in RDoc ift.tt/338rHxO 2021-05-02 14:40:08
Twitter Icon @dev_talk Ruby: CVE-2021-31799: A command injection vulnerability in RDoc forum.devtalk.com/t/9264 #rubylang #devtalk 2021-05-02 15:01:34
Twitter Icon @rubylandnews Ruby News ➜ CVE-2021-31799: A command injection vulnerability in RDoc ruby-lang.org/en/news/2021/0… 2021-05-02 15:20:58
Twitter Icon @pink_bangbi あびゃ〜〜〜 / CVE-2021-31799: RDoc におけるコマンドインジェクションの脆弱性について - ruby-lang.org/ja/news/2021/0… 2021-05-02 15:33:24
Twitter Icon @railslinks CVE-2021-31799: A command injection vulnerability in RDoc #ruby #rails ruby-lang.org/en/news/2021/0… 2021-05-02 16:00:07
Twitter Icon @ybiquitous CVE-2021-31799がどうやってに修正されたか興味があったが、ruby/rdocリポジトリには反映されてなかった。 diffend.ioで修正確認できたけど、このあたりgem publishの仕組… twitter.com/i/web/status/1… 2021-05-03 02:13:07
Twitter Icon @Har_sia CVE-2021-31799 har-sia.info/CVE-2021-31799… #HarsiaInfo 2021-05-03 18:30:04
Twitter Icon @imabit_inc #RubyNews #Ruby #Automated | CVE-2021-31799: A command injection vulnerability in RDoc ruby-lang.org/en/news/2021/0… 2021-05-08 06:47:02
Twitter Icon @vigilance_fr [email protected] #Vulnérabilité de Ruby : exécution de code. vigilance.fr/vulnerabilite/… Références : #CVE-2021-31799. #veille https://t.co/iHgkh7CIjo 2021-07-22 15:09:04
Twitter Icon @vigilance_en [email protected] #Vulnerability of Ruby: code execution. vigilance.fr/vulnerability/… Identifiers: #CVE-2021-31799. #watch https://t.co/Fo7mEUIb6a 2021-07-22 15:09:05
Twitter Icon @CVEreport CVE-2021-31799 : In RDoc 3.11 through 6.x before 6.3.1, as distributed with Ruby through 3.0.1, it is possible to e… twitter.com/i/web/status/1… 2021-07-29 14:42:28
Twitter Icon @LinInfoSec Ruby - CVE-2021-31799: ruby-lang.org/en/news/2021/0… 2021-07-30 16:35:15
Reddit Logo Icon /r/ruby CVE-2021-31799: A command injection vulnerability in RDoc 2021-05-02 15:02:51
© CVE.report 2022 Twitter Nitter Twitter Viewer |

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

CVE.report and Source URL Uptime Status status.cve.report