Live threats

All CVEs / Ruby-lang

CVE-2021-31810Ruby-lang Ruby

Medium 5.8 No auth needed

Priority
50
CVSS 3.1
5.8
EPSS
3.1%
probability of exploitation in 30 days · percentile 88
Auth required
No
Published
Jul 13, 2021
Updated
Jun 17, 2026
Category
Application · Cross-platform
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:N

What happens

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).

Original NVD text.

What to do

  1. Apply the vendor's security update for Ruby.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected products (CPE)

VendorProductVersions
ruby-langruby≤ 2.6.7
ruby-langruby≥ 2.7.0 ≤ 2.7.3
ruby-langruby≥ 3.0.0 ≤ 3.0.1
debiandebian_linux9.0
oraclejd_edwards_enterpriseone_tools< 9.2.6.1

Official advisories

Vendor, CERT and distribution advisories that name this CVE. Original titles.

Official sources

References

Links published by the sources. Open them with care.