CVE-2021-31810

ruby: FTP PASV command response can cause Net::FTP to connect to arbitrary host

Published Jul 13, 2021 CVSS 3.1 · 5.8 Medium EPSS 3.1% KEV · Not listed
Description
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).

Analysis

No analysis available yet

Remediation

No remediation available yet

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-2780-1 ruby2.3 security update
Debian DLA Debian DLA DLA-3408-1 jruby security update
Debian DSA Debian DSA DSA-5066-1 ruby2.5 security update
Ubuntu USN Ubuntu USN USN-5020-1 Ruby vulnerabilities
History

No history.

Weaknesses

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
Aug 3, 2024, 11:10 PM
Reserved
Apr 26, 2021, 12:00 AM
Status
Modified
Published
Jul 13, 2021, 1:15 PM
Modified
Jun 17, 2026, 3:52 AM
Severity
Moderate
Public date
Jul 7, 2021, 12:00 AM