GCVE Workshop - 22 September 2026 (14:00-18:00), Luxembourg Before The Vulnopticon Conference - Registration

OESA-2021-1306 (CVE-2021-31799)

Vulnerability from osv_openeuler – Published: 2021-08-06 11:04 – Updated: 2026-08-06 11:04 – Source website
VLAI
Summary
ruby security update
Details

Ruby is a fast and easy interpreted scripting language for object-oriented programming. It has many functions for processing text Files and perform system management tasks (such as Perl).

Security Fix(es):

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)

An issue was discovered in Ruby through 2.6.7, 2.7.x through 2.7.3, and 3.x through 3.0.1. A malicious FTP server can use the PASV response to trick Net::FTP into connecting back to a given IP address and port. This potentially makes curl extract information about services that are otherwise private and not disclosed (e.g., the attacker can conduct port scans and service banner extractions).(CVE-2021-31810)

An issue was discovered in Ruby through 2.6.7, 2.7.x through 2.7.3, and 3.x through 3.0.1. Net::IMAP does not raise an exception when StartTLS fails with an an unknown response, which might allow man-in-the-middle attackers to bypass the TLS protections by leveraging a network position between the client and the registry to block the StartTLS command, aka a "StartTLS stripping attack."(CVE-2021-32066)


{
  "affected": [
    {
      "ecosystem_specific": {
        "aarch64": [
          "ruby-2.5.8-114.oe1.aarch64.rpm",
          "rubygem-io-console-0.4.6-114.oe1.aarch64.rpm",
          "rubygem-bigdecimal-1.3.4-114.oe1.aarch64.rpm",
          "ruby-devel-2.5.8-114.oe1.aarch64.rpm",
          "ruby-debugsource-2.5.8-114.oe1.aarch64.rpm",
          "rubygem-json-2.1.0-114.oe1.aarch64.rpm",
          "ruby-debuginfo-2.5.8-114.oe1.aarch64.rpm",
          "rubygem-psych-3.0.2-114.oe1.aarch64.rpm",
          "rubygem-openssl-2.1.2-114.oe1.aarch64.rpm"
        ],
        "noarch": [
          "rubygem-xmlrpc-0.3.0-114.oe1.noarch.rpm",
          "rubygem-test-unit-3.2.7-114.oe1.noarch.rpm",
          "ruby-irb-2.5.8-114.oe1.noarch.rpm",
          "rubygem-net-telnet-0.1.1-114.oe1.noarch.rpm",
          "rubygem-rake-12.3.0-114.oe1.noarch.rpm",
          "ruby-help-2.5.8-114.oe1.noarch.rpm",
          "rubygems-2.7.6-114.oe1.noarch.rpm",
          "rubygem-did_you_mean-1.2.0-114.oe1.noarch.rpm",
          "rubygem-rdoc-6.0.1.1-114.oe1.noarch.rpm",
          "rubygem-power_assert-1.1.1-114.oe1.noarch.rpm",
          "rubygem-minitest-5.10.3-114.oe1.noarch.rpm",
          "rubygems-devel-2.7.6-114.oe1.noarch.rpm"
        ],
        "src": [
          "ruby-2.5.8-114.oe1.src.rpm"
        ],
        "x86_64": [
          "rubygem-json-2.1.0-114.oe1.x86_64.rpm",
          "ruby-devel-2.5.8-114.oe1.x86_64.rpm",
          "rubygem-bigdecimal-1.3.4-114.oe1.x86_64.rpm",
          "rubygem-io-console-0.4.6-114.oe1.x86_64.rpm",
          "rubygem-psych-3.0.2-114.oe1.x86_64.rpm",
          "ruby-2.5.8-114.oe1.x86_64.rpm",
          "ruby-debuginfo-2.5.8-114.oe1.x86_64.rpm",
          "rubygem-openssl-2.1.2-114.oe1.x86_64.rpm",
          "ruby-debugsource-2.5.8-114.oe1.x86_64.rpm"
        ]
      },
      "package": {
        "ecosystem": "openEuler:20.03-LTS-SP1",
        "name": "ruby",
        "purl": "pkg:rpm/openEuler/ruby\u0026distro=openEuler-20.03-LTS-SP1"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "2.5.8-114.oe1"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    },
    {
      "ecosystem_specific": {
        "aarch64": [
          "rubygem-psych-3.0.2-114.oe1.aarch64.rpm",
          "rubygem-io-console-0.4.6-114.oe1.aarch64.rpm",
          "ruby-devel-2.5.8-114.oe1.aarch64.rpm",
          "ruby-2.5.8-114.oe1.aarch64.rpm",
          "rubygem-json-2.1.0-114.oe1.aarch64.rpm",
          "rubygem-bigdecimal-1.3.4-114.oe1.aarch64.rpm",
          "rubygem-openssl-2.1.2-114.oe1.aarch64.rpm",
          "ruby-debugsource-2.5.8-114.oe1.aarch64.rpm",
          "ruby-debuginfo-2.5.8-114.oe1.aarch64.rpm"
        ],
        "noarch": [
          "rubygem-rake-12.3.0-114.oe1.noarch.rpm",
          "ruby-help-2.5.8-114.oe1.noarch.rpm",
          "rubygem-power_assert-1.1.1-114.oe1.noarch.rpm",
          "ruby-irb-2.5.8-114.oe1.noarch.rpm",
          "rubygem-did_you_mean-1.2.0-114.oe1.noarch.rpm",
          "rubygem-minitest-5.10.3-114.oe1.noarch.rpm",
          "rubygem-xmlrpc-0.3.0-114.oe1.noarch.rpm",
          "rubygem-rdoc-6.0.1.1-114.oe1.noarch.rpm",
          "rubygem-net-telnet-0.1.1-114.oe1.noarch.rpm",
          "rubygem-test-unit-3.2.7-114.oe1.noarch.rpm",
          "rubygems-2.7.6-114.oe1.noarch.rpm",
          "rubygems-devel-2.7.6-114.oe1.noarch.rpm"
        ],
        "src": [
          "ruby-2.5.8-114.oe1.src.rpm"
        ],
        "x86_64": [
          "rubygem-json-2.1.0-114.oe1.x86_64.rpm",
          "ruby-2.5.8-114.oe1.x86_64.rpm",
          "rubygem-bigdecimal-1.3.4-114.oe1.x86_64.rpm",
          "rubygem-openssl-2.1.2-114.oe1.x86_64.rpm",
          "rubygem-psych-3.0.2-114.oe1.x86_64.rpm",
          "ruby-devel-2.5.8-114.oe1.x86_64.rpm",
          "ruby-debugsource-2.5.8-114.oe1.x86_64.rpm",
          "ruby-debuginfo-2.5.8-114.oe1.x86_64.rpm",
          "rubygem-io-console-0.4.6-114.oe1.x86_64.rpm"
        ]
      },
      "package": {
        "ecosystem": "openEuler:20.03-LTS-SP2",
        "name": "ruby",
        "purl": "pkg:rpm/openEuler/ruby\u0026distro=openEuler-20.03-LTS-SP2"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "2.5.8-114.oe1"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "severity": "High"
  },
  "details": "Ruby is a fast and easy interpreted scripting language for object-oriented programming. It has many functions for processing text Files and perform system management tasks (such as Perl).\r\n\r\nSecurity Fix(es):\r\n\r\nIn 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)\r\n\r\nAn issue was discovered in Ruby through 2.6.7, 2.7.x through 2.7.3, and 3.x through 3.0.1. A malicious FTP server can use the PASV response to trick Net::FTP into connecting back to a given IP address and port. This potentially makes curl extract information about services that are otherwise private and not disclosed (e.g., the attacker can conduct port scans and service banner extractions).(CVE-2021-31810)\r\n\r\nAn issue was discovered in Ruby through 2.6.7, 2.7.x through 2.7.3, and 3.x through 3.0.1. Net::IMAP does not raise an exception when StartTLS fails with an an unknown response, which might allow man-in-the-middle attackers to bypass the TLS protections by leveraging a network position between the client and the registry to block the StartTLS command, aka a \u0026quot;StartTLS stripping attack.\u0026quot;(CVE-2021-32066)",
  "id": "OESA-2021-1306",
  "modified": "2026-08-06T11:04:32Z",
  "published": "2021-08-06T11:04:32Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://openeuler.org/en/security/safety-bulletin/detail.html?id=openEuler-SA-2021-1306"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2021-31799"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2021-31810"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2021-32066"
    }
  ],
  "schema_version": "1.7.2",
  "severity": [
    {
      "score": "CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H",
      "type": "CVSS_V3"
    }
  ],
  "summary": "ruby security update",
  "upstream": [
    "CVE-2021-31799",
    "CVE-2021-31810",
    "CVE-2021-32066"
  ]
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.

Loading…

Detection rules are retrieved from Rulezet.

Loading…

Loading…

Related by attack behaviour

Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.


Loading…