CVE-2021-31810

Summary

CVECVE-2021-31810
StatePUBLIC
Assigner[email protected]
Source PriorityCVE Program / NVD first with legacy fallback
Published2021-07-13 13:15:00 UTC
Updated2024-01-24 05:15:00 UTC
DescriptionAn 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).

Risk And Classification

Problem Types: NVD-CWE-Other

NVD Known Affected Configurations (CPE 2.3)

TypeVendorProductVersionUpdateEditionLanguage
Operating System Debian Debian Linux 9.0 All All All
Operating System Fedoraproject Fedora 34 All All All
Application Oracle Jd Edwards Enterpriseone Tools All All All All
Application Ruby-lang Ruby All All All All
Application Ruby-lang Ruby All All All All
Application Ruby-lang Ruby All All All All

References

ReferenceSourceLinkTags
Oracle Critical Patch Update Advisory - April 2022 MISC www.oracle.com
HackerOne MISC hackerone.com
[SECURITY] Fedora 34 Update: ruby-3.0.2-149.fc34 - package-announce - Fedora Mailing-Lists FEDORA lists.fedoraproject.org
Ruby: Multiple vulnerabilities (GLSA 202401-27) — Gentoo security security.gentoo.org
CVE-2021-31810: Trusting FTP PASV responses vulnerability in Net::FTP MISC www.ruby-lang.org
[SECURITY] [DLA 2780-1] ruby2.3 security update MLIST lists.debian.org
[SECURITY] [DLA 3408-1] jruby security update MLIST lists.debian.org
CVE-2021-31810 Ruby Vulnerability in NetApp Products | NetApp Product Security CONFIRM security.netapp.com
[SECURITY] Fedora 34 Update: ruby-3.0.2-149.fc34 - package-announce - Fedora Mailing-Lists lists.fedoraproject.org
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

Legacy QID Mappings

  • 159326 Oracle Enterprise Linux Security Update for ruby:2.7 (ELSA-2021-3020)
  • 159635 Oracle Enterprise Linux Security Update for ruby:2.6 (ELSA-2022-0543)
  • 159682 Oracle Enterprise Linux Security Update for ruby:2.5 (ELSA-2022-0672)
  • 159692 Oracle Enterprise Linux Security Update for ruby:2.5 (ELSA-2022-0672-1)
  • 178838 Debian Security Update for ruby2.3 (DLA 2780-1)
  • 179051 Debian Security Update for ruby2.5 (DSA 5066-1)
  • 179891 Debian Security Update for ruby2.7 (CVE-2021-31810)
  • 181757 Debian Security Update for jruby (DLA 3408-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)
  • 240090 Red Hat Update for ruby:2.6 (RHSA-2022:0544)
  • 240092 Red Hat Update for ruby:2.6 (RHSA-2022:0543)
  • 240108 Red Hat Update for ruby:2.5 (RHSA-2022:0672)
  • 240116 Red Hat Update for rh-ruby26-ruby security (RHSA-2022:0708)
  • 240156 Red Hat Update for ruby:2.6 (RHSA-2022:0582)
  • 281749 Fedora Security Update for ruby (FEDORA-2021-36cdab1f8d)
  • 356177 Amazon Linux Security Advisory for ruby : ALASRUBY3.0-2023-005
  • 356272 Amazon Linux Security Advisory for ruby : ALASRUBY2.6-2023-004
  • 356464 Amazon Linux Security Advisory for ruby : ALAS2RUBY2.6-2023-004
  • 356497 Amazon Linux Security Advisory for ruby : ALAS2RUBY3.0-2023-005
  • 377094 Alibaba Cloud Linux Security Update for ruby:2.7 (ALINUX3-SA-2021:0054)
  • 500616 Alpine Linux Security Update for ruby
  • 504376 Alpine Linux Security Update for ruby
  • 670835 EulerOS Security Update for ruby (EulerOS-SA-2021-2721)
  • 670875 EulerOS Security Update for ruby (EulerOS-SA-2021-2696)
  • 670957 EulerOS Security Update for ruby (EulerOS-SA-2021-2643)
  • 671404 EulerOS Security Update for ruby (EulerOS-SA-2022-1337)
  • 710844 Gentoo Linux Ruby Multiple Vulnerabilities (GLSA 202401-27)
  • 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)
  • 752103 SUSE Enterprise Linux Security Update for ruby2.5 (SUSE-SU-2022:1512-1)
  • 940383 AlmaLinux Security Update for ruby:2.7 (ALSA-2021:3020)
  • 940455 AlmaLinux Security Update for ruby:2.6 (ALSA-2022:0543)
  • 940459 AlmaLinux Security Update for ruby:2.5 (ALSA-2022:0672)
  • 960315 Rocky Linux Security Update for ruby:2.7 (RLSA-2021:3020)
  • 960814 Rocky Linux Security Update for ruby:2.6 (RLSA-2022:0543)
  • 960817 Rocky Linux Security Update for ruby:2.5 (RLSA-2022:0672)
© CVE.report 2026 |

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