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

Solution

No solution given by the vendor.


Workaround

No workaround given by the vendor.

History

No history.

cve-icon MITRE

Status: PUBLISHED

Assigner: mitre

Published:

Updated: 2024-08-03T23:10:30.684Z

Reserved: 2021-04-26T00:00:00

Link: CVE-2021-31810

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Modified

Published: 2021-07-13T13:15:09.243

Modified: 2024-11-21T06:06:16.320

Link: CVE-2021-31810

cve-icon Redhat

Severity : Moderate

Publid Date: 2021-07-07T00:00:00Z

Links: CVE-2021-31810 - Bugzilla

cve-icon OpenCVE Enrichment

No data.