All vulnerabilities

Servers and applications

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

Severity
Medium 5.8
Published
13 Jul 2021
Last changed
17 Jun 2026
Added to UpHeron
21 Oct 2026
Sources
NVD

Affected software

SoftwareAffected versions
RubyServers and applications · cpe:a:ruby-lang:ruby
  • Every version up to 2.6.7
  • From 2.7.0 up to 2.7.3
  • From 3.0.0 up to 3.0.1

References

  • NVD https://nvd.nist.gov/vuln/detail/CVE-2021-31810
  • CVE.org https://www.cve.org/CVERecord?id=CVE-2021-31810