ADVISORIES

Vulnerability

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 execute arbitrary code via | and tags in a filename.

42 advisories report this vulnerability, across 12 ecosystems.

Advisories

  • ALAS2-2021-1641

    Amazon Linux 2 2017.12 - ALAS2-2021-1641: medium priority package update for ruby

    Medium CVE-2020-10663CVE-2020-25613CVE-2021-31799 Amazon Linux Updated 17 February 2023
  • ALPINE-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 execute arbitrary code via | and tags in a filename.

    CVE-2021-31799 Alpine Updated 23 October 2026
  • ALPINE-EDGE-CVE-2021-31799
    CVE-2021-31799 Alpine Updated 18 November 2026
  • ALSA-2021:3020

    Important: ruby:2.7 security update

    CVE-2020-36327CVE-2021-31799CVE-2021-31810CVE-2021-32066 AlmaLinux Updated 29 October 2026
  • ALSA-2022:0543

    Important: ruby:2.6 security update

    CVE-2020-36327CVE-2021-31799CVE-2021-31810CVE-2021-32066 AlmaLinux Updated 29 October 2026
  • ALSA-2022:0672

    Moderate: ruby:2.5 security update

    CVE-2021-31799CVE-2021-31810CVE-2021-32066 AlmaLinux Updated 29 October 2026
  • DEBIAN-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 execute arbitrary code via | and tags in a filename.

    CVE-2021-31799 Debian Updated 24 November 2026
  • DLA-2780-1

    ruby2.3 - security update

    CVE-2021-31799CVE-2021-31810CVE-2021-32066 Debian Updated 20 November 2026
  • DSA-5066-1

    ruby2.5 - security update

    CVE-2021-28965CVE-2021-31799CVE-2021-31810CVE-2021-32066 Debian Updated 20 November 2026
  • ELSA-2021-3020

    ELSA-2021-3020: ruby:2.7 security update (IMPORTANT)

    Important CVE-2020-36327CVE-2021-31799CVE-2021-31810CVE-2021-32066 Oracle Linux Updated 6 August 2021
  • ELSA-2022-0543

    ELSA-2022-0543: ruby:2.6 security update (IMPORTANT)

    Important CVE-2020-36327CVE-2021-31799CVE-2021-31810CVE-2021-32066 Oracle Linux Updated 16 February 2022
  • ELSA-2022-0672

    ELSA-2022-0672: ruby:2.5 security update (MODERATE)

    Moderate CVE-2021-31799CVE-2021-31810CVE-2021-32066 Oracle Linux Updated 28 February 2022
  • ELSA-2022-0672-1

    ELSA-2022-0672-1: ruby:2.5 security update (MODERATE)

    Moderate CVE-2021-31799CVE-2021-31810CVE-2021-32066 Oracle Linux Updated 8 March 2022
  • GHSA-ggxm-pgc9-g7fp

    Arbitrary Code Execution in Rdoc

    High CVE-2021-31799 RubyGems Updated 14 November 2024
  • OESA-2021-1306

    ruby security update

    High CVE-2021-31799CVE-2021-31810CVE-2021-32066 openEuler Updated 18 August 2026
  • RHSA-2021:3020

    Red Hat Security Advisory: ruby:2.7 security update

    CVE-2020-36327CVE-2021-31799CVE-2021-31810CVE-2021-32066 Red Hat Updated 23 November 2026
  • RHSA-2021:3559

    Red Hat Security Advisory: rh-ruby27-ruby security update

    CVE-2020-36327CVE-2021-31799CVE-2021-31810CVE-2021-32066 Red Hat Updated 23 November 2026
  • RHSA-2021:3982

    Red Hat Security Advisory: rh-ruby30-ruby security update

    CVE-2020-36327CVE-2021-31799CVE-2021-31810CVE-2021-32066 Red Hat Updated 23 November 2026
  • RHSA-2022:0543

    Red Hat Security Advisory: ruby:2.6 security update

    CVE-2020-36327CVE-2021-31799CVE-2021-31810CVE-2021-32066 Red Hat Updated 23 November 2026
  • RHSA-2022:0544

    Red Hat Security Advisory: ruby:2.6 security update

    CVE-2020-36327CVE-2021-31799CVE-2021-31810CVE-2021-32066 Red Hat Updated 23 November 2026
  • RHSA-2022:0581

    Red Hat Security Advisory: ruby:2.6 security update

    CVE-2019-15845CVE-2019-16201CVE-2019-16254CVE-2019-16255 Red Hat Updated 23 November 2026
  • RHSA-2022:0582

    Red Hat Security Advisory: ruby:2.6 security update

    CVE-2019-15845CVE-2019-16201CVE-2019-16254CVE-2019-16255 Red Hat Updated 23 November 2026
  • RHSA-2022:0672

    Red Hat Security Advisory: ruby:2.5 security update

    CVE-2021-31799CVE-2021-31810CVE-2021-32066 Red Hat Updated 13 November 2026
  • RHSA-2022:0708

    Red Hat Security Advisory: rh-ruby26-ruby security, bug fix, and enhancement update

    CVE-2020-36327CVE-2021-31799CVE-2021-31810CVE-2021-32066 Red Hat Updated 23 November 2026
  • RHVEX-CVE-2021-31799

    rubygem-rdoc: Command injection vulnerability in RDoc

    Moderate CVE-2021-31799 Red Hat Updated 7 November 2026
  • RLSA-2021:3020

    Important: ruby:2.7 security update

    CVE-2020-36327CVE-2021-31799CVE-2021-31810CVE-2021-32066 Rocky Linux Updated 4 February 2026
  • RLSA-2022:0543

    Important: ruby:2.6 security update

    CVE-2020-36327CVE-2021-31799CVE-2021-31810CVE-2021-32066 Rocky Linux Updated 5 February 2026
  • RLSA-2022:0672

    Moderate: ruby:2.5 security update

    CVE-2021-31799CVE-2021-31810CVE-2021-32066 Rocky Linux Updated 5 February 2026
  • SUSE-SU-2021:3837-1

    Security update for ruby2.1

    CVE-2020-25613CVE-2021-31799CVE-2021-31810CVE-2021-32066 SUSE Updated 4 February 2026
  • SUSE-SU-2021:3838-1

    Security update for ruby2.5

    CVE-2021-31799CVE-2021-31810CVE-2021-32066 SUSE Updated 4 February 2026
  • SUSE-SU-2022:1512-1

    Security update for ruby2.5

    CVE-2021-31799CVE-2021-31810CVE-2021-32066CVE-2021-41817 SUSEopenSUSE Updated 4 February 2026
  • UBUNTU-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 execute arbitrary code via | and tags in a filename.

    CVE-2021-31799 Ubuntu Updated 22 April 2026
  • USN-5020-1

    ruby2.3, ruby2.5, ruby2.7 vulnerabilities

    CVE-2021-31799CVE-2021-31810CVE-2021-32066 Ubuntu Updated 25 June 2026
  • openSUSE-SU-2021:1535-1

    Security update for ruby2.5

    CVE-2021-31799CVE-2021-31810CVE-2021-32066 openSUSE Updated 4 February 2026
  • openSUSE-SU-2021:3838-1

    Security update for ruby2.5

    CVE-2021-31799CVE-2021-31810CVE-2021-32066 openSUSE Updated 4 February 2026
  • openSUSE-SU-2024:11622-1

    libruby2_7-2_7-2.7.4-1.1 on GA media

    CVE-2021-31799CVE-2021-31810CVE-2021-32066 openSUSE Updated 4 February 2026
  • openSUSE-SU-2024:11623-1

    libruby3_0-3_0-3.0.2-1.1 on GA media

    CVE-2021-31799CVE-2021-31810CVE-2021-32066 openSUSE Updated 4 February 2026
  • openSUSE-SU-2024:11786-1

    libruby3_1-3_1-3.1.0-1.1 on GA media

    CVE-2020-10663CVE-2020-10933CVE-2021-28965CVE-2021-31799 openSUSE Updated 4 February 2026
  • openSUSE-SU-2024:12712-1

    libruby3_2-3_2-3.2.1-1.1 on GA media

    CVE-2020-10663CVE-2020-10933CVE-2021-28965CVE-2021-31799 openSUSE Updated 4 February 2026
  • openSUSE-SU-2024:13623-1

    libruby3_3-3_3-3.3.0-1.2 on GA media

    CVE-2020-10663CVE-2020-10933CVE-2021-28965CVE-2021-31799 openSUSE Updated 4 February 2026
  • openSUSE-SU-2025:14621-1

    libruby3_4-3_4-3.4.1-1.1 on GA media

    CVE-2020-10663CVE-2020-10933CVE-2021-28965CVE-2021-31799 openSUSE Updated 4 February 2026
  • openSUSE-SU-2025:15819-1

    libruby4_0-4_0-4.0.0~preview2-1.1 on GA media

    CVE-2020-10663CVE-2020-10933CVE-2021-28965CVE-2021-31799 openSUSE Updated 4 February 2026

References